function page(lt,st,et)
   {
   scroll(0,0);
    //alert(lt);
    //alert(st);
    xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="paging.php?start="+et+"&pricesort="+st+"&makesort="+lt;
xmlHttp.onreadystatechange=admin_user;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function admin_user()
{
if(xmlHttp.readyState!=4)
{
document.getElementById('paging').innerHTML="Loading Used Cars Details! Please Wait!...";
}
if(xmlHttp.readyState==4)
{
document.getElementById('paging').innerHTML=xmlHttp.responseText;
}


}


//  for price search and make search concepts

function price_search(lt)
   {
   //alert(lt);
   var price=document.getElementById(lt).value;
   scroll(0,0);
    //alert(price);
    //alert(st);
    xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="paging.php?pricesort="+price;
//alert(url);
xmlHttp.onreadystatechange=pricesearch;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function pricesearch()
{
if(xmlHttp.readyState!=4)
{
document.getElementById('paging').innerHTML="Loading Used Cars Details! Please Wait!...";
}
if(xmlHttp.readyState==4)
{
//alert(xmlHttp.responseText);
document.getElementById('paging').innerHTML=xmlHttp.responseText;
}


}


/// /  make search

function make_search(lt)
   {
   //alert(lt);
   var make=document.getElementById(lt).value;
   scroll(0,0);
    //alert(make);
    //alert(st);
    xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="paging.php?makesort="+make;
//alert(url);
xmlHttp.onreadystatechange=makesearch;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function makesearch()
{
if(xmlHttp.readyState!=4)
{
//alert(xmlHttp.responseText);
document.getElementById('paging').innerHTML="Loading Used Cars Details! Please Wait!...";
}
if(xmlHttp.readyState==4)
{
document.getElementById('paging').innerHTML=xmlHttp.responseText;
}


}




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;
}
