function objetoAjax(){
 var xmlhttp=false;
  try{
   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  }catch(e){
   try {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
   }catch(E){
    xmlhttp = false;
   }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
   xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function Pagina(nropagina){
 divContenido = document.getElementById('contenido');
 
 Ajax=objetoAjax();
 Ajax.open("GET", "funciones/Proc.Fr.php?"+document.getElementById('Z2VsdHI').value+"&pag="+nropagina, true);
 divContenido.innerHTML= '<img src="img/load_art.gif">';
 Ajax.onreadystatechange=function() {
  if (Ajax.readyState==4) {
   divContenido.innerHTML = Ajax.responseText
  }
 }
 Ajax.send(null)
}
function ocultar(enla) {
 img_ocul = '<img src="http://fullritmo.net/img/ocul_16.gif" border="0">';
  img_most = '<img src="http://fullritmo.net/img/mos_16.gif" border="0">';
  obj = document.getElementById('publicidad');
  obj.style.display = (obj.style.display == '') ? 'none' : '';
  enla.innerHTML = (enla.innerHTML == img_most) ? img_ocul : img_most;
}




function ped() {
if(document.getElementById('_Interprete').value != '' && document.getElementById('_Cancion').value != ''){
 divContenidoa = document.getElementById('Rsc');
Ajax=objetoAjax();
var url = "./Respuestas.Ajax.php?Accion=Pedido&a="+document.getElementById('_Interprete').value+"&t="+document.getElementById('_Cancion').value;
Ajax.open("GET", url, true);
Ajax.onreadystatechange = function() {
 
  if (Ajax.readyState == 4) {
	  if (Ajax.status == 200) {
		Respuesta = Ajax.responseText;
		if(Respuesta){
		divContenidoa.innerHTML = '<div style="padding:4px; border:1px solid #ccc"><b>Posibles int&eacute;rpretes de tu pedido:</b><br /><br />'+Respuesta+"</div>";
		}
	  }
  }
}
Ajax.send(null);
}
}

function rd(valor){for(i=0;i<valor.length;i++)if(valor[i].checked) return valor[i].value;}
function $(el){return document.getElementById(el);}

function imn(o,e){
if (o.style.display == "none"){o.style.display = "";if(e != '') {$(e).className = "mas"; }
}else{o.style.display = "none";if(e != '') {$(e).className = "";}}
}

function j(Elemento){$(Elemento).focus(); $('f-'+$(Elemento).alt).innerHTML = '<span  class="fr-1" style="position:absolute"></span><span  class="fr-2">'+$(Elemento).title+'</span>';  }
function e(Elemento){$('f-'+$(Elemento).alt).innerHTML = ''}
function SelectAll(id){ $('#'+id).focus(); $('#'+id).select();}
function rdc(u){ window.location.href="http://"+document.domain+"/"+u;} 