

   function progactual(val) {
 
	var xmlhttp;
 
	if (window.XMLHttpRequest)
	  {  xmlhttp=new XMLHttpRequest(); }
	else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	else { alert("Tu navegador no soporta XMLHTTP!:"+window.XMLHttpRequest); }
	xmlhttp.onreadystatechange=function()
	{
	// en proceso
	if(xmlhttp.readyState!=4)
	{
	  txtHTML="<div style='width:50px;height:30px;margin-top:1px; '><img src='./images/ajax-barra.gif'></div>"
	  document.getElementById("actual").innerHTML=txtHTML;
	}
	// finalizado 
	if(xmlhttp.readyState==4)
	  {
	  document.getElementById("actual").innerHTML=xmlhttp.responseText;
	  }
	}

	var alea = Math.random();
	xmlhttp.open("GET","includes/progactual.asp?rnd="+alea,true);
	xmlhttp.send(null);
	}




   function progonline(val) {
 
	var xmlhttp;
 
	if (window.XMLHttpRequest)
	  {  xmlhttp=new XMLHttpRequest(); }
	else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	else { alert("Tu navegador no soporta XMLHTTP!:"+window.XMLHttpRequest); }
	xmlhttp.onreadystatechange=function()
	{
	// en proceso
	if(xmlhttp.readyState!=4)
	{
	  txtHTML="<div style='width:50px;height:30px;margin-top:1px; '><img src='./images/ajax-barra.gif'></div>"
	  document.getElementById("popup_obretanca").innerHTML=txtHTML;
	}
	// finalizado 
	if(xmlhttp.readyState==4)
	  {
	  document.getElementById("popup_obretanca").innerHTML=xmlhttp.responseText;
	  }
	}

	var alea = Math.random();
	xmlhttp.open("GET","includes/progonline.asp?rnd="+alea,true);
	xmlhttp.send(null);
	}
	


   function AjaxPlayer(enllac,valid) {
 
	var xmlhttp;
	
	//borra els audios
	var t;
	for (t=0;t<=100;t++)
	{
		try
		  {
		  document.getElementById("PLAYER"+t).innerHTML="<div style='background-color:#eaeaea;'></div>";
		  }
		catch(err)
		  {
		  
		  }
	}
 
	if (window.XMLHttpRequest)
	  {  xmlhttp=new XMLHttpRequest(); }
	else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	else { alert("Tu navegador no soporta XMLHTTP!:"+window.XMLHttpRequest); }
	xmlhttp.onreadystatechange=function()
	{
	// en proceso
	if(xmlhttp.readyState!=4)
	{
	  txtHTML="<div style='width:50px;height:30px;margin-top:3px; '><img src='./images/ajaxplayer.gif'></div>"
	  document.getElementById("PLAYER"+valid).innerHTML=txtHTML;
	}
	// finalizado 
	if(xmlhttp.readyState==4)
	  {
	  document.getElementById("PLAYER"+valid).innerHTML=xmlhttp.responseText;
	  }
	}

	var alea = Math.random();
	xmlhttp.open("GET","includes/player.asp?myUrl="+enllac+"&rnd="+alea,true);
	xmlhttp.send(null);
	}


	


   function eltemps(valor,wdiv) {
 
	var xmlhttp;
 
	if (window.XMLHttpRequest)
	  {  xmlhttp=new XMLHttpRequest(); }
	else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	else { alert("Tu navegador no soporta XMLHTTP!:"+window.XMLHttpRequest); }
	xmlhttp.onreadystatechange=function()
	{
	// en proceso
	if(xmlhttp.readyState!=4)
	{
	  txtHTML="<div style='width:100%;height:10px;'><img src='images/5-0white.gif' width=32 height=32></div>"
	  document.getElementById("sol").innerHTML=txtHTML;
	}
	// finalizado 
	if(xmlhttp.readyState==4)
	  {
	  document.getElementById("sol").innerHTML=xmlhttp.responseText;
	  }
	}
	var alea = Math.random();
	xmlhttp.open("GET","eltemps.asp?tip="+valor,false);
	xmlhttp.send(null);
	}


