// scripts for multicriteria search form
// default width and height (you could modify it in css)
if(!AJAXiForm_width)
	var AJAXiForm_width			= '100%';
if(!AJAXiForm_height)
	var AJAXiForm_height		= '300';
// id and name of the frame (for css and javascript)
if(!AJAXiForm_id)
	var AJAXiForm_id			= 'cars_search_form';
// where to get the form ?
if(!AJAXiForm_URL)
	var AJAXiForm_URL			= '/b/a/msf_100354123.html';
// scrolling option (true of false), default is no
if(!AJAXiForm_Scrolling)
	var AJAXiForm_Scrolling	= 'no';
else
	var AJAXiForm_Scrolling = 'yes';

document.write('<ifr'+'ame src="'+
			   AJAXiForm_URL+'" width="'+
			   AJAXiForm_width+'" height="'+
			   AJAXiForm_height+'" id="'+
			   AJAXiForm_id+'" name="'+
			   AJAXiForm_id+'" scrolling="'+
			   AJAXiForm_Scrolling+'" frameborder="0" marginheight="0" marginwidth="0"></if'+'rame>');

function AJAXiForm_resize_iframe() {
	AJAXiForm_id_frame_object = document.getElementById(AJAXiForm_id);
	if (AJAXiForm_id_frame_object.contentDocument && AJAXiForm_id_frame_object.contentDocument.body.offsetHeight) //ns6 syntax
		AJAXiForm_id_frame_object.height = AJAXiForm_id_frame_object.contentDocument.body.offsetHeight; 
	else if (AJAXiForm_id_frame_object.Document && AJAXiForm_id_frame_object.Document.body.scrollHeight) //ie5+ syntax
		AJAXiForm_id_frame_object.height = AJAXiForm_id_frame_object.Document.body.scrollHeight;
}