function CuentaAtras(valor,recargar) {
    if(valor!=0) tiempo=valor-1;
    horas=Math.floor(valor/3600);
    valor-=3600*horas;
    min=Math.floor(valor/60);
    valor-=60*min;
    seg=valor;
    horas=(horas<10)? "0"+horas : horas;
    min=(min<10)? "0"+min : min;
    seg=(seg<10)? "0"+seg : seg;
    horas=(horas=="00")? "" : horas+":";
    min=(min=="00" && horas=="")? "" : min+":";
    seg=(seg=="00" && min=="")? "Booommm!!" : seg+"''";
    document.clock.CuentaAtras.value=horas+min+seg;
    if(seg=="Booommm!!" && recargar==1) window.location.reload();
    setTimeout("CuentaAtras(tiempo)",1000);
}

function ventana(theURL,winName,winWidth,winHeight) {
    var w = (screen.width - winWidth)/2;
    var h = (screen.height - winHeight)/2 - 50;
    features = 'directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;
    window.open(theURL,winName,features);
}