// JavaScript Document
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);

//Layer visibility

	function showLayer(layerName)  {  
	document.getElementById(layerName).style.visibility='visible'; 
	}
	
	function hideLayer(layerName)  {  
	document.getElementById(layerName).style.visibility='hidden';  
	}
	
	
//Email Check script credit-JavaScript Kit (www.javascriptkit.com) 200+ free JavaScripts here!

function emailcheck(cur)
{
var string1=cur.email.value
if (string1.indexOf("@")==-1)
{
alert("Please input a valid email address!")
return false
}

}

	function newWindow(tc) {
		tcWindow = window.open(tc,'tcWin', 'width=650,height=650,scrollbars=yes,background-color=#CCCCCC')
		tcWindow.focus()
	}

