function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function emailValidator(theForm)
{

  if (theForm.Email.value == "")
  {
    alert("The E-Mail you entered is not valid. Please try again.");
    return (false);
  }

  if (!isEmailAddr(theForm.Email.value))
  {
    alert("The E-Mail you entered is not valid. Please try again.");
    return (false);
  }
   
  if (theForm.Email.value.length < 3)
  {
    alert("The E-Mail you entered is not valid. Please try again.");
    return (false);
  }
  return (true);
}

function checkDate(_form,_field) {
    var _value = _form.Date_Of_Birth.value;
    var _test = Date.parse(_value)

    if (isNaN(_test)) {
        return false;
    }
    else {
       	return true;
    }
}