function openWindow(mypage, myname, w, h, scroll){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	if(screen.availHeight < h){
		scroll='Yes';
	}else if (screen.availWidth < w){
		scroll='Yes';
		}
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
	gmtWindow = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { gmtWindow.window.focus(); }
}


function showBox(bName){
	if(document.getElementById(bName)) document.getElementById(bName).style.display = 'block';
	for(i=1;i<=31;i++){
		if(('H_'+i)!=bName && document.getElementById('H_'+i)){
			closeBox('H_'+i);
		}
	}
}

function closeBoxes(){
	for(i=1;i<=31;i++){
		if(document.getElementById('H_'+i)) closeBox('H_'+i);
	}
}

function closeBox(bName){
	document.getElementById(bName).style.display = 'none';
}

var xmlHttp=null;

function GetXmlHttpObject(){
	var xmlHttp=null;
	try{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e){
		// Internet Explorer
		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e){
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function closeDiv(dName){
	document.getElementById(dName).style.display = 'none';
}