function centerWindow(theURL, Name, popW, popH, scroll) { 
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable,status=1'
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

}

//xmlHttp=GetXmlHttpObject()
function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}


function checkEmail(str)
{
	if(str.indexOf(".") >= 1 && str.indexOf("@") > 0 )
	{
		return true;
	}
	else {
		return false;
	}

}

function hideSelects()
{
	
	collection = document.body.getElementsByTagName("SELECT");
	for (var i = 0; i < collection.length; i++) {

	  collection[i].style.visibility="hidden";
	}
}
function showSelects()
{
	collection = document.body.getElementsByTagName("SELECT");
	for (var i = 0; i < collection.length; i++) {
	  collection[i].style.visibility="visible";
	}
}