var project_name = '';

function getProjectName()
	{
	project_name=document.getElementById("project_name").value;
	
	if(project_name!=null && project_name!="")
	  {
	   project_name='/'+project_name;   
	  }
	}

function getLoader()
{
	return '<img src="http://'+location.hostname+project_name+'/images/ajax-loader.gif">';
}

function deleverytimessearchpaging(urlval,formobj)
{

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support")
 return
 }

var url2  =  decodeURIComponent(urlval)+'?delivery_time='+formobj.delivery_time.value+'&ajax=1';

document.getElementById('ajax_loader').innerHTML=getLoader();

xmlHttp.onreadystatechange=stateChangedBuyerList 
xmlHttp.open("GET",url2,true)
xmlHttp.send(null)
}

function deliverytimeslistpaging(urlval)
{

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support")
 return
 }

var url2   =  decodeURIComponent(urlval)+'&ajax=1';

document.getElementById('ajax_loader').innerHTML=getLoader();;

xmlHttp.onreadystatechange=stateChangedBuyerList 
xmlHttp.open("GET",url2,true)
xmlHttp.send(null)
}
function stateChangedBuyerList() 
{ 
//alert("stateChanged")
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
// alert("s");
//alert(xmlHttp.responseText);
//document.getElementById("cat2div").innerHTML=""
document.getElementById("center_content").innerHTML=xmlHttp.responseText
document.getElementById('ajax_loader').innerHTML="";
//document.getElementById("cat4div").innerHTML=""    
//document.getElementById("cat3div").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");
  }
 }
//alert(xmlHttp);
return xmlHttp;
}

