function Form_Validation(theForm)

{

  if (theForm.email.value == "" || theForm.email.value.length < 1) {alert("Please enter your email address."); theForm.email.focus(); return (false);}

  if (!theForm.email.value.match(/\b(^(\S+@).+((\b.)|(\..{2,2})))\b/gi)){alert("Please enter a valid email address."); theForm.email.focus(); return (false);}

  if (theForm.name.value == "" || theForm.name.value.length < 1) {alert("Please enter your name."); theForm.name.focus(); return (false);}

  if (theForm.city.value == "" || theForm.city.value.length < 1) {alert("Please enter your city."); theForm.city.focus(); return (false);}

  return (true);

}

