<!-- 

//----------------- START Main validation function

function isEmail(elm) {
	if (elm.value.indexOf("@") != "-1" &&
		elm.value.indexOf(".") != "-1" &&
		elm.value != "")
	return true;
	else return false;
}

function Validator(Form1) {

	if (Form1.billing_company.value == "") {
	    alert("Please enter a value for the \"Company\" field.");
	    Form1.billing_company.focus();
	    return (false);
	}

	if (Form1.billing_country.value == "") {
	    alert("Please enter a value for the \"Country\" field.");
	    Form1.billing_country.focus();
	    return (false);
	}
	
	if (Form1.name.value == "") {
		alert("Please enter a value for \"Name\" field.");
		Form1.name.focus();
		return(false);
	}
	
	if (Form1.phone.value == "") {
		alert("Please enter a value for the \"Phone\" field.");
		Form1.phone.focus();
		return (false);
	}

	if (Form1.fax.value == "") {
		alert("Please enter a value for \"Fax\" field.");
		Form1.fax.focus();
		return(false);
	}
	
	if (isEmail(Form1.email) == false) {
		alert("Your e-mail address does not appear to be correct. Please re-enter.");
		Form1.email.focus();
		return (false);
	}

	if (Form1.Material_Specification_Reference.value == "") {
		alert("Please enter a value for \"Material\" field.");
		Form1.Material_Specification_Reference.focus();
		return (false);
	}

	if (Form1.quantity.value == "") {
		alert("Please enter a value for \"Quantity\" field.");
		Form1.quantity.focus();
		return (false);
	}

} 

// END FUNCTION Validator

 -->