/**
 * results
 * 
 * Javascript to handle inventoroy results page
 * 
 * @version		1.0rc1
 * 
 * @author		liquid motors inc.
 * @copyright		Copyright 2006-2008 liquid motors inc.
 */
function changepage( pagenum )
{
	var pc = document.getElementById('txtPageChange');
	pc.value = "true";
	var cp = document.getElementById('txtCurPage');
	cp.value = pagenum;
	document.forms[0].submit();
}
function setmake( makename )
{
	var txtMake = document.getElementById('txtSelectMake');
	if (txtMake)
	{
		txtMake.value = makename;
		document.forms[0].submit();
	}
}
function changemake()
{
    var ddl = document.getElementById('ddlMake');
    var makename = ddl.options[ddl.selectedIndex].value;
	var txtMake = document.getElementById('txtSelectMake');
	if (txtMake)
	{
		txtMake.value = makename;
		document.forms[0].submit();
	}
}

setTimeout( initform, 200);
function initform()
{
  if (!theForm)
  {
    theForm = document.forms["Form1"];
  }
}