<!-- Hide script from old browsers

var submitcount=0;

function e_validate(emailad) {

var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
var check=/@[\w\-]+\./;
var checkend=/\.[a-zA-Z]{2,3}$/;

	if(((emailad.search(exclude) != -1)||(emailad.search(check)) == -1)||(emailad.search(checkend) == -1)){
		alert("Please check your email address!");
	}
}


function checkforblanks() {
	for (var i = 0; i < arguments.length; i += 2) {
		if (!arguments[i])
			{alert("Please enter " + arguments[i+1] + ".");return false;}
		}
	return true;
}


function validate()	{

	// Make sure none of the required fields are empty
	var isFull = checkforblanks(document.cancel.Confirm.value, "your confirmation number",
	document.cancel.Email.value, "your email address. This information will not be disclosed to any third party");
					
	if (!isFull)
	{return false;}

   // First or Last Name required

   if ((document.cancel.First.value =="") && (document.cancel.Last.value=="")) {
      alert("Please fill in either your first or last name or both.");
      return false;
   }
   
   // Submit only once
   
   if (submitcount == 0) {
      submitcount++;
      return true;
   } else {
      alert("Please wait - This form has already been submitted.  Thanks!");
      return false;
   }
}

// End hiding script from old browsers -->

