document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='/scripts/check_form_base.js'></SCRIPT>");

function check_registration_form()  {

// need to check last_name first_name address city state zip email
// first name
    if  (!hasValue(document.registration.first_name, "TEXT" )) {
        if  (!onError(document.registration, document.registration.first_name, document.registration.first_name.value, "Please enter your first name"))
        {
         document.registration.first_name.focus();
         return false; 
        }
    }

// last name
    if  (!hasValue(document.registration.last_name, "TEXT" )) {
        if  (!onError(document.registration, document.registration.last_name, document.registration.last_name.value, "Please enter your last name"))
        {
         document.registration.last_name.focus();
         return false; 
        }
    }

// address
    if  (!hasValue(document.registration.address, "TEXT" )) {
        if  (!onError(document.registration, document.registration.address, document.registration.address.value, "Please enter your address."))
        {
         document.registration.address.focus();
         return false; 
        }
    }

// city
    if  (!hasValue(document.registration.city, "TEXT" )) {
        if  (!onError(document.registration, document.registration.city, document.registration.city.value, "Please enter your city."))
        {
         document.registration.city.focus();
         return false; 
        }
    }

// state
   if  (!hasValue(document.registration.state, "SELECT" ))  {

	  if  (!onError(document.registration, document.registration.state, document.registration.state.value, "Please choose a state."))  
      {
		 document.registration.state.focus();
		 return false; 
	  }
   }

// zip
    if  (!hasValue(document.registration.zip, "TEXT" )) {
        if  (!onError(document.registration, document.registration.zip, document.registration.zip.value, "Please enter your zip."))
        {
         document.registration.zip.focus();
         return false; 
        }
    }

// email 
    if  (!hasValue(document.registration.email, "TEXT" )) {
        if  (!onError(document.registration, document.registration.email, document.registration.email.value, "Please enter your email address."))
        {
           document.registration.email.focus();
           return false; 
        }
    }
} // end of function check_registration_form
