function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
		
function OpenWinNoLocation(width, height, theURL)
{
	var w = width;
	var h = height;
	//var winl = (screen.width-w)/2;
	var winl = 5;
	var wint = (screen.height - h)/2;
	var feature = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,menubar=no,location=no,toolbar=no,resizable'
	
	window.name = "brewserMainWin";
	window.open(theURL, "winPopup", feature);
}


function OpenWinWithLocation(width, height, theURL) { 
	var w = width;
	var h = height;
	//var winl = (screen.width-w)/2;
	var winl = 5;
	var wint = (screen.height - h)/2;
	var feature = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,menubar=yes,location=yes,toolbar=yes,resizable'
	
	window.name = "brewserMainWin";
	window.open(theURL, "winPopup", feature);
 }

function OpenCalculator(width, height, theURL)
{
	var w = width;
	var h = height;
	var winl = 50;
	var wint = (screen.height - h)/2+50;
	var feature = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,menubar=no,location=no,toolbar=no,resizable'
	
	window.name = "calculatorWin";
	window.open(theURL, "winPopup", feature);
}

function OpenInstruction(width, height, theURL)
{
	var w = width;
	var h = height;
	var winl = screen.width-w-50;
	var wint = 50;
	var feature = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,menubar=no,location=no,toolbar=no,resizable'
	
	window.name = "calculatorWin";
	window.open(theURL, "winPopup", feature);
}

function CheckEmailFormat( email )
{
	if ( email.indexOf("@")<0 || email.indexOf(".")<0)
	{
		//alert("Sorry, you provided a wrong E-mail address.");
		return false;
	}
}