function validate() {{

if (Drop_Ship.billcompany.value == "") {
alert("\nThe billing company name field is blank.\n\nPlease enter your billing company name.")
Drop_Ship.billcompany.focus();
return false;
}
if (Drop_Ship.billname.value == "") {
alert("\nThe billing contact name field is blank.\n\nPlease enter your billing contact name.")
Drop_Ship.billname.focus();
return false; 
}

if (Drop_Ship.billadd1.value == "") {
alert("\nThe billing street address field is blank.\n\nPlease enter your billing street address.")
Drop_Ship.billadd1.focus();
return false; 
}

if (Drop_Ship.billcity.value == "") {
alert("\nThe billing city field is blank.\n\nPlease enter your billing city.")
Drop_Ship.billcity.focus();
return false; 
}

if (Drop_Ship.billstate.value == "Select") {
alert("\nThe Billing state field is blank.\n\nPlease select your billing state.")
Drop_Ship.billstate.focus();
return false; 
}

var valid = "0123456789-";
var hyphencount = 0;

if (Drop_Ship.billzip.value.length!=5 && Drop_Ship.billzip.value.length!=10) {
alert("Please enter your 5 digit or 5 digit + 4 billing zip code.");
Drop_Ship.billzip.focus();
return false;
}
for (var i=0; i < Drop_Ship.billzip.value.length; i++) {
temp = "" + Drop_Ship.billzip.value.substring(i, i+1);
if (temp == "-") hyphencount++;
if (valid.indexOf(temp) == "-1") {
alert("Invalid characters in your billing zip code.  Please try again.");
Drop_Ship.billzip.focus();
return false;
}
if ((hyphencount > 1) || ((Drop_Ship.billzip.value.length==10) && ""+Drop_Ship.billzip.value.charAt(5)!="-")) {
alert("The hyphen character should be used with a properly formatted\n\n5 digit+four billing zip code, like '12345-6789'.   Please try again.");
Drop_Ship.billzip.focus();
return false;
   }
}

var validphone = "0123456789"
var ok = "yes";
var tempphone;
for (var i=0; i<Drop_Ship.billphone1.value.length; i++) {
tempphone = "" + Drop_Ship.billphone1.value.substring(i, i+1);
if (validphone.indexOf(tempphone) == "-1") ok = "no";
}
if ((ok == "no") || (Drop_Ship.billphone1.value.length > 10) || ((Drop_Ship.billphone1.value.length > 0) && (Drop_Ship.billphone1.value.length < 10))) {
alert("Please type in your 10 digit billing pnone number, like 5553330000.\n\nPlease don\'t use letters, spaces or hyphens");
Drop_Ship.billphone1.focus();
return false;

   }
if (Drop_Ship.billphone1.value == "") {
alert("\nThe billing phone field is blank.\n\nPlease enter your billing phone number.")
Drop_Ship.billphone1.focus();
return false;
}

if (Drop_Ship.billemail.value == "") {
alert("\nThe E-MAIL field is blank.\n\nPlease enter your e-mail address.")
Drop_Ship.billemail.focus();
return false;
}


if (Drop_Ship.billemail.value.indexOf ('@',0) == -1 || Drop_Ship.billemail.value.indexOf ('.',0) == -1) {
alert("\nThe E-MAIL field requires a \"@\" and a \".\"be used.\n\nPlease re-enter your e-mail address.")
Drop_Ship.billemail.select();
Drop_Ship.billemail.focus();
return false;
}



if (Drop_Ship.website.value  == "") {
alert("\nThe website field is blank.\n\nPlease enter your website.")
Drop_Ship.website.focus();
return false;
}


if (Drop_Ship.username.value  == "") {
alert("\nThe Username field is blank.\n\nPlease enter a Username.")
Drop_Ship.username.focus();
return false;
}
if (Drop_Ship.password.value  == "") {
alert("\nThe Password field is blank.\n\nPlease enter an eight to ten digit Password.")
Drop_Ship.password.focus();
return false;
}
if (Drop_Ship.password1.value  == "") {
alert("\nThe Confirm Password field is blank.\n\nPlease Confirm your Password.")
Drop_Ship.password1.focus();
return false;
}
if (Drop_Ship.password.value != Drop_Ship.password1.value) {
alert("\nThe Password field does not match the Confirm Password field.\n\nPlease Confirm your Password.")
Drop_Ship.password.focus();
return false;
}

if (Drop_Ship.Terms.checked == false) {
alert("Please review and accept the Terms and Conditions of Sale");
Drop_Ship.Terms.focus();
return false;
}

document.Drop_Ship.submit();
}   }











