var xmlHttp;
function GetXmlHttpObject(handler) { 
   
   	var objXmlHttp=null
  if (navigator.userAgent.indexOf("Opera")>=0) {
      alert("This example doesn't work in Opera") 
      return 
   	}
   if (navigator.userAgent.indexOf("MSIE")>=0) { 
      var strName="Msxml2.XMLHTTP"
      if (navigator.appVersion.indexOf("MSIE 5.5")>=0) {
         strName="Microsoft.XMLHTTP"
      } 
      try { 
         objXmlHttp=new ActiveXObject(strName)
         objXmlHttp.onreadystatechange=handler 
         return objXmlHttp
      } 
      catch(e) { 
         alert("Error. Scripting for ActiveX might be disabled") 
         return 
      } 
   } 
   if (navigator.userAgent.indexOf("Mozilla")>=0) {
      objXmlHttp=new XMLHttpRequest()
      objXmlHttp.onload=handler
      objXmlHttp.onerror=handler 
      return objXmlHttp
   }
} 




function stateChangedMainContent() { 

   if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") { 
      document.getElementById("main_content").innerHTML = xmlHttp.responseText;
   } 

}

function home()
{		
	var url="include/indextpl.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function dovesiamo()
{		
	var url="include/dovesiamo.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function rfshow()
{		
	var url="include/rfshow.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function rfbaby()
{		
	var url="include/rfbaby.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function rfmovie()
{		
	var url="include/rfmovie.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}  

function rfservizi()
{		
	var url="include/rfservizi.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function matrimoniotipo()
{		
	var url="include/matrimoniotipo.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function gallery()
{		
	var url="include/gallery.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function rfvideo()
{		
	var url="include/rfvideo.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function contatti()
{		
	var url="include/contatti.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function matrimoni()
{		
	var url="include/matrimoni.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function serenate()
{		
	var url="include/serenate.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function aziende()
{		
	var url="include/aziende.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}

function feste()
{		
	var url="include/feste.php";
	xmlHttp=GetXmlHttpObject(stateChangedMainContent);
	xmlHttp.open("POST", url , true);			
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.send(null);
}