<!-- //<%
/* code begins */


function validate_email(field,alerttxt)
{with (field){
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2)   {alert(alerttxt);return false} else {return true};
}
};

function validate_form(thisform)
{
with (thisform)
{
if (validate_email(strEmailAddress,"Please check that you have entered a valid email address.")==false)
  {strEmailAddress.focus();  return false };
  
if (strAntiSpam.value.indexOf('1')!=0)
	{window.alert('Please enter the digit 1 where indicated. This helps us avoid unwanted spam email.'); strAntiSpam.focus();return false };
	
}
};


/* Code ends */
//%> -->




