function check(RegForm) {
   if (RegForm.name.value == "")
  {
    alert("Please complete your Full Name, first and last..");
    RegForm.name.focus();
    return (false);
  }
if (!(/^[A-Z]|[a-z]/).test(RegForm.name.value)) {
    alert("Please do us the courtesy of providing your real name.");
  return(false);
}
   if (RegForm.lastname.value == "")
  {
    alert("Please complete your Full Name, first and last..");
    RegForm.lastname.focus();
    return (false);
  }
if (!(/^[A-Z]|[a-z]/).test(RegForm.lastname.value)) {
    alert("Please do us the courtesy of providing your real name.");
  return(false);
} 
   if (RegForm.title.value == "")
  {
    alert("Please let us know your company, title and division. This information helps us to provide information best suited to your needs.");
    return (false);
  }
  if (RegForm.company.value == "")
  {
    alert("Please fill in your Company name.");
    RegForm.company.focus();
    return (false);
  }
 if (!(/^[A-Z]|[a-z]\w{3,40}/).test(RegForm.company.value)) {
    alert("Please let us know your company, title and division. This information helps us to provide information best suited to your needs.");
    return (false);
  }
   if (RegForm.division.value == "")
  {
    alert("Please let us know your company, title and division. This information helps us to provide information best suited to your needs.");
    return (false);
  }
   if (RegForm.address.value == "")
  {
    alert("Please give your complete mailing address. We may use this information to send you valuable materials. Your address will not be shared wtih third parties.");
    return (false);
  }
   if (RegForm.city.value == "")
  {
    alert("Please give your complete mailing address. We may use this information to send you valuable materials. Your address will not be shared wtih third parties.");
    return (false);
  }
   if (RegForm.zip.value == "")
  {
    alert("Please give your complete mailing address. We may use this information to send you valuable materials. Your address will not be shared wtih third parties.");
    return (false);
  }
if (RegForm.phone.value == "") { 
  alert("Please enter your complete phone number as digits only, ommitting any hyphens, parentheses or leading + sign");
  return(false);
}

if (!(/[0-9]\w{7,12}/).test(RegForm.phone.value)) {
  alert("Please enter your complete phone number as digits only, ommitting any hyphens, parentheses or leading + sign");
  return(false);
}
if ((/[A-Z|a-z]/).test(RegForm.phone.value)) {
  alert("Please enter your complete phone number as digits only. Leading + sign can be used to indicate an international number.");
  return(false);
}
   if (RegForm.email.value == "")
  {
    alert("Please make sure your Email address is correct. This is your username and you will be unable to log in if there is an error.");
    RegForm.email.focus();
    return (false);
  }
if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(RegForm.email.value))){
	alert("There seems to be an error in your e-mail address. The email address field cannot contain spaces or special characters.");
	//RegForm.email.value = "";
	RegForm.email.focus();
	return (false);
}
   if (RegForm.pwd.value == "")
  {
    alert("Please choose a password. You will need this to gain access to the Library.");
    RegForm.pwd.focus();
    return (false);
  }
   if (RegForm.pwd.value != RegForm.pwdv.value)
  {
    alert("Passwords do not match. Please try again.");
    RegForm.pwd.focus();
    return (false);
  }
}




