<!--
function check_summer_reg(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 (theForm.h_phone.value == "" || isNaN(theForm.h_phone.value) || theForm.h_phone.value.length < 10) {
    alert("Please Enter Your Home Phone Number - Ex. 1112223333");
    theForm.h_phone.focus();
    return (false);
  }
  
  if (theForm.w_phone.value == "" || isNaN(theForm.w_phone.value) || theForm.w_phone.value.length < 10) {
    alert("Please Enter Your Work Phone Number - Ex. 1112223333");
    theForm.w_phone.focus();
    return (false);
  }
  
  if (theForm.email.value.indexOf(".") == -1 || theForm.email.value.indexOf("@") == -1) {
	alert("Please Enter A Valid Email Address - mike@usi.edu.");
	theForm.email.focus();
	return false;
  }
  
  var radioSelected = false;
  for (i = 0;  i < theForm.pri.length;  i++) {
    if (theForm.pri[i].checked)
        radioSelected = true;
  }
  if (!radioSelected) {
    alert("Please Choose A Class From The List");
    return (false);
  }

  if (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_address.value == "") {
    alert("Please Enter The Billing Address For The Credit Card");
    theForm.cc_address.focus();
    return (false);
  }

  if (theForm.cc_city.value == "") {
    alert("Please Enter The Billing City For The Credit Card");
    theForm.cc_city.focus();
    return (false);
  }

  if (theForm.cc_state.value == "") {
    alert("Please Choose The Billing State For The Credit Card");
    theForm.cc_state.focus();
    return (false);
  }

  if (isNaN(theForm.cc_zip.value) || theForm.cc_zip.value.length < 5 || theForm.cc_zip.value == "") {
    alert("Please Enter The Billing Zip Code For The Credit Card");
    theForm.cc_zip.focus();
    return (false);
  }
  
  if (theForm.cc_phone.value == "" || isNaN(theForm.cc_phone.value) || theForm.cc_phone.value.length < 10) {
    alert("Please Enter Your Billing Phone Number - Ex. 1112223333");
    theForm.cc_phone.focus();
    return (false);
  }

  if (theForm.cc_type.value == "") {
    alert("Please Choose A Credit Card Type From The List");
    theForm.cc_type.focus();
    return (false);
  }

  if (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_expire.value == "") {
    alert("Please Enter The Credit Card's Expiration Date - Ex. mm/yy");
    theForm.cc_expire.focus();
    return (false);
  }
  
  return (true);
}

function check_winter_reg(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 (theForm.h_phone.value == "" || isNaN(theForm.h_phone.value) || theForm.h_phone.value.length < 10) {
    alert("Please Enter Your Home Phone Number - Ex. 1112223333");
    theForm.h_phone.focus();
    return (false);
  }
  
  if (theForm.w_phone.value == "" || isNaN(theForm.w_phone.value) || theForm.w_phone.value.length < 10) {
    alert("Please Enter Your Work Phone Number - Ex. 1112223333");
    theForm.w_phone.focus();
    return (false);
  }
  
  if (theForm.email.value.indexOf(".") == -1 || theForm.email.value.indexOf("@") == -1) {
	alert("Please Enter A Valid Email Address - mike@usi.edu.");
	theForm.email.focus();
	return false;
  }
  
  var radioSelected = false;
  for (i = 0;  i < theForm.pri.length;  i++) {
    if (theForm.pri[i].checked)
        radioSelected = true;
  }
  if (!radioSelected) {
    alert("Please Choose One Winter Workshop From The List");
    return (false);
  }

  if (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_address.value == "") {
    alert("Please Enter The Billing Address For The Credit Card");
    theForm.cc_address.focus();
    return (false);
  }

  if (theForm.cc_city.value == "") {
    alert("Please Enter The Billing City For The Credit Card");
    theForm.cc_city.focus();
    return (false);
  }

  if (theForm.cc_state.value == "") {
    alert("Please Choose The Billing State For The Credit Card");
    theForm.cc_state.focus();
    return (false);
  }

  if (theForm.cc_zip.value == "") {
    alert("Please Enter The Billing Zip Code For The Credit Card");
    theForm.cc_zip.focus();
    return (false);
  }
  
  if (theForm.cc_phone.value == "" || isNaN(theForm.cc_phone.value) || theForm.cc_phone.value.length < 10) {
    alert("Please Enter Your Billing Phone Number - Ex. 1112223333");
    theForm.cc_phone.focus();
    return (false);
  }

  if (theForm.cc_type.value == "") {
    alert("Please Choose A Credit Card Type From The List");
    theForm.cc_type.focus();
    return (false);
  }

  if (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_expire.value == "") {
    alert("Please Enter The Credit Card's Expiration Date - Ex. mm/yy");
    theForm.cc_expire.focus();
    return (false);
  }
  
  return (true);
}

function check_subscribe(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 (theForm.country.value == "") {
    alert("Please Choose Your Country of Residence");
    theForm.country.focus();
    return (false);
  }
  
  if (theForm.phone.value == "" || isNaN(theForm.phone.value) || theForm.phone.value.length < 10) {
    alert("Please Enter Your Home Phone Number - Ex. 1112223333");
    theForm.phone.focus();
    return (false);
  }
  
  if (theForm.email.value.indexOf(".") == -1 || theForm.email.value.indexOf("@") == -1) {
	alert("Please Enter A Valid Email Address - mike@usi.edu.");
	theForm.email.focus();
	return false;
  }
  
  var radioSelected = false;
  for (i = 0;  i < theForm.subscription.length;  i++) {
    if (theForm.subscription[i].checked)
        radioSelected = true;
  }
  if (!radioSelected) {
    alert("Please Choose One Subscription Offer");
    return (false);
  }

  if (theForm.sub_type.value == "") {
    alert("Please Choose A Subscription Type From The Dropdown");
    theForm.sub_type.focus();
    return (false);
  }
  
  if (theForm.sub_type.value == "") {
    alert("Please Choose A Subscription Type From The Dropdown");
    theForm.sub_type.focus();
    return (false);
  }

  if (theForm.for_who.value == "") {
    alert("Please Choose Who The Subscription Is For");
    theForm.for_who.focus();
    return (false);
  }
  
  if (theForm.hear_about.value == "") {
    alert("Please Choose How You Heard About The Magazine");
    theForm.hear_about.focus();
    return (false);
  }

  if (theForm.cc_name.value == "") {
    alert("Please Enter The Full Name That Appears On The Credit Card");
    theForm.cc_name.focus();
    return (false);
  }

  if (theForm.cc_address.value == "") {
    alert("Please Enter The Billing Address For The Credit Card");
    theForm.cc_address.focus();
    return (false);
  }

  if (theForm.cc_city.value == "") {
    alert("Please Enter The Billing City For The Credit Card");
    theForm.cc_city.focus();
    return (false);
  }

  if (theForm.cc_state.value == "") {
    alert("Please Choose The Billing State For The Credit Card");
    theForm.cc_state.focus();
    return (false);
  }

  if (theForm.cc_zip.value == "") {
    alert("Please Enter The Billing Zip Code For The Credit Card");
    theForm.cc_zip.focus();
    return (false);
  }
  
  if (theForm.cc_phone.value == "" || isNaN(theForm.cc_phone.value) || theForm.cc_phone.value.length < 10) {
    alert("Please Enter Your Billing Phone Number - Ex. 1112223333");
    theForm.cc_phone.focus();
    return (false);
  }

  if (theForm.cc_type.value == "") {
    alert("Please Choose A Credit Card Type From The List");
    theForm.cc_type.focus();
    return (false);
  }

  if (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_expire.value == "") {
    alert("Please Enter The Credit Card's Expiration Date - Ex. mm/yy");
    theForm.cc_expire.focus();
    return (false);
  }
  
  return (true);
}
//-->
