function validate(frm) {
if (frm.First_Name.value.length == 0)
    {alert("Fields marked with an asterisk are mandatory. Please enter your first name.");        frm.First_Name.focus();        return false;}
if (frm.Last_Name.value.length == 0)    {alert("There are a lot of us with that first name. Please enter your last name.");        frm.Last_Name.focus();        return false;}
if (frm.Affiliation.value.length < 3)    {alert("Fields marked with an asterisk are mandatory. Please enter your affiliation.");        frm.Affiliation.focus();        return false;}
if (frm.Street1.value.length < 10)    {alert("How will we be able to send you mail if we don't know where you live? Please enter your street address.");        frm.Street1.focus();        return false;}
if (frm.City.value.length < 2)    {alert("There are a lot of streets with that name. Please enter your city.");        frm.City.focus();        return false;}
if (frm.Postal_or_ZIP_Code.value.length < 3)    {alert("The post office won't deliver mail without a postal code. Please enter your postal or ZIP code.");        frm.Postal_or_ZIP_Code.focus();        return false;}
if (frm.Email.value.length < 5)    {alert("We can't email you if you don't give us an address. Please enter an e-mail address");        frm.Email.focus();        return false;}if (frm.Email.value.indexOf("@") == -1)    {alert("At least stick an @ in there so that it LOOKS like an email address. Please enter a valid e-mail address.");        frm.Email.focus();        return false;}}
