function ajaxLoader(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("GET", url+"?data="+data, true);
	
	xmlHttp.send(null);
	
	
  }
}


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;


}
