
function thanks(){
alert("Your inquiry has been sent.\nThank you for contacting Precision Aerospace.");
setTimeout('document.contact.reset()',10000);
}


function validate(contact) {

 var myform = document.contact;

if (myform.name.value == ""){
alert("Please fill in your Name");
myform.name.focus();
return false;
}
	
if (myform.title.value == ""){
alert("Please fill in your Title");
myform.title.focus();
return false;
}

if (myform.organization.value == ""){
alert("Please fill in your Organization");
myform.organization.focus();
return false;
}

if (myform.phone.value == "" || isNaN(myform.phone.value)){
alert("Please fill in a valid Telephone Number.\n Please do not use any spaces, dashes or periods.");
myform.phone.focus();
return false;
	
	}
	
if (myform.fax.value == "" || isNaN(myform.fax.value)){
alert("Please fill in a valid Fax Number.\n Please do not use any spaces, dashes, or periods.");
myform.fax.focus();
return false;

}

if (myform.email.value == "" || -1 == myform.email.value.indexOf("@")){
alert("Please fill in a valid e-mail address");
myform.email.focus();
return false;
}

else {document.contact.submit();
document.contact.reset();
}
}




