var xmlHttpFantour

function getAjaxFantour(position) {
document.getElementById("divAjaxFantour").style.opacity = 0.3;

xmlHttpFantour=GetxmlHttpFantourObject()
if (xmlHttpFantour==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
var url
url="module/index/php/ajax_fantour.php"
url=url+"?position="+position
url=url+"&sid="+Math.random()
xmlHttpFantour.onreadystatechange=stateChangedFantour 
xmlHttpFantour.open("GET",url,true)
xmlHttpFantour.send(null)
} 

function stateChangedFantour() 
{ 
if (xmlHttpFantour.readyState==4 || xmlHttpFantour.readyState=="complete")
 { 
  document.getElementById("divAjaxFantour").innerHTML=xmlHttpFantour.responseText;
  document.getElementById("divAjaxFantour").style.opacity = 1.0;
 } 
}

function GetxmlHttpFantourObject()
{
var xmlHttpFantour=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpFantour=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttpFantour=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpFantour=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpFantour;
}
