

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
 dia=fecha.getDate();
 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=dia+" "+mimes[mes]+" "+anio+" &nbsp;";

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 style='font-size:7pt'><p align=right>"+mifecha+" "+horas+":"+min+"&nbsp;</p></font>";
   sw=1;
  }else{
   clockobj.innerHTML="<font class=textocontenido style='font-size:7pt'><p align=right>"+mifecha+" "+horas+"<font color=#dcdcdc>:</font>"+min+"&nbsp;</p></font>";
    sw=0;
  }
}

 setTimeout("show()",1000)
}

window.onload=show



function popimg(url,nom,ancho, alto){
	izquierda = (screen.width) ? (screen.width-ancho)/2 : 100
	arriba = (screen.height) ? (screen.height-alto)/2 : 100
	opciones = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=' + ancho + ',height=' + alto + ',left=' + izquierda + ',top=' + arriba + ''
	window.open(url, nom, opciones)
}


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");

}


  function sobre(name){
	eval("trans=document.images['"+name+"_1'].src");
	eval("document.images['"+name+"_1'].src=document.images['"+name+"_2'].src");
	eval("document.images['"+name+"_2'].src=trans");
  }



function muestra(capa){
  document.getElementById(capa).style.visibility='visible';
  formul.palabra.focus();
}


function oculta(capa){
  document.getElementById(capa).style.visibility='hidden';
}



function cbuscar(){ 
   if(document.forms.formul.palabra.value.length<4){
    alert('La palabra buscada tiene que tener más de 3 caracteres');
   }else{
    document.forms.formul.submit();	
   }
} 




function enviafrm(){
	
	if(document.forms.formulario._correo_.value==""){

		alert("El campo E-mail es obligatorio");
		return false;

	}else{

		document.forms.formulario.submit();
	
	}
}




function comp(){
	
	if((document.forms.fcambio.usant.value=="")||(document.forms.fcambio.pswant.value=="")||(document.forms.fcambio.pswnew.value=="")||
		(document.forms.fcambio.pswnew2.value=="")||(document.forms.fcambio.usnew.value=="")){

		alert("Todos los campos son obligatorios");
		return false;

	}else{

		if(document.forms.fcambio.pswnew.value==document.forms.fcambio.pswnew2.value){

			document.forms.fcambio.submit();

		}else{

			alert("Las nuevas claves introducidas no son iguales.");
			return false;

		}
	
	}
}




function centrada(){
	
	if((document.forms.frmentrada.nome.value=="")||(document.forms.frmentrada.passe.value=="")){

		alert("Introduzca el nombre y la contraseña de acceso.");
		return false;

	}else{

		document.forms.frmentrada.submit();
	
	
	}

}



//BUSCADOR DE DOMINOS
var NS=false;
var ov=0;
function Enviar()
{
if (!document.whois.query.value) {return;}

cgiurl="http://www.chatox.com/whois/whois.cgi";
cgiparams="?query="+document.whois.query.value;

cgiparams=cgiparams + "&wtarget=";
cgiparams=cgiparams + "&wtitle=Buscador de Dominios (WHOIS)";
cgiparams=cgiparams + "&wname=";
cgiparams=cgiparams + "&wlogo=http://www.dominioses.com/imagenes/logodom.gif";
cgiparams=cgiparams + "&wtext_1=El dominio esta libre.";
cgiparams=cgiparams + "&wtext_2=El dominio esta actualmente registrado.";
cgiparams=cgiparams + "&wtext_3=Escriba correctamente el dominio (sin el www.)";
cgiparams=cgiparams + "&wtext_4=Número de consultas realizadas hoy:";
cgiparams=cgiparams + "&wtxt_contract=REGISTRAR DOMINIO";
cgiparams=cgiparams + "&wurl_contract=http://www.productosweb.org/contacto.php";
cgiparams=cgiparams + "&wtxt_exit=SALIR";
cgiparams=cgiparams + "&wurl_exit=javascript:self.close();";
cgiparams=cgiparams + "&wfontcolor=black";
cgiparams=cgiparams + "&wfontfamily=Verdana,Geneva,Arial,Helvetica,sans-serif";
cgiparams=cgiparams + "&wfontsize=12px";
cgiparams=cgiparams + "&wnamefcolor=red";
cgiparams=cgiparams + "&wnameffamily=Verdana,Geneva,Arial,Helvetica,sans-serif";
cgiparams=cgiparams + "&wnamefsize=20px";
cgiparams=cgiparams + "&wtextfcolor=navy";
cgiparams=cgiparams + "&wtextffamily=Verdana,Geneva,Arial,Helvetica,sans-serif";
cgiparams=cgiparams + "&wtextfsize=14px";
cgiparams=cgiparams + "&wbgcolor=%23FFFFFF";
cgiparams=cgiparams + "&wbgimage=";

cgiparams=cgiparams + "&targetnic=auto";

uri=cgiurl + cgiparams;
newvent=""; newvent=newvent.toLowerCase()
if (newvent=="own") { document.location.href=uri; return 0; }

if(NS) 
	{
	w2=window.open ('',newvent,'innerHeight=400,innerWidth=500,height=400,width=500,menubar=no,toolbar=no,status=yes,locationbar=no,resizable=yes,scrollbars=yes');
	w2.location.href=uri;
	}
	else
	{
	w2=window.open (uri,newvent,'height=400,width=500,menubar=no,toolbar=no,status=yes,locationbar=no,resizable=yes,scrollbars=yes');
	}
} 

function wo(u){
url="javascript:document.write('<html><body><center><br><br><br><br><br><div style=color:red;font-family:Arial,Verdana;font-size=12px;><b>Entrando en CHATOX...</b></div></center></body></html>')";
sev="window.open(url,'V2','height=300,width=500,menubar=no,toolbar=no,status=no,locationbar=no,resizable=yes,scrollbars=yes');";
V2=eval(sev);
V2.focus();V2.moveTo(0,0);V2.location.href=u;
}




