var abierta=false;
var mw;

function digame(){
x=document.getElementById('diez');
setTimeout("x.style.display='block'",1000);   
}

function abrir(){
    setTimeout("digame()",10000);
}

function lapuerta(){
   document.getElementById('B1').style.color="#FFFF78";
x=document.getElementById('diez');
x.style.display="none";
}

function vermas()
{
   //document.getElementById('B2').style.color="#FFFF78";
   //var mw=open("","_blank");
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 && xmlhttp.status==200)
    {
        dd=xmlhttp.responseText;
		if (dd>0) {lapag="yaesta.php?pid="+dd;}
	else {lapag="prepago.htm";}
	//open("http://aura.librodeculto.com/trials/"+lapag+".htm","_blank","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes");
	location.assign("http://aura.librodeculto.com/trials/"+lapag);
	/*mw.location.assign("http://aura.librodeculto.com/trials/"+lapag); va junto con la primera línea*/

    //document.getElementById('bibi4').innerHTML=dd;
       // entrar(dd);
    }
  } 
xmlhttp.open("GET","check10.php",true);
xmlhttp.send();
}

function entrar(df) {
	if (!df==0) lapag=String("prepago");
	else var lapag=String("pospago");
	mw.location.assign("http://aura.librodeculto.com/trials/pospago.htm");
	//vermasX();
	//document.getElementById('bibi4').innerHTML=ss;
//str2="http://aura.librodeculto.com/trials/"+ss+".htm";**/
//open("prepago.htm","_blank","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes");
	
        //vermasX(ss);*/
	//open("prepago.htm","_blank",'width=500,height=300');
}

function vermasX(){
str2="http://aura.librodeculto.com/trials/pospago.htm";
open(str2,"_blank","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes");
return true;
}

function alBtn(th){
    with (th.style){
        backgroundColor="#FF8080";
        color="#D7FFFF";
        border="2px solid #D7FFFF";
        fontWeight="bold";
    }
}

function delBtn(th){
    with (th.style){
        backgroundColor="#FFFFF0";
        color="#483D8B";  
        border="1px solid #483D8B";
        fontWeight="normal";
    }
}

