var blnOk=true;
var numMenu=4
function verdatos(){
//document.getElementById("menucolores").style.height="900px"
//alert(document.getElementById("menucolores").style.height)
for(i=1;i<=numMenu;i++) {
	//alert(parsetInt(document.getElementById("menu"+i).style.pixelLeft))
	//alert(parseInt(document.getElementById("menu"+i).offsetWidth))
	}
}

function muestra(idli){
	for(n=1;n<=4;n++){
		document.getElementById("liMenu"+n).style.display='none'
	}
	document.getElementById(idli).style.display='block'
}

function quitatodo(){
	for(n=1;n<=4;n++){
		document.getElementById("liMenu"+n).style.display='none'
	}
	
}
function setFontSize(size) {
	document.body.style.fontSize=size+"em";
}


function tipocargaSTD(){
	vecesJX++
	//if(vecesJX>=40) clearInterval(nInter);
	 document.getElementById("descri2").value=vecesJX
	tiempo=new Date().getTime()
	cadVar="nf=cancion.mp3&ms="+tiempo
	var myConn = new XHConn();
        if (!myConn) alert("XMLHTTP no esta disponible. Int&eacute;ntalo con un navegador m&aacute;s actual."); 
        var peticion = function (oXML) {  document.getElementById("progr").innerHTML=oXML.responseText; document.getElementById("descri2").value=vecesJX}; 
        myConn.connect("tamanionf.asp", "POST", cadVar, peticion); 
	
}


		function XHConn()
{
  var xmlhttp, bComplete = false;
  
  try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
  catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
  catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
  
  
  if (!xmlhttp) return null;
  this.connect = function(sURL, sMethod, sVars, fnDone)
  {
    if (!xmlhttp) return false;
    bComplete = false;
    sMethod = sMethod.toUpperCase();

    try {
      if (sMethod == "GET")
      {
        xmlhttp.open(sMethod, sURL+"?"+sVars, true);
        sVars = "";
      }
      else
      {
        xmlhttp.open(sMethod, sURL, true);
        xmlhttp.setRequestHeader("Method", "POST "+sURL+" HTTP/1.1");
        xmlhttp.setRequestHeader("Content-Type",
          "application/x-www-form-urlencoded");
      }
      xmlhttp.onreadystatechange = function(){
        if (xmlhttp.readyState == 4 && !bComplete)
        {
          bComplete = true;
          fnDone(xmlhttp);
        }};
      xmlhttp.send(sVars);
    }
    catch(z) { return false; }
    return true;
  };
  return this;
}


function aleatorio(inferior,superior){ 
numPosibilidades = superior - inferior 
aleat = Math.random() * numPosibilidades 
aleat = Math.round(aleat) 
return parseInt(inferior) + aleat 
} 

function desco(){
	location.href="identifica.asp?accion=d"
}



function isEmail(email) {
var result = false; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(email)) result= true;
return result;
}

