<!--
var objFecha = new Date();
var inicio = objFecha.getTime();

function tiempo(){
    var objFecha = new Date();
    var fin = objFecha.getTime();
    alert("Tiempo de carga: "+(fin-inicio)/1000+" segundos.");
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_preloadImages('/images/solo10-fondo.gif','/images/solo10-top.gif');

function SubmitForm(form) {
	if (TestForm(form))
		form.submit();
}

function SubmitTransferencia () {
  var dom = document.transferencia_dominio.Product
  var list = document.transferencia_dominio.productID
  dom.value = dom.value + list.options[list.selectedIndex].text;
  document.transferencia_dominio.submit();
}
function SubmitRenovacion () {
  var dom = document.renovacion_dominio.Product
  var list = document.renovacion_dominio.productID
  dom.value = dom.value + list.options[list.selectedIndex].text;
  document.renovacion_dominio.submit();
}

function TestForm(form) {
	if ( !TestWhois(form) )
		return false;		
	return true;
}
function TestWhois(form) {
	str = document.domainForm.dom.value;
	if ( str.indexOf('www.', 0) != -1) {
		alert("Por favor no escriba la www.");
		form.dom.value = "";
		document.domainForm.dom.focus();
		return false;
	}
	if ( str.indexOf('.', 0) != -1) {
		alert("Por favor no escriba la extensión del dominio.");
		form.dom.value = "";
		document.domainForm.dom.focus();
		return false;
	}
	if ( str.length <= 2  ) {
		alert("El dominio como mínimo debe tener 3 caracteres.");
		document.domainForm.dom.focus();
		return false;
	}
	if ( str.length >= 64  ) {
		alert("El dominio como mánimo puede tener 63 caracteres.");
		document.domainForm.dom.focus();
		return false;
	}

	if ( str == "" ) {
		alert("Por favor escriba un nombre de dominio.");
		document.domainForm.dom.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.dom.value = "";
			document.domainForm.dom.focus();
			return false;
		}
	}
	return true;
}

function SubmitEmail(form) {
	if (TestEmail(form)) form.submit();
}

function TestEmail(form) {
	if ( form.email.value.indexOf("@", 0) == -1) {
		alert("La dirección de correo no es válida.");
		form.email.value = "";
		form.email.focus();
		return false;
	}
	return true;
}

//-->

