// JavaScript for trade catalog request
// Shadowfax International

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original at: http://hotarea.com/ -->

<!--  

// check the form
function checkform (form) {
	
	var myOption, myProgram;
	var i;
	var ValidChars = "0123456789.";
    var Char;
	var mobile_ok=false;
	var child_age;
	var hp_num;

   // start checking
   // check first name
   if ((form.name.value == null) || (form.name.value == "")) {
       alert ("Please enter your first name.");
       form.name.focus();
       return false;
      }
   
   // check surname
   if ((form.surname.value == null) || (form.surname.value == "")) {
       alert ("Please enter your surname.");
       form.surname.focus();
       return false;
      }

   // check email address (optional)
   if (form.email.value != "") {
	
	   if (emailcheck (form.email.value)==false ){
		     form.email.focus();
             return false;
	        }
      }
	  
   // check contact number 
   // (may include brackets, no numeric checking)
   if ((form.contact.value == null) || (form.contact.value == "")) {
       alert ("Please enter your contact number.");
       form.contact.focus();
       return false;
      }

   // check address 1
   if ((form.address1.value == null) || (form.address1.value == "")) {
       alert ("Please enter at least one address line.");
       form.address1.focus();
       return false;
      }


   // check town / city 
   if ((form.city.value == null) || (form.city.value == "")) {
       alert ("Please enter your town or city.");
       form.city.focus();
       return false;
      }
	  
   // check postal or ZIP code
   if ((form.pcode.value == null) || (form.pcode.value == "")) {
       alert ("Please enter your postal or ZIP code.");
       form.pcode.focus();
       return false;
      }
     
    // done checking
    return true;
}
//-->