function Whois() {
  mywin= open("mh/whoissp.cgi", "whois", 
  "width=500,height=450,status=no,toolbar=no,menubar=no,scrollbars=yes,top=0,left=0");
}


function IDNavegador() {
  if(navigator.appName) {
    if( navigator.appName == "Microsoft Internet Explorer") return 1;
    if( navigator.appName == "Netscape") return 2;
  }
  return 0;
}
	

function Reseller() {

  var winh=480, winw=640;
  var Nav = IDNavegador();
  if( window.screen.availWidth && window.screen.availHeight ) {
		winh = window.screen.availHeight - 80;
		if( Nav == 2 ) winh = winh - 10;
		winw = window.screen.availWidth - 10;
  }
  window.open("https://mychosting.com/reseller","orden", "status=yes,resizable=no,scrollbars=yes,top=0,left=0,width="+winw+",height="+winh);
}


function Order() {

  var winh=480, winw=640;
  var Nav = IDNavegador();
  if( window.screen.availWidth && window.screen.availHeight ) {
		winh = window.screen.availHeight - 80;
		if( Nav == 2 ) winh = winh - 10;
		winw = window.screen.availWidth - 10;
  }
  window.open("https://mychosting.com/billing","orden", "status=yes,resizable=no,scrollbars=yes,top=0,left=0,width="+winw+",height="+winh);
}



function DomainAdministration() {

  var winh=480, winw=640;
  var Nav = IDNavegador();
  if( window.screen.availWidth && window.screen.availHeight ) {
		winh = window.screen.availHeight - 80;
		if( Nav == 2 ) winh = winh - 10;
		winw = window.screen.availWidth - 10;
  }
  window.open("https://mychosting.com/mhen21.htm","domain", "status=yes,resizable=no,scrollbars=yes,top=0,left=0,width="+winw+",height="+winh);
}

function Tcredito() {

  var winh=480, winw=640;
  var Nav = IDNavegador();
  if( window.screen.availWidth && window.screen.availHeight ) {
		winh = window.screen.availHeight - 80;
		if( Nav == 2 ) winh = winh - 10;
		winw = window.screen.availWidth - 10;
  }
  window.open("http://www.2checkout.com/cgi-bin/aff.2c?affid=12680","tcredito", "status=yes,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,directories=yes,top=0,left=0,width="+winw+",height="+winh);
}


function Condiciones() {

  var winh=480, winw=640;
  var Nav = IDNavegador();
  if( window.screen.availWidth && window.screen.availHeight ) {
		winh = window.screen.availHeight - 80;
		if( Nav == 2 ) winh = winh - 10;
		winw = window.screen.availWidth - 10;
  }
  window.open("mhsp13.htm","condiciones", "status=yes,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,directories=yes,top=0,left=0,width="+winw+",height="+winh);
}


function Vdata(input,logmin) {

  if (input.value.length<logmin)
           {
               input.focus();
               input.select();
               return true; //dato incompleto
           }
  return false; //dato completo
}


function Vemail(input) {

          if ((input.value.indexOf('@', 0) == -1)||
              (input.value.indexOf('.', 0) == -1)||
              (input.value.indexOf(' ', 0) != -1))
           {
               alert ("Por favor ingrese una dirección de correo electrónico válida");
               input.focus();
               input.select();
               return true; //corregir dato
           }

          return false; //no corregir
}

function Vdomain(input) {

          if ((input.value.indexOf('.', 0) == -1)||
              (input.value.indexOf(' ', 0) != -1))
           {
               alert ("Por favor ingrese un dominio válido");
               input.focus();
               input.select();
               return true; //corregir dato
           }

          return false; //no corregir
}


function Vpasswd(input) {

          if ((input.value.indexOf('.', 0) != -1)||
              (input.value.indexOf(' ', 0) != -1))
           {
               alert ("Por favor ingrese una contraseña válida");
               input.focus();
               input.select();
               return true; //corregir dato
           }

          return false; //no corregir
}
