function ajaxLoaderPost(url,id,data) {

if(id!='septac'){
var put='<div id="preloader"></div>';
document.getElementById(id).innerHTML = put;
}else{
document.getElementById('loaderSearch').style.visibility="visible";	
}

	
var xmlHttp	
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
  if (document.getElementById) {
    xmlHttp = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (xmlHttp) {
    xmlHttp.onreadystatechange = function() {
      if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = xmlHttp.responseText;

      }
    }

	
	xmlHttp.open("POST", url, true);
	var params = "sortData="+data;

	
	//Send the proper header infomation along with the request
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", params.length);
	xmlHttp.setRequestHeader("Connection", "close");
	//alert(params.length)
	xmlHttp.send(params);
	
	
  }
}


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;


}


