<!--
function validateForSubmission(theImage){
	var theErrorMessage=""; var theValuationMessage="";
	if (document.getElementById('makeAndModel').value == ""){theErrorMessage+="MAKE and MODEL is a mandatory field"+"\r\n";}
	if (document.getElementById('year').value == ""){theErrorMessage+="We need to know what YEAR your trailer tent was made"+"\r\n";}
	if (document.getElementById("condition").value == ""){theErrorMessage+="Please tell us the CONDITION of your trailer tent"+"\r\n";}
	if (document.getElementById('howMuchWanted').value == ""){theErrorMessage+="Please tell us HOW MUCH you are hoping to get for your trailer tent"+"\r\n";}
	if (document.getElementById('whereHeard').value == ""){theErrorMessage+="Please tell us WHERE YOU HEARD ABOUT US"+"\r\n";}
	if (document.getElementById('contactName').value == ""){theErrorMessage+="Please supply us with YOUR NAME"+"\r\n";}
	if (document.getElementById('locationOfTrailerTent').value == ""){theErrorMessage+="Please tell us THE LOCATION we'd be collecting the trailer tent from"+"\r\n";}
	if (document.getElementById("phoneOrEmail").options[document.getElementById("phoneOrEmail").selectedIndex].value == ""){theErrorMessage+="Please tell us whether you'd prefer us to contact you by PHONE or EMAIL"+"\r\n";}
	if ((document.getElementById("phoneOrEmail").options[document.getElementById("phoneOrEmail").selectedIndex].value == "Phone") && ((document.getElementById('phoneNumber').value == "") || (document.getElementById('phoneNumber').value.length < 10))){theErrorMessage+="Please provide us with a valid PHONE NUMBER"+"\r\n";}
	if ((document.getElementById("phoneOrEmail").options[document.getElementById("phoneOrEmail").selectedIndex].value == "Email") && ((document.getElementById('emailAddress').value == "") || ((document.getElementById('emailAddress').value).indexOf("@") == -1) || ((document.getElementById('emailAddress').value).indexOf(".") == -1))){theErrorMessage+="Please provide us with a valid EMAIL ADDRESS"+"\r\n";}
	if ((document.getElementById('emailAddress').value != document.getElementById('emailConfirm').value)){theErrorMessage+="Your EMAIL ADDRESS and CONFIRMATION EMAIL ADDRESS do not match."+"\r\n";}
	if (theImage=='1' && ((document.getElementById('humanOrBot').value).toLowerCase())=="justify reciprocal"){;}else{if (theImage=='2' && ((document.getElementById('humanOrBot').value).toLowerCase())=="overhead government"){;}else{if (theImage=='3' && ((document.getElementById('humanOrBot').value).toLowerCase())=="flat convention"){;}else{theErrorMessage+="Anti Spam Box is not correct, please try again\r\n";}}}
if (theErrorMessage!=""){alert(theErrorMessage);}else{document.contactUs.submit();}
}
// -->
