<!--
function toggle( targetId){
	if (document.getElementById){
		target = document.getElementById( targetId );
				target.style.display = "block";
	}
}

function toggleOff( targetId ){
	if (document.getElementById){
		target = document.getElementById( targetId );
				target.style.display = "none";
	}

}

function setClass(targetId, value){
	if (document.getElementById){
		target = document.getElementById(targetId);
			target.className = value;
	}
}


function switchTab(show, hide, tabon, taboff){
	toggle(show);
	toggleOff(hide);
	setClass(tabon, 'current');
	setClass(taboff, '');
	//tabon = document.getElementById(tabon);
	//taboff = document.getElementById(taboff);
		
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("listNewModels").innerHTML=xmlHttp.responseText;
	}
}


function stateChanged2() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("listUsedModels").innerHTML=xmlHttp.responseText;
	}
}
// set to Listing Type
function stateChanged3() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("listUsedMakes").innerHTML=xmlHttp.responseText;
	}
}
// admin featured vehicle
function stateChanged4() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("searchResults").innerHTML=xmlHttp.responseText;
	}
}


//-->
