function estado(texto)
{
window.status = texto;
document.onmouseover = function ( e ) {   
if ( !e ) e = window.event;   
var el = e.target ? e.target : e.srcElement;   
while ( el != null && el.tagName != "A" ) el = el.parentNode;   
if ( el == null ) return;   
if ( e.preventDefault ) e.preventDefault();   
else e.returnValue = true;};
}

function ventana(url,nombre,ancho,alto) 
{
var izquierda = (screen.width - ancho)/2;
var arriba = (screen.height - alto)/2;

izquierda -= 5;
arriba -= 18;

remote = window.open(url,nombre,"resizable=yes, width="+ancho+", height="+alto+", top="+arriba+", left="+izquierda);
if (remote.opener == null) remote.opener = window; 
remote.opener.name = "opener";
}

function imagen(url,nombre,ancho,alto) 
{
var izquierda = (screen.width - ancho)/2;
var arriba = (screen.height - alto)/2;

izquierda -= 5;
arriba -= 18;

ver = window.open("",nombre,"width="+ancho+" height="+alto+" top="+arriba+" left="+izquierda);
ver.document.writeln('<html>');
ver.document.writeln('<head><title>Imagen</title></head>');
ver.document.writeln('<body topmargin="0" leftmargin="0" oncontextmenu="return false;"><img src="'+url+'"></body>');
ver.document.writeln('</html>');
}

function confirmar(){
<!-- llamda de función: onClick="return confirmar()" -->
   if (confirm("Confirmar la acci\u00F3n deseada")){
      return true;
   } else {
      return false;
   }
}
function fc() {
<!-- función de espera para activar un elemento -->
    if(c>0){
        document.getElementById("dl").innerHTML = '<h3>Tiempo de espera</h3><h3 style="font-size:24pt;" id="zeit">' + c + '</h3>';
        c=c-1;        
        setTimeout("fc()", 1000);
    } else {
	var tt = '<a onclick="valida_envia()" href="#" class="Estilo3">FINALIZAR</a>'
	document.getElementById("dl").innerHTML = tt;
	}
}
var c=180;          
if (window.location.hash == "#dlt")
c = 0;
function fc2() {
<!-- función de espera para activar un elemento -->
    if(d>0){
        document.getElementById("dl").innerHTML = '<h3>Tiempo de espera</h3><h3 style="font-size:24pt;" id="zeit">' + d + '</h3>';
        d=d-1;        
        setTimeout("fc2()", 1000);
    } else {
	var tt = '<a href="#s"><img src="imgweb/botons1.gif" width="75" height="25" onclick="valida_envia()" border="0"></a>'
	document.getElementById("dl").innerHTML = tt;
	}
}
var d=120;          
if (window.location.hash == "#dlt")
d = 0;
