//***Moved from innersub.php***//
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Firstname.value == "")
  {
    alert("Please enter a value for the \"Firstname\" field.");
    theForm.Firstname.focus();
    return (false);
  }

  if (theForm.Lastname.value == "")
  {
    alert("Please enter a value for the \"Lastname\" field.");
    theForm.Lastname.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
  return (true);
}
//*********************************************//
function validateEmail(email) //passing controlas a argument
{
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!re_mail.test(email.value)) {
		return false;
	}

	return true;
}
//*********************************************//
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}