function checkFields(theform) {
missinginfo = "";
var valid = "0123456789";
var ok = "yes";
var temp;
var tempcode;
var illegalChars = /\t/;
//var illegalSpace =/\t\;

//===============
if (document.form.name.value == "") {
missinginfo += "\n     -  Name";
}
else if (illegalChars.test(document.form.name.value)) {

       missinginfo +=  "\n     -  The Name contains illegal characters.";
    }
 else
   {
      for (var i=0; i<document.form.name.value.length; i++)
       {
          tempcode = "" + document.form.name.value.substring(i, i+1);
       }
         if (valid.indexOf(tempcode) >= "0")
          {
          missinginfo += "\n     -  Invalid Name";
          }
    }
/*	
//===============		
if (document.form.customercountry.options[document.form.customercountry.selectedIndex].value == "Please Select" ) {
missinginfo += "\n     -  Country";
}
*/
//===============


//===============	
if (document.form.email.value == "")
{
  missinginfo += "\n     -  E-mail Address";
}
else if ((document.form.email.value == "") || (document.form.email.value.indexOf('@') == -1) ||(document.form.email.value.indexOf('.') == -1))
{
  missinginfo += "\n     -  Invalid E-mail Address";
}
//===============	

//===============
	
//===============		

//===============		

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
{
return true;
}

}
