function submitform(formname) {
	document.forms[formname].submit();
}

var xmlHttp

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 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';
		}
		//alert(scroll);
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,tollbars'
		gmtWindow = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { 
			gmtWindow.window.focus(); 
		}
}

