	var newused = (FORM_DATA['newused']==undefined) ? defaultset : FORM_DATA['newused'];
	var make = (FORM_DATA['make']==undefined) ? "" : FORM_DATA['make'];
	var model = (FORM_DATA['model']==undefined) ? "" : FORM_DATA['model'];
	//var bodytype = (FORM_DATA['bodytype']==undefined) ? "" : FORM_DATA['bodytype'];
	var minprice = (FORM_DATA['minprice']==undefined) ? "" : FORM_DATA['minprice'];
	var maxprice = (FORM_DATA['maxprice']==undefined) ? "" : FORM_DATA['maxprice'];
	var vin = (FORM_DATA['vin']==undefined) ? "" : FORM_DATA['vin'];
//check for empty string
var astrisk="*";
model=model.replace(astrisk,"%26");
model=model.replace(" and "," %26 ");
if (vin == "") { //If it's not pointing to a specific vehicle build the search with the known parameters*/
document.write("<iframe src='http://www.cdmdata.com/cdmdigitallot/vehicles.asp?dealerid=" + dealer +"&mmType=" + newused + "&mmMakes=" + make + "&mmModels=" + model + "&bprice=" + minprice + "&eprice=" + maxprice + "&srch=s' name=inventory scrolling=no frameborder=no align=center height=" + frameheight + " width=" + framewidth + "></iframe>");
 } else { //Go directly to the vehicle page based on the vin
 document.write("<iframe src='http://www.cdmdata.com/cdmdigitallot/VehicleDetails.aspx?DealerID=" + dealer + "&vin=" + vin + "' name=inventory scrolling=no frameborder=no align=center height=" + frameheight + " width=" + framewidth + "></iframe>");
 }
 