<!--
function TestForm(form) {
	if ( !TestWhois(form) )
		return false;		
	return true;
}
function TestWhois(form) {
	str = document.domainForm.domainname.value;
	if ( str.indexOf('www.', 0) != -1) {
		alert("Por favor no escriba la www.");
		form.domainname.value = "";
		document.domainForm.domainname.focus();
		return false;
	}
	if ( str.indexOf('.', 0) != -1) {
		alert("Por favor no escriba la extensión del dominio.");
		form.domainname.value = "";
		document.domainForm.domainname.focus();
		return false;
	}
	if ( str.length <= 2  ) {
		alert("El dominio como mínimo debe tener 3 caracteres.");
		document.domainForm.domainname.focus();
		return false;
	}
	if ( str.length >= 64  ) {
		alert("El dominio como mánimo puede tener 63 caracteres.");
		document.domainForm.domainname.focus();
		return false;
	}

	if ( str == "" ) {
		alert("Por favor escriba un nombre de dominio.");
		document.domainForm.domainname.focus();
		return false;
	}
	for ( var i = 0; i < str.length; i++ ) {
		var ch = str.substring(i, i + 1);
		if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch)) && ch != '-') {
			alert("El nombre dominio tiene caracteres no permitidos. Utilice solamente letras, números o '-'");
			form.domainname.value = "";
			document.domainForm.domainname.focus();
			return false;
		}
	}
	return true;
}

			
function abrir(direccion, pantallacompleta, herramientas, direcciones, estado, barramenu, barrascroll, cambiatamano, ancho, alto, izquierda, arriba, sustituir){
	var opciones = "fullscreen=" + pantallacompleta + 
				   ",toolbar=" + herramientas +
				   ",location=" + direcciones +
				   ",status=" + estado +
				   ",menubar=" + barramenu +
				   ",scrollbars=" + barrascroll + 
				   ",resizable=" + cambiatamano +
				   ",width=" + ancho +
				   ",height=" + alto +
				   ",left=" + izquierda +
				   ",top=" + arriba;
	var ventana = window.open(direccion,"venta",opciones,sustituir);

}					
