initUI = function() {
	var elms = getElementsByClass('window');
	for(var i = 0; i < elms.length; i++) {
		elms[i].onclick = function() {
			var w = 360;
			var h = 450;
			var winl = (screen.width - w) / 2;
     		var wint = (screen.height - h) / 2;
     		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0'
			window.open(this.href, '', winprops);
			return false;
		}
	}
	
	var buttomImg;
	elm = el('close-window');
	if(elm) {
		elm.onclick = function() { window.close(); }
		elm.onmouseover = function() { this.src = 'images/butt_close_active.gif'; }
		elm.onmouseout = function() { this.src = 'images/butt_close_inact.gif'; }
	}
}

// addEvent(window, 'load', initUI, false);