
function ajax_Format(valor)
{
	var xmlhttp;
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}else{
	  	// code for IE6, IE5
	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if(xmlhttp.readyState==4)
	  {
	  //document.myFormTest.language.value=xmlhttp.responseText;
	  }
	}
	var url="x_format.php";
	url=url+"?f="+valor+"&f2="+Date();
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}
function ajax_Lang(valor)
{
	var xmlhttp;
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}else{
	  	// code for IE6, IE5
	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if(xmlhttp.readyState==4)
	  {
	  //document.myFormTest.language.value=xmlhttp.responseText;
	  }
	}
	var url="x_lang.php";
	url=url+"?l="+valor+"&l2="+Date();
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}
function ajax_Mosaic()
{
	var xmlhttp;
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}else{
	  	// code for IE6, IE5
	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if(xmlhttp.readyState==4)
	  {

            document.getElementById("mosaic").innerHTML=xmlhttp.responseText;

	  }
	}
	var url="x_mosaic.php";
	//Prueba para la caché
	url=url+"?l="+Date();
	////////////////////////////////////
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);

}
function ajax_Latest()
{
	var xmlhttp;
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}else{
	  	// code for IE6, IE5
	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if(xmlhttp.readyState==4)
	  {

            document.getElementById("latest").innerHTML=xmlhttp.responseText;

	  }
	}
	var url="x_latest.php";
	//Prueba para la caché
	url=url+"?l="+Date();
	////////////////////////////////////
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);

}
function ajax_Top_Visits()
{
	var xmlhttp;
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}else{
	  	// code for IE6, IE5
	  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
	if(xmlhttp.readyState==4)
	  {
	  document.getElementById("topvisits").innerHTML=xmlhttp.responseText;
//	  document.myForm.time3.value=xmlhttp.responseText;
	  }
	}
	var url="x_top_visits.php";
	//Prueba para la caché
	url=url+"?l="+Date();
	////////////////////////////////////
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);

}
