


function checkOptinFormSubmit()
{
     var theForm=document.optinForm;        
     if(theForm.elements["email"].value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!=-1)
	 {       
		theForm.submit();        
     }
     else
     {
	   alert("Please Enter A Valid Email Address!");
       theForm.elements["email"].focus(); 
     }
}
function checkInfoReqFormSubmit()
{
     var theForm=document.inforeqform; 
     if(theForm.elements["firstName"].value=="")
     {
        alert("First name can not be empty!");
        theForm.elements["firstName"].focus(); 
     }
     else if(theForm.elements["lastName"].value=="")
     {
  	    alert("Last name can not be empty!");
        theForm.elements["lastName"].focus(); 
     }  
     else if(theForm.elements["address1"].value=="")
     {
        alert("Address1 can not be empty!");
        theForm.elements["address1"].focus(); 
     }  
     else if(theForm.elements["city"].value=="")
     {
        alert("City can not be empty!");
        theForm.elements["city"].focus(); 
     }  
     else if(theForm.elements["stateProvince"].value=="")
     {
        alert("State/Province can not be empty!");
        theForm.elements["stateProvince"].focus(); 
     }  
     else if(theForm.elements["zipCode"].value=="")
     {
  	    alert("Zip Code/Zone can not be empty!");
        theForm.elements["zipCode"].focus(); 
     }
     else if(theForm.elements["email"].value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1)
	 {	
	   alert("Please Enter A Valid Email Address!");
       theForm.elements["email"].focus();       
     }
     else
     {
	   theForm.submit();  
     }
}
function MM_openBrWindowLocal(theURL,winName,features) {
  var local = "/sands/";
  local = local.substring(0, local.length-1);
  theURL =  local + theURL ;
  window.open(theURL,winName,features);
}