<!-- //
//
// IF YOU SEE THIS UPGRADE YOUR BROWSER !!!
//
function checkFields() {
missinginfo = "";
if (document.form.Name.value == "") {
missinginfo += "\n     -  Contact Name";
}
if(document.form.Address.value == "") {
missinginfo += "\n     -  Address";
}
if(document.form.City.value == "") {
missinginfo += "\n     -  City";
}
if(document.form.State.value == "") {
missinginfo += "\n     -  State";
}
if(document.form.Zip.value == "") {
missinginfo += "\n     -  Zip Code";
}

if(document.form.PHORM_FROM.value == "") {
missinginfo += "\n     -  Email";
}


if (missinginfo != "") {
missinginfo ="Required Fields Missing\nYou failed to correctly fill in your:" +
missinginfo + "\nPlease enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}



////  onBlur="validate1(this)" //////

function validate1(field) {
var valid = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@%$&*+?:;.,~'-=?()[]_/<>^{}|$ "
var ok = "yes";
var temp;
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
alert("Invalid Entry, Check For Line Breaks or Special Characters (#).\nPlease Let Text Wrap Without Breaks.");
field.focus();
field.select();
   }
}


//// Email Validation /////////////////////////////////////////////

var chkDot = true;
var usEmail = true;
function validEmail(eAddr) 
{ 
   var lenSuffix = (usEmail) ? 4: 3;
   var goodAddr = false;
   var ndxAt = ndxDot = 0;

   ndxAt  = eAddr.indexOf("@");
   ndxDot = eAddr.indexOf(".");
   ndxDot2 = eAddr.lastIndexOf(".");

   if ( (ndxDot < 0) || (ndxAt < 0) )
      alert("Your email address lacks '.' or '@'.\n\nThe format is 'MyEmail@SomeDomain.suf'");  
   else if (chkDot  && (ndxDot < ndxAt) )
        chkDot =!( confirm("You entered a 'dot' before the '@'\n Are you sure that is right?"));
   else if ( (ndxDot2 - 3) <= ndxAt)
        alert("You may be missing your domain name.\n\nThe format is 'MyEmail@SomeDomain.suf'");
   
   else if ( eAddr.length < (ndxDot2 + lenSuffix) )
      usEmail =!( confirm("You have fewer than 3 characters as a domain suffix.\nAre you sure that is right?"));
   else
      goodAddr = true;
   
   return (goodAddr);                       
}


//  End -->