

    // ---------------------------------------------- validation function for form page
    function fnvalidation() {
      
      // -------------------------------------------- set variables
      // -------------------------------------------- variable for form information
      var contact = document.barra_form
      // -------------------------------------------- variable for alert window
      var a = alert



	  // --------------------------------------------
	  // -------- CONTACT PAGE VALIDATION -----------
	  // --------------------------------------------
 
      // -------------------------------------------- name must be entered
      if(contact.barra_name.value.length < 2) {
        a("You must enter your Name!")
        contact.barra_name.focus()
        contact.barra_name.select()
	    return false
      }
	
      // -------------------------------------------- phone number must be numbers only
 //     if(isNaN(contact.barra_telephone.value)) {
 //       a("Phone Number must be numbers!")
 //       contact.barra_telephone.focus()
 //       contact.barra_telephone.select()
 //       return false
 //     }
	  
      // -------------------------------------------- phone number must be
      // -------------------------------------------- greater than 8 characters
      if(contact.barra_telephone.value.length < 8) {
        a("Phone Number must have at least 8 digits!")
        contact.barra_telephone.focus()
        contact.barra_telephone.select()
        return false
      }
	  
      // -------------------------------------------- email must have an @ and a period
      if(contact.barra_email.value.indexOf("@") == -1
	    || contact.barra_email.value.indexOf(".") == -1) {
        a("You must enter a vaild Email Address!")
        contact.barra_email.focus()
        contact.barra_email.select()
        return false
      }

	}
