

sw=0;
var standardbrowser=!document.all&&!document.getElementById

if (standardbrowser)
document.write('<form name="tick"><input type="text" name="tock" size="4"></form>')


function show(){
 if (!standardbrowser)
 fecha=new Date();
 var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock
 mes=fecha.getMonth();
 anio=fecha.getYear();
 horas=fecha.getHours();
 min=fecha.getMinutes();
 if(min<10){
  min="0"+min;
 }
 mimes=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

 mifecha=mimes[mes]+"/"+anio+" - ";

if (standardbrowser){
   if (sw==0){
    document.tick.tock.value=mifecha+" "+horas+":"+min+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    sw=1;
   }else{
    document.tick.tock.value=mifecha+" "+horas+":"+min+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    sw=0;
   }
}else{
  if (sw==0){
   clockobj.innerHTML="<font class=textocontenido><p align=right>"+mifecha+" "+horas+":"+min+"</p></font>";
   sw=1;
  }else{
   clockobj.innerHTML="<font class=textocontenido><p align=right>"+mifecha+" "+horas+"<font color=#dcdcdc>:</font>"+min+"</p></font>";
    sw=0;
  }
}

 setTimeout("show()",1000)
}

window.onload=show




function ventana(x,y,z){

  n=y.lastIndexOf(" ");

  y=y.substring(n+1,y.length);

  window.open(x,y,z);

}


function abrir(x){

  window.open(x,"envioamigo","width=300,height=300,scrollbars=auto,toolbar=no,top=40,left=40");

}
