<!--
function check_register(theForm) {  
  if (theForm.fname.value == "") {
    alert("Please Enter Your First Name.");
    theForm.fname.focus();
    return (false);
  }
  if (theForm.lname.value == "") {
    alert("Please Enter Your Last Name.");
    theForm.lname.focus();
    return (false);
  }
  if (theForm.address1.value == "") {
    alert("Please Enter Your Current Residence Street Address.");
    theForm.address1.focus();
    return (false);
  }
  if (theForm.city.value == "") {
    alert("Please Enter Your City of Residence.");
    theForm.city.focus();
    return (false);
  }
  if (theForm.state.value == "") {
    alert("Please Enter Your State of Residence.");
    theForm.state.focus();
    return (false);
  }
  if (theForm.zip.value == "" || theForm.zip.value.length < 5 || isNaN(theForm.zip.value)) {
    alert("Please Enter Your Zip Code of Residence.");
    theForm.zip.focus();
    return (false);
  }
  if (theForm.phone.value == "" || theForm.phone.value.length < 10 || isNaN(theForm.phone.value)) {
    alert("Please Enter Home Phone Number.");
    theForm.phone.focus();
    return (false);
  }
  if (theForm.email.value.indexOf(".") == -1 || theForm.email.value.indexOf("@") == -1) {
	alert("Please Enter Your Email Address - mike@usi.edu.");
	theForm.email.focus();
	return false;
  }

  degree_choice = false;
  
  for (counter = 0; counter < theForm.degree.length; counter++) {
	if (theForm.degree[counter].checked)
	  degree_choice = true; 
  }
  
  if (degree_choice == false) {
	alert("Please Indicate Which Commencement Procession Unit You Will Walk");
	return false;
  }

  b_degree_choice = false;
  
  for (counter = 0; counter < theForm.b_degree.length; counter++) {
	if (theForm.b_degree[counter].checked)
	  b_degree_choice = true; 
  }
  
  if (b_degree_choice == false) {
	alert("Please Choose The Appropriate College From The List");
	return false;
  }
  
  return (true);
}

function check_dvds(theForm) {  
  if (theForm.fname.value == "") {
    alert("Please Enter Your First Name");
    theForm.fname.focus();
    return (false);
  }

  if (theForm.lname.value == "") {
    alert("Please Enter Your Last Name");
    theForm.lname.focus();
    return (false);
  }

  if (theForm.address.value == "") {
    alert("Please Enter Your Home Street Address");
    theForm.address.focus();
    return (false);
  }

  if (theForm.city.value == "") {
    alert("Please Enter Your City of Residence");
    theForm.city.focus();
    return (false);
  }
  
  if (theForm.state.value == "") {
    alert("Please Choose Your State of Residence");
    theForm.state.focus();
    return (false);
  }

  if (isNaN(theForm.zip.value) || theForm.zip.value.length < 5 || theForm.zip.value == "") {
    alert("Please Enter A Valid Zip Code - Ex. 47712");
    theForm.zip.focus();
    return (false);
  }
  
  if (isNaN(theForm.phone.value) || theForm.phone.value.length < 5 || theForm.phone.value == "") {
    alert("Please Enter A Valid Phone Number - Ex. 8124651080");
    theForm.phone.focus();
    return (false);
  }
  
  if (theForm.email.value.indexOf(".") == -1 || theForm.email.value.indexOf("@") == -1 || theForm.email.value.length == 0) {
		alert("Please Enter A Valid Email Address - Example: joe@usi.edu");
		theForm.email.focus();
		return false;
	}
	
  if (theForm.semester.value == "") {
    alert("Please Choose between the Spring and Fall Commencement DVDs.");
    theForm.semester.focus();
    return (false);
  }
  
  if (theForm.cc_type.value == "") {
    alert("Please Choose The Appropriate Payment Method From The Dropdown Menu");
    theForm.cc_type.focus();
    return (false);
  }
  
  if (theForm.cc_type.value != "Check" && theForm.cc_name.value == "") {
    alert("Please Enter The Credit Card Holder's Full Name As It Appears On The Card");
    theForm.cc_name.focus();
    return (false);
  }

  if (theForm.cc_type.value != "Check" && (isNaN(theForm.cc_zip.value) || theForm.cc_zip.value.length < 5 || theForm.cc_zip.value == "")) {
    alert("Please Enter A Valid Billing Zip Code - Ex. 47712");
    theForm.cc_zip.focus();
    return (false);
  }

  if (theForm.cc_type.value != "Check" && (theForm.cc_number.value == "" || isNaN(theForm.cc_number.value) || theForm.cc_number.value.length < 16)) {
    alert("Please Enter A Valid Credit Card Number - Ex. 0000111122223333");
    theForm.cc_number.focus();
    return (false);
  }

  if (theForm.cc_type.value != "Check" && (theForm.cc_expire.value == "" || isNaN(theForm.cc_expire.value) || theForm.cc_expire.value.length < 4)) {
    alert("Please Enter The Credit Card's Expiration Date - Ex. mmyy");
    theForm.cc_expire.focus();
    return (false);
  }
  
  if (theForm.cvv.value == "" || isNaN(theForm.cvv.value) || theForm.cvv.value.length != 3) {
	alert("Please Enter A Valid CVV Number");
	theForm.cvv.focus();
	return false;
  }

  return (true);
}
-->
