function ajaxRequest(url,divid,loaderid,tabid)
{ 
 $('#'+loaderid).html("<img src=img/loader.gif>");
 var AJAX;
 try
 {   
  AJAX = new XMLHttpRequest();  
 }
 catch(e)
 {   
  try
  {     
   AJAX = new ActiveXObject("Msxml2.XMLHTTP");     
  }
  catch(e)
  {     
   try
   { 
    AJAX = new ActiveXObject("Microsoft.XMLHTTP");       
   }
   catch(e)
   {          
    return false;       
   }     
  }   
 }
 AJAX.onreadystatechange = function()
 {
  if(AJAX.readyState == 4)
  {
   if(AJAX.status == 200)
   {
    $('#'+divid).fadeOut('500', function() {
		$('#'+divid).html(AJAX.responseText);   
		$('#'+loaderid).html("");
		$(".navigator_button_selected").switchClass('navigator_button_selected','navigator_button',500);
		$("#tab"+tabid).switchClass('navigator_button','navigator_button_selected',500);
		$('#'+divid).fadeIn(500, function() {
		});
	});
   }
   else
   {
    alert("Error: "+ AJAX.statusText +" "+ AJAX.status);
	$('#'+loaderid).html("");
   }
  }   
 }
 AJAX.open("post", encodeURI(url), true);
 AJAX.send(null);
}

