
	<!--Hide from older browsers

	function submitIt(info) {
	
	academicProgram = info.program.selectedIndex
	if (info.program.options[academicProgram].value == "") {
	alert("Please choose an Academic Program")
	return false
	}

	return true
	} 
          
validForm = true
var errMsg = ""
var errSection = ""
var chkFld = ""

function validateSubmit(){

   if (validForm && !validateEmail() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }
   
   if (validForm && !validateFirstName() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }

   if (validForm && !validateLastName() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }
      
   if (validForm && !validateAddress() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }

   if (validForm && !validateCity() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }

   if (validForm && !validateState() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }

   if (validForm && !validateZip() ){
      handleInvalidForm(errSection,errMsg,chkFld)
      }

   if ( validForm ) {
      return true 
      }
   else {
//      alert("Form Validation requirements incomplete, the form will NOT be submitted! Please //            correct specified fields and resubmit.")
      validForm = true
      return false
      }
}

function handleInvalidForm(SECTION,MSG,CHKFLD){
   validForm = false
   if (MSG != ""){
	alert(MSG)
   }
   errMsg = ""
   if (!CHKFLD == "") {
      CHKFLD.focus()
      if (CHKFLD.type == "text" || CHKFLD.type == "textarea"){
         CHKFLD.select()
      }
   chkFld = ""
   }
   if (SECTION != ""){
      window.location.hash = SECTION
      errSection = ""      
   }
}

function validateEmail(){
   chkFld = document.info.eMail
   if (isEmpty(chkFld.value)){
      errSection = "SECTION1"
     errMsg = "Please enter your email address"
      return false
      }
   return true
}
function validateFirstName(){
   chkFld = document.info.firstname
   if (isEmpty(chkFld.value)){
      errSection = ""
      errMsg = "Please enter your first name."
      return false
      }
   return true
}
function validateLastName(){
   chkFld = document.info.lastname
   if (isEmpty(chkFld.value)){
      errSection = ""
      errMsg = "Please enter your last name."
      return false
      }
   return true
}


function validateAddress(){
   chkFld = document.info.address
   if (isEmpty(chkFld.value)){
      errSection = "SECTION1"
      errMsg = "Please enter your address."
      return false
      }
   return true
}

function validateCity(){
   chkFld = document.info.city
   if (isEmpty(chkFld.value)){
      errSection = ""
      errMsg = "Please enter your city."
      return false
      }
   return true
}

function validateState(){
   chkFld = document.info.state
   if (isEmpty(chkFld.value)){
      errSection = ""
      errMsg = "Please enter your State."
      return false
      }
   return true
}

function validateZip(){
   chkFld = document.info.zip
   inputField = document.info.zip.value;
   if ( !exists(inputField, " - Zipcode", 1) ) {
      document.info.zip.focus();
      errSection = ""
      errMsg = "Please enter your Zip Code."
      return false
      }
   return true
}




// FUNCTION - to check if field was left blank
function isEmpty(inputStr){
   if (inputStr == null || inputStr == "") {
      return true
   }
   blankFld = true
   for (var i = 0; i < inputStr.length; i++) {
      if (inputStr.charAt(i) != " ") {
         blankFld = false
      }
   }
   if (blankFld){
      return true
   }
   return false
}

// FUNCTION - to check fields for mandatory input, and optional numeric check
function exists(inputValue, inputField, numCheck) {
  aCharExists=0							// Existance flag initialized to 0
  aCharNumeric=0							// Numeric flag initialized to 0
  if (inputValue) {						// check value passed to this function
     for (var i=0; i<inputValue.length; i++) { 		// loop thru all characters in the field
        if (inputValue.charAt(i) != " ") {		// check for non-blank character
           aCharExists=1 					// if non-blank found, set flag
           if (numCheck) {					// is optional numeric check required?
              if (isNaN(inputValue.charAt(i))) {	// check for non-numeric character
                 aCharNumeric=1 }				// if non-numeric, set flag
              }
           }
        }
     }
  
  if (!aCharExists) { // no non-blank characters found, send error message and return false
     window.alert("Please enter a value for " + inputField)
     return false }
  else {
     if (numCheck && aCharNumeric) { // numeric check requested and non-numeric value found
        window.alert("Please enter a NUMERIC value for " + inputField) // send error message
        return false }									// and return false
     else {
     return true } // otherwise, everything ok so return true
  }
}
      


function setfocus() {
document.info.eMail.focus();
window.location.hash = "TOP";
}

// -->
