	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'];
	var stockno = (FORM_DATA['stockno']==undefined) ? "" : FORM_DATA['stockno'];
//check for empty string
if (make=='Select a Make') {
make="";
}
var astrisk="*";
model=model.replace(astrisk,"%26");
model=model.replace(" and "," %26 ");
model=model.replace("_"," ");
//if ( ((make=='') || (make=='Select a Make') ) && (bodytype=='') && (minprice=='') && (vin=='')  ) {
//document.write("<iframe src='http://ibdc.homenetinc.com/" + dealer +"/search3.asp?type_select=" + newused + "&style=narrow' name=new_inventory scrolling=no frameborder=no align=center height=" + frameheight + " width=" + framewidth + "></iframe>");
//} else { //lets go through and put things in the right phrase.

if (stockno == "") { //if the stock number isn't specified then build the serch page as normal
	if (newused == "used") {
	document.write("<iframe src='http://ibdc.homenetinc.com/" + dealer +"/browse2.asp?style=narrow&param_new-used=" + newused + "&param_make=" + make + "&param_model=" + model + "&param_standardbody=" +bodytype + "&param_sellingprice_begin="+ minprice + "&param_sellingprice_end="+ maxprice + "&param_vin=" +vin + "' name=new_inventory scrolling=no frameborder=no align=center height=" + frameheight + " width=" + framewidth + "></iframe>");
	 } else { //new
	 document.write("<iframe src='http://ibdc.homenetinc.com/" + dealer +"/browse2.asp?style=narrow&param_new-used=" + newused + "&param_make=" + make + "&param_model=" + model + "&param_standardbody=" + bodytype + "&param_msrp_begin="+minprice + "&param_msrp_end="+maxprice + "&param_vin=" +vin + "' name=new_inventory scrolling=no frameborder=no align=center height=" + frameheight + " width=" + framewidth + "></iframe>");
	 }
} else { //if stock Number IS specified, go right to detail page
	document.write("<iframe src='http://ibdc.homenetinc.com/" + dealer +"/details2.asp?path-taken=" + newused + "&vehicle_id=" + stockno + "' name=inventory scrolling=no frameborder=no align=center height=" + frameheight + " width=" + framewidth + "></iframe>");
}
//}