<!--
function check_gift(theForm) {
  if (theForm.gift_type.value == "") {
    alert("Please Choose A Gift Type From The Dropdown List");
    theForm.gift_type.focus();
    return (false);
  }
  
  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 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 (theForm.zip.value == "" || theForm.zip.value.length < 5 || isNaN(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 == "" || theForm.phone.value.length < 10) {
    alert("Please Enter A Valid Phone Number, Beginning With Area Code - 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 - mike@usi.edu");
	theForm.email.focus();
	return (false);
  }

  if (theForm.affiliation.value == "") {
    alert("Please Choose Your Affiliation With USI");
    theForm.affiliation.focus();
    return (false);
  }
*/  
  if (theForm.b_zip.value != "") {
    if (theForm.b_zip.value.length < 5 || isNaN(theForm.b_zip.value)) {
      alert("Please Enter A Valid Business Zip Code - Ex. 47712");
      theForm.b_zip.focus();
      return (false);
    }
  }
  
  if (theForm.s_zip.value != "") {
    if (theForm.s_zip.value.length < 5 || isNaN(theForm.s_zip.value)) {
      alert("Please Enter A Valid Zip Code - Ex. 47712");
      theForm.s_zip.focus();
      return (false);
    }
  }

  if (theForm.gift_dest.value == "") {
    alert("Please Choose A Gift Designation");
    theForm.gift_dest.focus();
    return (false);
  }

  if (theForm.gift_amt.value == "" || isNaN(theForm.gift_amt.value)) {
    alert("Please Enter A Valid Gift Amount - Ex. 50.00");
    theForm.gift_amt.focus();
    return (false);
  }
  
  if (theForm.gift_dest2.value != "" && (isNaN(theForm.gift_amt2.value) || theForm.gift_amt2.value == "")) {
    alert("Please Enter A Valid Gift Amount - Ex. 50.00");
    theForm.gift_amt2.focus();
    return (false);
  }
  
  if (theForm.gift_dest3.value != "" && (isNaN(theForm.gift_amt3.value) || theForm.gift_amt3.value == "")) {
    alert("Please Enter A Valid Gift Amount - Ex. 50.00");
    theForm.gift_amt3.focus();
    return (false);
  }
  
  if (theForm.gift_dest4.value != "" && (isNaN(theForm.gift_amt4.value) || theForm.gift_amt4.value == "")) {
    alert("Please Enter A Valid Gift Amount - Ex. 50.00");
    theForm.gift_amt4.focus();
    return (false);
  }
  
  if (theForm.gift_dest5.value != "" && (isNaN(theForm.gift_amt5.value) || theForm.gift_amt5.value == "")) {
    alert("Please Enter A Valid Gift Amount - Ex. 50.00");
    theForm.gift_amt5.focus();
    return (false);
  }
    
  if (theForm.gift_dest.value == "Other" && theForm.gift_other.value == "") {
	alert("Please Specify A Gift Designation");
    theForm.gift_other.focus();
    return (false);
  }

  if (theForm.cc_type.value == "") {
    alert("Please Choose A Credit Card Type From The Dropdown List");
    theForm.cc_type.focus();
    return (false);
  }

  if (theForm.cc_name.value == "") {
    alert("Please Enter The Cardholder's Name As It Appears On The Credit Card");
    theForm.cc_name.focus();
    return (false);
  }

  if (theForm.cc_zip.value == "" || theForm.cc_zip.value.length < 5 || isNaN(theForm.cc_zip.value)) {
    alert("Please Enter A Valid Billing Zip Code - Ex. 47712");
    theForm.cc_zip.focus();
    return (false);
  }

  if (isNaN(theForm.cc_number.value) || 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 == "" || theForm.cc_expire.value.length < 4 || isNaN(theForm.cc_expire.value)) {
    alert("Please Enter A Valid Expiration Date - Ex. mmyy");
    theForm.cc_expire.focus();
    return (false);
  }
  
  if (theForm.cvv.value == "" || theForm.cvv.value.length < 3 || isNaN(theForm.cvv.value)) {
    alert("Please Enter A Valid CVV Number");
    theForm.cvv.focus();
    return (false);
  }
  
  return (true);
}

function check_pledge(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 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 (theForm.zip.value == "" || theForm.zip.value.length < 5 || isNaN(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 == "" || theForm.phone.value.length < 10) {
    alert("Please Enter A Valid Phone Number, Beginning With Area Code - 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 - mike@usi.edu");
	theForm.email.focus();
	return (false);
  }

  if (theForm.affiliation.value == "") {
    alert("Please Choose Your Affiliation With USI");
    theForm.affiliation.focus();
    return (false);
  }
  
  if (theForm.b_zip.value != "") {
    if (theForm.b_zip.value.length < 5 || isNaN(theForm.b_zip.value)) {
      alert("Please Enter A Valid Business Zip Code - Ex. 47712");
      theForm.b_zip.focus();
      return (false);
    }
  }
  
  if (theForm.s_zip.value != "") {
    if (theForm.s_zip.value.length < 5 || isNaN(theForm.s_zip.value)) {
      alert("Please Enter A Valid Zip Code - Ex. 47712");
      theForm.s_zip.focus();
      return (false);
    }
  }

  if (theForm.remind_me.value == "") {
    alert("Please Choose A Reminder Month From The Dropdown List");
    theForm.remind_me.focus();
    return (false);
  }
  
  if (theForm.gift_amt.value == "" || isNaN(theForm.gift_amt.value)) {
    alert("Please Enter A Valid Pledge Amount - Ex. 50.00");
    theForm.gift_amt.focus();
    return (false);
  }
  
  if (theForm.gift_dest.value == "") {
    alert("Please Choose A Pledge Designation");
    theForm.gift_dest.focus();
    return (false);
  }
  
  if (theForm.gift_dest.value == "Other" && theForm.gift_other.value == "") {
	alert("Please Specify A Pledge Designation");
    theForm.gift_other.focus();
    return (false);
  }
  
  return (true);
}
//-->

