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

function validate()
{
	var fieldValue=document.forms[0]['email'].value;

var regex = /^[\w]+(\.[\w]+)*@([\w\-]+\.)+[a-zA-Z]{2,7}$/ ;
	if(!regex.test(fieldValue))
	{
		alert("Please enter your valid email address");
		return false;
	}else{
		return true;
	}
}

function switchmenu(Obj,Img)
{
	
	document[Obj].src=Img;

}
