// JavaScript Document
function check_form() {
	var x = document.getElementById("quote")
	var apos=x.email.value.indexOf("@")
	var dotpos=x.email.value.lastIndexOf(".")
	var ok = true
	var error = "";
		if (x.companyName.value.length==0) {
		ok = false;
		error += "Please fill out your company name,"
		}
		if (x.contactPerson.value.length==0) {
		ok = false;
		error += "Please fill out your contact name,"
		}
		if (apos<1||dotpos-apos<2) {
		ok = false;
		error += " You do not have a valid email,"
		}
		if (x.phone.value.length==0) {
		ok = false;
		error += " Please send us you phone number,"
		}
		if (x.formcomments.value.length==0) {
		ok = false;
		error += " Please let us know your comments."
		}
		if (ok == false) {
		alert(error);
		}
		else  {		
		x.submit();
		}
	}	