 /*Checks email address to make sure its a valid format then opens a new window and passes
the form vars to the contact.cfm form processing page*/
function checkContact()
{
		var emailregex = /^[\w\_\-\.]+@[\w\_\-\.]+\.\w+$/;
          var emailresult = EFDcontact.email.value.match(emailregex);
        
          if (emailresult == null)
          {
              alert("Your email address \'" + EFDcontact.email.value + "\' is not a correct email format.\n Please try again"
              );
              return false;
			  }
			  window.open('', 'contact', 'width=400,height=400,status=yes,resizable=yes,scrollbars=yes');
			  setTimeout('FormReset()',1000);
			  return true;
			  FormReset();
			  }

function FormReset(){
document.getElementById('arrow').src="images/arrowdwn.jpg";
document.getElementById('contactinfo').style.visibility="hidden"; //Reset form
}
