//                      #######     #     #          #     #     #     #     #   #  #####     #
//                      #          # #    #         # #    ##   ##    # #    ##  # #         # #
//                      #######   #   #   #        #   #   # # # #   #   #   # # # #        #   #
//                            #  #######  #       #######  #  #  #  #######  #  ## #       #######
//                      ####### #       # ###### #       # #     # #       # #   #  ##### #       #



if (self != top)
top.location = self.location



//////////////////////////////////////////////////////////////////////////////////


function dominioenencabezado() {

missinginfo = "";

if ((document.formdominioenencabezado.ddomain.value == "") || (document.formdominioenencabezado.ddomain.value == "www.")) {
alert("Please type   \n yourwebsite.com");
return false;
}


cadena1 = document.formdominioenencabezado.ddomain.value;


cuenta1 = 0;
cadena1 = document.formdominioenencabezado.ddomain.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominioenencabezado.ddomain.value.length; x++){
                   nombredeextension = document.formdominioenencabezado.ddomain.value.charAt(x);  
                    if (nombredeextension == " "){
                       missinginfo += "\n Your Website "+ cadena1 +"\n\n have blank space ";
                       alert(missinginfo);
                       return false;            
                   }  
                    if (nombredeextension == "."){
                       cuenta1 = cuenta1 + 1; 
                       nombredesite = x
                   }               
               }
                 
     if (cuenta1>1){
           missinginfo += "\n Your website have "+ cuenta1 +" dots\n\n Please type only 1 dot \n Example.: yourwebsite.com ";
           alert(missinginfo);
           return false;       
     }
}






cadena2 = document.formdominioenencabezado.ddomain.value;
if (cadena2 != ""){
        var calculoext = document.formdominioenencabezado.ddomain.value.length - 5
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominioenencabezado.ddomain.value.length; x++){
                   nombredeextension += document.formdominioenencabezado.ddomain.value.charAt(x);                
               }
                 if (nombredeextension == ".info"){
                              
                 }
                  else {
                     
                          var calculoext = document.formdominioenencabezado.ddomain.value.length - 4
                          var nombredeextension = "";   
                          for (var x=calculoext; x < document.formdominioenencabezado.ddomain.value.length; x++){
                                nombredeextension += document.formdominioenencabezado.ddomain.value.charAt(x);                
                               } 
                          if ((nombredeextension == ".com") || (nombredeextension == ".net") || (nombredeextension == ".org")){
                              
                          }  
                           else { 
                                   var calculoext = document.formdominioenencabezado.ddomain.value.length - 3
                                   var nombredeextension = "";   
                                   for (var x=calculoext; x < document.formdominioenencabezado.ddomain.value.length; x++){
                                        nombredeextension += document.formdominioenencabezado.ddomain.value.charAt(x);                
                                       } 
                                   
                                           missinginfo += "\n Your website  "+cadena2+"\n\n  does not end with .com., .net, .org, .info  \n \n  Please write It correctly";
                                           alert(missinginfo);
                                           return false;
                                          
                        
                                 }
                        }
                        

}





if (nombredesite < 2){
alert("The name of Your website \n need to have more than 1 character before of "+nombredeextension);
return false;
}



for (var z=0; z < 2; z++){
if (document.formdominioenencabezado.ddomain.value.charCodeAt(z)==45) {
alert("Please, Do not start with (-) after of www.");
return false;

  }
}









var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formdominioenencabezado.ddomain.value.length; z++){
   if (document.formdominioenencabezado.ddomain.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==1){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominioenencabezado.ddomain.value.length; x++){
                   nombredeextension += document.formdominioenencabezado.ddomain.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formdominioenencabezado.ddomain.value.charCodeAt(z)==45) {
alert("Please, Do not write  (-) before of "+nombredeextension);
return false;

  }
}


for (var z=0; z < document.formdominioenencabezado.ddomain.value.length; z++){
 
if (((document.formdominioenencabezado.ddomain.value.charCodeAt(z)>1) && (document.formdominioenencabezado.ddomain.value.charCodeAt(z)<45)) || ((document.formdominioenencabezado.ddomain.value.charCodeAt(z)>46) && (document.formdominioenencabezado.ddomain.value.charCodeAt(z)<48)) || ((document.formdominioenencabezado.ddomain.value.charCodeAt(z)>57) && (document.formdominioenencabezado.ddomain.value.charCodeAt(z)<65)) || ((document.formdominioenencabezado.ddomain.value.charCodeAt(z)>90) && (document.formdominioenencabezado.ddomain.value.charCodeAt(z)<97)) || ((document.formdominioenencabezado.ddomain.value.charCodeAt(z)>122) && (document.formdominioenencabezado.ddomain.value.charCodeAt(z)<255))) {
alert("The website have invalid characters");
return false;

  }
}








// If we've gotten this far, everything's valid!
return true;
}



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function nuevocliente() {

missinginfo = "";

if (document.formlatinoamerica.tipodedominio.value == "") {

missinginfo += "\nPlease Select the type of Domain \n\nExample \n\nLocal Domain yourwebsite.com.mx\nIt  refers to a country, in this case Mexico\n \nInternational Domain yourwebsite.com\nIt does not  refers to a country";
                       alert(missinginfo);
                       return false;
}





cadena1 = document.formlatinoamerica.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < 4; x++){
                   nombredeextension += document.formlatinoamerica.website.value.charAt(x);                
               }
                 if (nombredeextension == "www."){
                              
                 }
                  else {
                       missinginfo += "\n Your website does not start with www.\n   Please write  www. ";
                       alert(missinginfo);
                       return false;
                       }

}


cuenta1 = 0;
cadena1 = document.formlatinoamerica.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formlatinoamerica.website.value.length; x++){
                   nombredeextension = document.formlatinoamerica.website.value.charAt(x);  
                    if (nombredeextension == " "){
                       missinginfo += "\n Your website "+ cadena1 +"\n\n have blank space";
                       alert(missinginfo);
                       return false;            
                   }  
                    if (nombredeextension == "."){
                       cuenta1 = cuenta1 + 1; 
                   }               
               }
 
if (document.formlatinoamerica.tipodedominio.value == "internacional"){
                
     if (cuenta1>2){
           missinginfo += "\n Your website have "+ cuenta1 +" dots\n\n Please type only 2 dots \n EXample: www.yourwebsite.com ";
           alert(missinginfo);
           return false;       
     }
}
}




if (document.formlatinoamerica.tipodedominio.value == "internacional"){


cadena2 = document.formlatinoamerica.website.value;
if (cadena2 != ""){
        var calculoext = document.formlatinoamerica.website.value.length - 5
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formlatinoamerica.website.value.length; x++){
                   nombredeextension += document.formlatinoamerica.website.value.charAt(x);                
               }
                 if (nombredeextension == ".info"){
                              
                 }
                  else {
                     
                          var calculoext = document.formlatinoamerica.website.value.length - 4
                          var nombredeextension = "";   
                          for (var x=calculoext; x < document.formlatinoamerica.website.value.length; x++){
                                nombredeextension += document.formlatinoamerica.website.value.charAt(x);                
                               } 
                          if ((nombredeextension == ".com") || (nombredeextension == ".net") || (nombredeextension == ".org")){
                              
                          }  
                           else { 
                                   
                                   missinginfo += "\n Your website  "+cadena2+"\n\n  does not end with .com., .net, .org, .info \n \n Please write It correctly";
                                   alert(missinginfo);
                                   return false;
                                          
                        
                                 }
                        }
                        

}


}




if (document.formlatinoamerica.website.value.length < 10){
alert("Please write correctly");
return false;
}



for (var z=3; z < 5; z++){
if (document.formlatinoamerica.website.value.charCodeAt(z)==45) {
alert("Please, Do not Start with con (-) after of www.");
return false;

  }
}








if (document.formlatinoamerica.tipodedominio.value == "internacional"){
var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formlatinoamerica.website.value.length; z++){
   if (document.formlatinoamerica.website.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==2){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formlatinoamerica.website.value.length; x++){
                   nombredeextension += document.formlatinoamerica.website.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formlatinoamerica.website.value.charCodeAt(z)==45) {
alert("Please, Do not write  (-) before of "+nombredeextension);
return false;

  }
}

}

else {

var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formlatinoamerica.website.value.length; z++){
   if (document.formlatinoamerica.website.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==3){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formlatinoamerica.website.value.length; x++){
                   nombredeextension += document.formlatinoamerica.website.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formlatinoamerica.website.value.charCodeAt(z)==45) {
alert("Please, Do not write  (-) before of "+nombredeextension);
return false;

  }
}


}


for (var z=0; z < document.formlatinoamerica.website.value.length; z++){
 
if (((document.formlatinoamerica.website.value.charCodeAt(z)>1) && (document.formlatinoamerica.website.value.charCodeAt(z)<45)) || ((document.formlatinoamerica.website.value.charCodeAt(z)>46) && (document.formlatinoamerica.website.value.charCodeAt(z)<48)) || ((document.formlatinoamerica.website.value.charCodeAt(z)>57) && (document.formlatinoamerica.website.value.charCodeAt(z)<65)) || ((document.formlatinoamerica.website.value.charCodeAt(z)>90) && (document.formlatinoamerica.website.value.charCodeAt(z)<97)) || ((document.formlatinoamerica.website.value.charCodeAt(z)>122) && (document.formlatinoamerica.website.value.charCodeAt(z)<255))) {
alert("Your website have invalid characters");
return false;

  }
}



if ((document.formlatinoamerica.website.value == "") || (document.formlatinoamerica.website.value == "www.")) {
alert("Please write  \n www.yourwebsite.com");
return false;
}



if (document.formlatinoamerica.website.value != document.formlatinoamerica.website2.value) {
alert("The website and Repetition are different \nPlease fix the spelling if the domain is written incorrectly\nwe shall not be held responsible ");
return false;
}


// If we've gotten this far, everything's valid!
return true;

}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function nuevohosting() {

missinginfo = "";

if (document.formlatinoamerica.website.value != document.formlatinoamerica.website2.value) {
alert("El Sitio web y la Repetición de Sitio web son diferentes \npor favor repare la escritura si escribe mal su dominio quedará errado\ny no será nuestra responsabilidad");
return false;
}


// If we've gotten this far, everything's valid!
return true;

}




/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function dominioyhosting(emailStr) {

missinginfo = "";


cadena1 = document.formdominioyhosting.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < 4; x++){
                   nombredeextension += document.formdominioyhosting.website.value.charAt(x);                
               }
                 if (nombredeextension == "www."){
                              
                 }
                  else {
                       missinginfo += "\n Su sitio web no inicia con www.\n   Por favor escriba www. ";
                       alert(missinginfo);
                       return false;
                       }

}


cuenta1 = 0;
cadena1 = document.formdominioyhosting.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominioyhosting.website.value.length; x++){
                   nombredeextension = document.formdominioyhosting.website.value.charAt(x);  
                    if (nombredeextension == " "){
                       missinginfo += "\n Su sitio web "+ cadena1 +"\n\n tiene espacios en blanco";
                       alert(missinginfo);
                       return false;            
                   }  
                    if (nombredeextension == "."){
                       cuenta1 = cuenta1 + 1; 
                   }               
               }
                 
     if (cuenta1>2){
           missinginfo += "\n Su sitio web tiene "+ cuenta1 +" puntos\n\n Por favor escriba solamente 2 puntos \n EJ.: www.sunegocio.com ";
           alert(missinginfo);
           return false;       
     }
}





cadena2 = document.formdominioyhosting.website.value;
if (cadena2 != ""){
        var calculoext = document.formdominioyhosting.website.value.length - 5
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominioyhosting.website.value.length; x++){
                   nombredeextension += document.formdominioyhosting.website.value.charAt(x);                
               }
                 if (nombredeextension == ".info"){
                              
                 }
                  else {
                     
                          var calculoext = document.formdominioyhosting.website.value.length - 4
                          var nombredeextension = "";   
                          for (var x=calculoext; x < document.formdominioyhosting.website.value.length; x++){
                                nombredeextension += document.formdominioyhosting.website.value.charAt(x);                
                               } 
                          if ((nombredeextension == ".com") || (nombredeextension == ".net") || (nombredeextension == ".org") || (nombredeextension == ".biz")){
                              
                          }  
                           else { 
                                   var calculoext = document.formdominioyhosting.website.value.length - 3
                                   var nombredeextension = "";   
                                   for (var x=calculoext; x < document.formdominioyhosting.website.value.length; x++){
                                        nombredeextension += document.formdominioyhosting.website.value.charAt(x);                
                                       } 
                                   if ((nombredeextension == ".us") || (nombredeextension == ".ws") || (nombredeextension == ".tv") || (nombredeextension == ".cc") || (nombredeextension == ".de") || (nombredeextension == ".jp") || (nombredeextension == ".be") || (nombredeextension == ".at")){
                              
                                    }  
                                    else {
                                           missinginfo += "\n Su sitio web "+cadena2+"\n\n No termina con .com., .net, .org, .biz, .info, .us,\n .ws, .tv, .cc, .de, .jp, .be, .at \n \n Por favor escriba correctamente";
                                           alert(missinginfo);
                                           return false;
                                          }  
                        
                                 }
                        }
                        

}



if (document.formdominioyhosting.website.value.length < 10){
alert("Por favor escriba su sitio web \n www.sunegocio.com");
return false;
}



for (var z=3; z < 5; z++){
if (document.formdominioyhosting.website.value.charCodeAt(z)==45) {
alert("Por favor, No inicie con (-) después de www.");
return false;

  }
}









var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formdominioyhosting.website.value.length; z++){
   if (document.formdominioyhosting.website.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==2){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominioyhosting.website.value.length; x++){
                   nombredeextension += document.formdominioyhosting.website.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formdominioyhosting.website.value.charCodeAt(z)==45) {
alert("Por favor, No escriba  (-) antes de "+nombredeextension);
return false;

  }
}


for (var z=0; z < document.formdominioyhosting.website.value.length; z++){
 
if (((document.formdominioyhosting.website.value.charCodeAt(z)>1) && (document.formdominioyhosting.website.value.charCodeAt(z)<45)) || ((document.formdominioyhosting.website.value.charCodeAt(z)>46) && (document.formdominioyhosting.website.value.charCodeAt(z)<48)) || ((document.formdominioyhosting.website.value.charCodeAt(z)>57) && (document.formdominioyhosting.website.value.charCodeAt(z)<65)) || ((document.formdominioyhosting.website.value.charCodeAt(z)>90) && (document.formdominioyhosting.website.value.charCodeAt(z)<97)) || ((document.formdominioyhosting.website.value.charCodeAt(z)>122) && (document.formdominioyhosting.website.value.charCodeAt(z)<255))) {
alert("El Sitio web tiene caracteres invalidos");
return false;

  }
}



if ((document.formdominioyhosting.website.value == "") || (document.formdominioyhosting.website.value == "www.")) {
alert("Por favor escriba su sitio web  \n www.sunegocio.com");
return false;
}



if (document.formdominioyhosting.password.value.length < 6) {
alert("El Password debe tener por lo menos 6 caracteres");
return false;
}


for (var z=0; z < document.formdominioyhosting.password.value.length; z++){
 
if (((document.formdominioyhosting.password.value.charCodeAt(z)>1) && (document.formdominioyhosting.password.value.charCodeAt(z)<48)) || ((document.formdominioyhosting.password.value.charCodeAt(z)>57) && (document.formdominioyhosting.password.value.charCodeAt(z)<65)) || ((document.formdominioyhosting.password.value.charCodeAt(z)>90) && (document.formdominioyhosting.password.value.charCodeAt(z)<97)) || ((document.formdominioyhosting.password.value.charCodeAt(z)>122) && (document.formdominioyhosting.password.value.charCodeAt(z)<255))) {
alert("El Password tiene caracteres invalidos");
return false;

  }
}


if (document.formdominioyhosting.password.value != document.formdominioyhosting.password2.value) {
alert("El Password y la Repetición de Password son diferentes \npor favor corrija la escritura");
return false;
}




if (document.formdominioyhosting.nombre.value == "") {
alert("Por Favor escriba su Nombre");
return false;
}


if (document.formdominioyhosting.apellido.value == "") {
alert("Por Favor escriba su Apellido");
return false;
}






/* The following variable tells the rest of the function whether or not
to verify that the address ends in a two-letter country or well-known
TLD.  1 means check it, 0 means don't. */

var checkTLD=1;

/* The following is the list of known TLDs that an e-mail address must end with. */

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

/* The following pattern is used to check if the entered e-mail address
fits the user@domain format.  It also is used to separate the username
from the domain. */

var emailPat=/^(.+)@(.+)$/;

/* The following string represents the pattern for matching all special
characters.  We don't want to allow special characters in the address. 
These characters include ( ) < > @ , ; : \ " . [ ] */

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

/* The following string represents the range of characters allowed in a 
username or domainname.  It really states which chars aren't allowed.*/

var validChars="\[^\\s" + specialChars + "\]";

/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */

var quotedUser="(\"[^\"]*\")";

/* The following pattern applies for domains that are IP addresses,
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

/* The following string represents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structure of the user

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

/* Finally, let's start trying to figure out if the supplied address is valid. */

/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */

alert("Por Favor escriba su Email");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];

// Start by checking that only basic ASCII characters are in the strings (0-127).

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("El Nombre del usuario tiene caracteres incorrectos en el Email.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("El Dominio del Email tiene Caracteres Invalidos.");
return false;
   }
}

// See if "user" is valid 

if (user.match(userPat)==null) {

// user is not valid

alert("El nombre del Usuario del Email parece Incorrecto.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destinacion de dirección IP es invalida!");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("El nombre del dominio en Email parece ser no valido.");
return false;
   }
}

/* domain name seems valid, but now make sure that it ends in a
known top-level domain (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding 
the domain or country. */

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("La dirección de Email deberia de terminar en un dominio o \n en la abreviatura de un País");
return false;
}

// Make sure there's a host name preceding the domain.

if (len<2) {
alert("La dirección de Email no tiene Host!");
return false;
}




if (document.formdominioyhosting.telefono.value == "") {
alert("Por favor escriba su número de Teléfono");
return false;
}


 for (var z=0; z < document.formdominioyhosting.telefono.value.length; z++){
 
if ((document.formdominioyhosting.telefono.value.charCodeAt(z)<48) || (document.formdominioyhosting.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9");
return false;

  }
         
}



if (document.formdominioyhosting.telefono.value.length == 7) {
numerodetelefono = document.formdominioyhosting.telefono.value;
if (numerodetelefono != ""){
     for (var z=0; z < document.formdominioyhosting.telefono.value.length; z++){
 
if ((document.formdominioyhosting.telefono.value.charCodeAt(z)<48) || (document.formdominioyhosting.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9")
return false;

  }
         
}
}
}
else {
         var faltan = 7 - document.formdominioyhosting.telefono.value.length;
         var mireelnumero = document.formdominioyhosting.telefono.value;
         for (a=0; a<faltan; a++) {
         mireelnumero = mireelnumero+"x";
         }
         alert("El número de teléfono deberia tener 7 digitos\n Escriba los "+faltan +" números restantes por favor\n                  " + mireelnumero);
          return false;
       }


if (document.formdominioyhosting.direccion.value == "") {
alert("Por favor escriba su dirección");
return false;
}


if (document.formdominioyhosting.ciudad.value == "") {
alert("Por favor escriba su ciudad");
return false;
}



if (document.formdominioyhosting.departamento.value == "") {
alert("Por favor seleccione el departamento donde reside");
return false;
}




if (document.formdominioyhosting.usodewebsite.value == "") {
alert("Por favor seleccione el uso que le dará al sitio web");
return false;
}


if (document.formdominioyhosting.formadepago.value == "") {
alert("Por favor seleccione la Forma de Pago");
return false;
}




// If we've gotten this far, everything's valid!
return true;
}



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function dominiosweb(emailStr) {

missinginfo = "";


cadena1 = document.formdominio.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < 4; x++){
                   nombredeextension += document.formdominio.website.value.charAt(x);                
               }
                 if (nombredeextension == "www."){
                              
                 }
                  else {
                       missinginfo += "\n Su sitio web no inicia con www.\n   Por favor escriba www. ";
                       alert(missinginfo);
                       return false;
                       }

}


cuenta1 = 0;
cadena1 = document.formdominio.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominio.website.value.length; x++){
                   nombredeextension = document.formdominio.website.value.charAt(x);  
                    if (nombredeextension == " "){
                       missinginfo += "\n Su sitio web "+ cadena1 +"\n\n tiene espacios en blanco";
                       alert(missinginfo);
                       return false;            
                   }  
                    if (nombredeextension == "."){
                       cuenta1 = cuenta1 + 1; 
                   }               
               }
                 
     if (cuenta1>2){
           missinginfo += "\n Su sitio web tiene "+ cuenta1 +" puntos\n\n Por favor escriba solamente 2 puntos \n Ej.: www.sunegocio.com ";
           alert(missinginfo);
           return false;       
     }
}





cadena2 = document.formdominio.website.value;
if (cadena2 != ""){
        var calculoext = document.formdominio.website.value.length - 5
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominio.website.value.length; x++){
                   nombredeextension += document.formdominio.website.value.charAt(x);                
               }
                 if (nombredeextension == ".info"){
                              
                 }
                  else {
                     
                          var calculoext = document.formdominio.website.value.length - 4
                          var nombredeextension = "";   
                          for (var x=calculoext; x < document.formdominio.website.value.length; x++){
                                nombredeextension += document.formdominio.website.value.charAt(x);                
                               } 
                          if ((nombredeextension == ".com") || (nombredeextension == ".net") || (nombredeextension == ".org") || (nombredeextension == ".biz")){
                              
                          }  
                           else { 
                                   var calculoext = document.formdominio.website.value.length - 3
                                   var nombredeextension = "";   
                                   for (var x=calculoext; x < document.formdominio.website.value.length; x++){
                                        nombredeextension += document.formdominio.website.value.charAt(x);                
                                       } 
                                   if ((nombredeextension == ".us") || (nombredeextension == ".ws") || (nombredeextension == ".tv") || (nombredeextension == ".cc") || (nombredeextension == ".de") || (nombredeextension == ".jp") || (nombredeextension == ".be") || (nombredeextension == ".at")){
                              
                                    }  
                                    else {
                                           missinginfo += "\n Su sitio web "+cadena2+"\n\n No termina con .com., .net, .org, .biz, .info, .us,\n .ws, .tv, .cc, .de, .jp, .be, .at \n \n Por favor escriba correctamente";
                                           alert(missinginfo);
                                           return false;
                                          }  
                        
                                 }
                        }
                        

}



if (document.formdominio.website.value.length < 10){
alert("Por favor escriba su sitio web \n www.sunegocio.com");
return false;
}



for (var z=3; z < 5; z++){
if (document.formdominio.website.value.charCodeAt(z)==45) {
alert("Por favor, No inicie con (-) después de www.");
return false;

  }
}









var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formdominio.website.value.length; z++){
   if (document.formdominio.website.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==2){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formdominio.website.value.length; x++){
                   nombredeextension += document.formdominio.website.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formdominio.website.value.charCodeAt(z)==45) {
alert("Por favor, No escriba  (-) antes de "+nombredeextension);
return false;

  }
}


for (var z=0; z < document.formdominio.website.value.length; z++){
 
if (((document.formdominio.website.value.charCodeAt(z)>1) && (document.formdominio.website.value.charCodeAt(z)<45)) || ((document.formdominio.website.value.charCodeAt(z)>46) && (document.formdominio.website.value.charCodeAt(z)<48)) || ((document.formdominio.website.value.charCodeAt(z)>57) && (document.formdominio.website.value.charCodeAt(z)<65)) || ((document.formdominio.website.value.charCodeAt(z)>90) && (document.formdominio.website.value.charCodeAt(z)<97)) || ((document.formdominio.website.value.charCodeAt(z)>122) && (document.formdominio.website.value.charCodeAt(z)<255))) {
alert("El Sitio web tiene caracteres invalidos");
return false;

  }
}



if ((document.formdominio.website.value == "") || (document.formdominio.website.value == "www.")) {
alert("Por favor escriba su sitio web  \n www.sunegocio.com");
return false;
}







if (document.formdominio.nombre.value == "") {
alert("Por Favor escriba su Nombre");
return false;
}


if (document.formdominio.apellido.value == "") {
alert("Por Favor escriba su Apellido");
return false;
}






/* The following variable tells the rest of the function whether or not
to verify that the address ends in a two-letter country or well-known
TLD.  1 means check it, 0 means don't. */

var checkTLD=1;

/* The following is the list of known TLDs that an e-mail address must end with. */

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

/* The following pattern is used to check if the entered e-mail address
fits the user@domain format.  It also is used to separate the username
from the domain. */

var emailPat=/^(.+)@(.+)$/;

/* The following string represents the pattern for matching all special
characters.  We don't want to allow special characters in the address. 
These characters include ( ) < > @ , ; : \ " . [ ] */

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

/* The following string represents the range of characters allowed in a 
username or domainname.  It really states which chars aren't allowed.*/

var validChars="\[^\\s" + specialChars + "\]";

/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */

var quotedUser="(\"[^\"]*\")";

/* The following pattern applies for domains that are IP addresses,
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

/* The following string represents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structure of the user

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

/* Finally, let's start trying to figure out if the supplied address is valid. */

/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */

alert("Por Favor escriba su Email");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];

// Start by checking that only basic ASCII characters are in the strings (0-127).

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("El Nombre del usuario tiene caracteres incorrectos en el Email.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("El Dominio del Email tiene Caracteres Invalidos.");
return false;
   }
}

// See if "user" is valid 

if (user.match(userPat)==null) {

// user is not valid

alert("El nombre del Usuario del Email parece Incorrecto.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destinacion de dirección IP es invalida!");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("El nombre del dominio en Email parece ser no valido.");
return false;
   }
}

/* domain name seems valid, but now make sure that it ends in a
known top-level domain (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding 
the domain or country. */

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("La dirección de Email deberia de terminar en un dominio o \n en la abreviatura de un País");
return false;
}

// Make sure there's a host name preceding the domain.

if (len<2) {
alert("La dirección de Email no tiene Host!");
return false;
}




if (document.formdominio.telefono.value == "") {
alert("Por favor escriba su número de Teléfono");
return false;
}


 for (var z=0; z < document.formdominio.telefono.value.length; z++){
 
if ((document.formdominio.telefono.value.charCodeAt(z)<48) || (document.formdominio.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9");
return false;

  }
         
}



if (document.formdominio.telefono.value.length == 7) {
numerodetelefono = document.formdominio.telefono.value;
if (numerodetelefono != ""){
     for (var z=0; z < document.formdominio.telefono.value.length; z++){
 
if ((document.formdominio.telefono.value.charCodeAt(z)<48) || (document.formdominio.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9")
return false;

  }
         
}
}
}
else {
         var faltan = 7 - document.formdominio.telefono.value.length;
         var mireelnumero = document.formdominio.telefono.value;
         for (a=0; a<faltan; a++) {
         mireelnumero = mireelnumero+"x";
         }
         alert("El número de teléfono deberia tener 7 digitos\n Escriba los "+faltan +" números restantes por favor\n                  " + mireelnumero);
          return false;
       }


if (document.formdominio.direccion.value == "") {
alert("Por favor escriba su dirección");
return false;
}


if (document.formdominio.ciudad.value == "") {
alert("Por favor escriba su ciudad");
return false;
}



if (document.formdominio.departamento.value == "") {
alert("Por favor seleccione el departamento donde reside");
return false;
}




if (document.formdominio.usodewebsite.value == "") {
alert("Por favor seleccione el uso que le dará al sitio web");
return false;
}


if (document.formdominio.formadepago.value == "") {
alert("Por favor seleccione la Forma de Pago");
return false;
}




// If we've gotten this far, everything's valid!
return true;
}






////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



function hosting(emailStr) {

missinginfo = "";

if (document.formhosting.tipodedominio.value == "Internacional") {

cadena1 = document.formhosting.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < 4; x++){
                   nombredeextension += document.formhosting.website.value.charAt(x);                
               }
                 if (nombredeextension == "www."){
                              
                 }
                  else {
                       missinginfo += "\n Su sitio web no inicia con www.\n   Por favor escriba www. ";
                       alert(missinginfo);
                       return false;
                       }

}


cuenta1 = 0;
cadena1 = document.formhosting.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                   nombredeextension = document.formhosting.website.value.charAt(x);  
                    if (nombredeextension == " "){
                       missinginfo += "\n Su sitio web "+ cadena1 +"\n\n tiene espacios en blanco";
                       alert(missinginfo);
                       return false;            
                   }  
                    if (nombredeextension == "."){
                       cuenta1 = cuenta1 + 1; 
                   }               
               }
                 
     if (cuenta1>2){
           missinginfo += "\n Su sitio web tiene "+ cuenta1 +" puntos\n\n Por favor escriba solamente 2 puntos \n Ej.: www.sunegocio.com ";
           alert(missinginfo);
           return false;       
     }
}





cadena2 = document.formhosting.website.value;
if (cadena2 != ""){
        var calculoext = document.formhosting.website.value.length - 5
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                   nombredeextension += document.formhosting.website.value.charAt(x);                
               }
                 if (nombredeextension == ".info"){
                              
                 }
                  else {
                     
                          var calculoext = document.formhosting.website.value.length - 4
                          var nombredeextension = "";   
                          for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                                nombredeextension += document.formhosting.website.value.charAt(x);                
                               } 
                          if ((nombredeextension == ".com") || (nombredeextension == ".net") || (nombredeextension == ".org") || (nombredeextension == ".biz")){
                              
                          }  
                           else { 
                                   var calculoext = document.formhosting.website.value.length - 3
                                   var nombredeextension = "";   
                                   for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                                        nombredeextension += document.formhosting.website.value.charAt(x);                
                                       } 
                                   if ((nombredeextension == ".us") || (nombredeextension == ".ws") || (nombredeextension == ".tv") || (nombredeextension == ".cc") || (nombredeextension == ".de") || (nombredeextension == ".jp") || (nombredeextension == ".be") || (nombredeextension == ".at")){
                              
                                    }  
                                    else {
                                           missinginfo += "\n Su sitio web "+cadena2+"\n\n No termina con .com., .net, .org, .biz, .info, .us,\n .ws, .tv, .cc, .de, .jp, .be, .at \n \n Por favor escriba correctamente";
                                           alert(missinginfo);
                                           return false;
                                          }  
                        
                                 }
                        }
                        

}



if (document.formhosting.website.value.length < 10){
alert("Por favor escriba su sitio web \n www.sunegocio.com");
return false;
}



for (var z=3; z < 5; z++){
if (document.formhosting.website.value.charCodeAt(z)==45) {
alert("Por favor, No inicie con (-) después de www.");
return false;

  }
}









var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formhosting.website.value.length; z++){
   if (document.formhosting.website.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==2){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                   nombredeextension += document.formhosting.website.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formhosting.website.value.charCodeAt(z)==45) {
alert("Por favor, No escriba  (-) antes de "+nombredeextension);
return false;

  }
}


for (var z=0; z < document.formhosting.website.value.length; z++){
 
if (((document.formhosting.website.value.charCodeAt(z)>1) && (document.formhosting.website.value.charCodeAt(z)<45)) || ((document.formhosting.website.value.charCodeAt(z)>46) && (document.formhosting.website.value.charCodeAt(z)<48)) || ((document.formhosting.website.value.charCodeAt(z)>57) && (document.formhosting.website.value.charCodeAt(z)<65)) || ((document.formhosting.website.value.charCodeAt(z)>90) && (document.formhosting.website.value.charCodeAt(z)<97)) || ((document.formhosting.website.value.charCodeAt(z)>122) && (document.formhosting.website.value.charCodeAt(z)<255))) {
alert("El Sitio web tiene caracteres invalidos");
return false;

  }
}


if ((document.formhosting.website.value == "") || (document.formhosting.website.value == "www.")) {
alert("Por favor escriba su sitio web  \n www.sunegocio.com");
return false;
}


}

////////////////////////////////////////////////////////////////  AQUI INICIA EL LOCAL //////////////////////////////////////////////


if (document.formhosting.tipodedominio.value == "") {
missinginfo += "\n Por favor seleccione su Tipo de Dominio";
alert(missinginfo);
return false;
}



if (document.formhosting.tipodedominio.value == "Local") {


cadena1 = document.formhosting.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < 4; x++){
                   nombredeextension += document.formhosting.website.value.charAt(x);                
               }
                 if (nombredeextension == "www."){
                              
                 }
                  else {
                       missinginfo += "\n Su sitio web no inicia con www.\n   Por favor escriba www. ";
                       alert(missinginfo);
                       return false;
                       }

}


cuenta1 = 0;
cadena1 = document.formhosting.website.value;
if (cadena1 != ""){
        var calculoext = 0;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                   nombredeextension = document.formhosting.website.value.charAt(x);  
                    if (nombredeextension == " "){
                       missinginfo += "\n Su sitio web "+ cadena1 +"\n\n tiene espacios en blanco";
                       alert(missinginfo);
                       return false;            
                   }  
                    if (nombredeextension == "."){
                       cuenta1 = cuenta1 + 1; 
                   }               
               }
                 
     if (cuenta1>3){
           missinginfo += "\n Su sitio web tiene "+ cuenta1 +" puntos\n\n Por favor escriba solamente 3 puntos \n Ej.: www.sunegocio.com.SV ";
           alert(missinginfo);
           return false;       
     }
}





cadena2 = document.formhosting.website.value;
if (cadena2 != ""){
        var calculoext = document.formhosting.website.value.length - 5
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                   nombredeextension += document.formhosting.website.value.charAt(x);                
               }
                 
                     
                          var calculoext = document.formhosting.website.value.length - 7
                          var nombredeextension = "";   
                          for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                                nombredeextension += document.formhosting.website.value.charAt(x);                
                               } 
                          if ((nombredeextension == ".com.sv") || (nombredeextension == ".org.sv") || (nombredeextension == ".gob.sv")){
                              
                          }  
                           else {
                                 missinginfo += "Su Tipo de Dominio es LOCAL (.SV)\n\n Su sitio web  "+cadena2+"\n\n No termina en .com.sv., .org.sv, .gob.sv \n \n Por favor escriba correctamente";
                                 alert(missinginfo);
                                 return false;
                                }  
                        
}




if (document.formhosting.website.value.length < 10){
alert("Por favor escriba su sitio web \n www.sunegocio.com.sv");
return false;
}



for (var z=3; z < 5; z++){
if (document.formhosting.website.value.charCodeAt(z)==45) {
alert("Por favor, No inicie con (-) después de www.");
return false;

  }
}









var guion=0;
var banderadeguion=0;
var guionfinal=0;
for (var z=0; z < document.formhosting.website.value.length; z++){
   if (document.formhosting.website.value.charCodeAt(z)==46){
      banderadeguion=banderadeguion + 1;
     }
 
    if (banderadeguion==2){
     var guion=guion + 1;
     }
    
    if (guion==1){
      guionfinal = z;
      
    }
}


var calculoext = guionfinal;
        var nombredeextension = "";   
               for (var x=calculoext; x < document.formhosting.website.value.length; x++){
                   nombredeextension += document.formhosting.website.value.charAt(x);                
               }



for (var z=guionfinal-1; z < guionfinal+1; z++){
if (document.formhosting.website.value.charCodeAt(z)==45) {
alert("Por favor, No escriba  (-) antes de "+nombredeextension);
return false;

  }
}


for (var z=0; z < document.formhosting.website.value.length; z++){
 
if (((document.formhosting.website.value.charCodeAt(z)>1) && (document.formhosting.website.value.charCodeAt(z)<45)) || ((document.formhosting.website.value.charCodeAt(z)>46) && (document.formhosting.website.value.charCodeAt(z)<48)) || ((document.formhosting.website.value.charCodeAt(z)>57) && (document.formhosting.website.value.charCodeAt(z)<65)) || ((document.formhosting.website.value.charCodeAt(z)>90) && (document.formhosting.website.value.charCodeAt(z)<97)) || ((document.formhosting.website.value.charCodeAt(z)>122) && (document.formhosting.website.value.charCodeAt(z)<255))) {
alert("El Sitio web tiene caracteres invalidos");
return false;

  }
}


if ((document.formhosting.website.value == "") || (document.formhosting.website.value == "www.")) {
alert("Por favor escriba su sitio web  \n www.sunegocio.com");
return false;
}


}


////////////////////////////////////////////////////////////////  AQUI TERMINA EL LOCAL //////////////////////////////////////////////

if (document.formhosting.password.value.length < 6) {
alert("El Password debe tener por lo menos 6 caracteres");
return false;
}


for (var z=0; z < document.formhosting.password.value.length; z++){
 
if (((document.formhosting.password.value.charCodeAt(z)>1) && (document.formhosting.password.value.charCodeAt(z)<48)) || ((document.formhosting.password.value.charCodeAt(z)>57) && (document.formhosting.password.value.charCodeAt(z)<65)) || ((document.formhosting.password.value.charCodeAt(z)>90) && (document.formhosting.password.value.charCodeAt(z)<97)) || ((document.formhosting.password.value.charCodeAt(z)>122) && (document.formhosting.password.value.charCodeAt(z)<255))) {
alert("El Password tiene caracteres invalidos");
return false;

  }
}


if (document.formhosting.password.value != document.formhosting.password2.value) {
alert("El Password y la Repetición de Password son diferentes \npor favor corrija la escritura");
return false;
}




if (document.formhosting.nombre.value == "") {
alert("Por Favor escriba su Nombre");
return false;
}


if (document.formhosting.apellido.value == "") {
alert("Por Favor escriba su Apellido");
return false;
}






/* The following variable tells the rest of the function whether or not
to verify that the address ends in a two-letter country or well-known
TLD.  1 means check it, 0 means don't. */

var checkTLD=1;

/* The following is the list of known TLDs that an e-mail address must end with. */

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

/* The following pattern is used to check if the entered e-mail address
fits the user@domain format.  It also is used to separate the username
from the domain. */

var emailPat=/^(.+)@(.+)$/;

/* The following string represents the pattern for matching all special
characters.  We don't want to allow special characters in the address. 
These characters include ( ) < > @ , ; : \ " . [ ] */

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

/* The following string represents the range of characters allowed in a 
username or domainname.  It really states which chars aren't allowed.*/

var validChars="\[^\\s" + specialChars + "\]";

/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */

var quotedUser="(\"[^\"]*\")";

/* The following pattern applies for domains that are IP addresses,
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

/* The following string represents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structure of the user

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

/* Finally, let's start trying to figure out if the supplied address is valid. */

/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */

alert("El Email parece incorrecto (Revise @ y .'s)");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];

// Start by checking that only basic ASCII characters are in the strings (0-127).

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("El Nombre del usuario tiene caracteres incorrectos en el Email.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("El Dominio del Email tiene Caracteres Invalidos.");
return false;
   }
}

// See if "user" is valid 

if (user.match(userPat)==null) {

// user is not valid

alert("El nombre del Usuario del Email parece Incorrecto.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destinacion de dirección IP es invalida!");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("El nombre del dominio en Email parece ser no valido.");
return false;
   }
}

/* domain name seems valid, but now make sure that it ends in a
known top-level domain (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding 
the domain or country. */

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("La dirección de Email deberia de terminar en un dominio o \n en la abreviatura de un País");
return false;
}

// Make sure there's a host name preceding the domain.

if (len<2) {
alert("La dirección de Email no tiene Host!");
return false;
}




if (document.formhosting.telefono.value == "") {
alert("Por favor escriba su número de Teléfono");
return false;
}


 for (var z=0; z < document.formhosting.telefono.value.length; z++){
 
if ((document.formhosting.telefono.value.charCodeAt(z)<48) || (document.formhosting.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9");
return false;

  }
         
}



if (document.formhosting.telefono.value.length == 7) {
numerodetelefono = document.formhosting.telefono.value;
if (numerodetelefono != ""){
     for (var z=0; z < document.formhosting.telefono.value.length; z++){
 
if ((document.formhosting.telefono.value.charCodeAt(z)<48) || (document.formhosting.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9")
return false;

  }
         
}
}
}
else {
         var faltan = 7 - document.formhosting.telefono.value.length;
         var mireelnumero = document.formhosting.telefono.value;
         for (a=0; a<faltan; a++) {
         mireelnumero = mireelnumero+"x";
         }
         alert("El número de teléfono deberia tener 7 digitos\n Escriba los "+faltan +" números restantes por favor\n                  " + mireelnumero);
          return false;
       }


if (document.formhosting.direccion.value == "") {
alert("Por favor escriba su dirección");
return false;
}


if (document.formhosting.ciudad.value == "") {
alert("Por favor escriba su ciudad");
return false;
}



if (document.formhosting.departamento.value == "") {
alert("Por favor seleccione el departamento donde reside");
return false;
}




if (document.formhosting.usodewebsite.value == "") {
alert("Por favor seleccione el uso que le dará al sitio web");
return false;
}


if (document.formhosting.formadepago.value == "") {
alert("Por favor seleccione la Forma de Pago");
return false;
}




// If we've gotten this far, everything's valid!
return true;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function soportetecnico(emailStr) {

missinginfo = "";


if ((document.formsoportetecnico.website.value == "") || (document.formsoportetecnico.website.value == "www.")) {
alert("Please write your website");
return false;
}



/* The following variable tells the rest of the function whether or not
to verify that the address ends in a two-letter country or well-known
TLD.  1 means check it, 0 means don't. */

var checkTLD=1;

/* The following is the list of known TLDs that an e-mail address must end with. */

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

/* The following pattern is used to check if the entered e-mail address
fits the user@domain format.  It also is used to separate the username
from the domain. */

var emailPat=/^(.+)@(.+)$/;

/* The following string represents the pattern for matching all special
characters.  We don't want to allow special characters in the address. 
These characters include ( ) < > @ , ; : \ " . [ ] */

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

/* The following string represents the range of characters allowed in a 
username or domainname.  It really states which chars aren't allowed.*/

var validChars="\[^\\s" + specialChars + "\]";

/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */

var quotedUser="(\"[^\"]*\")";

/* The following pattern applies for domains that are IP addresses,
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

/* The following string represents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structure of the user

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

/* Finally, let's start trying to figure out if the supplied address is valid. */

/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */

alert("Please write your email correctly");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];

// Start by checking that only basic ASCII characters are in the strings (0-127).

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("User name of email have incorrect characteres .");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("Domain of email have Invalid Characteres");
return false;
   }
}

// See if "user" is valid 

if (user.match(userPat)==null) {

// user is not valid

alert("User name of email seems  Invalid.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Invalid Destination of IP address ");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("Invalid Domain name of Email");
return false;
   }
}

/* domain name seems valid, but now make sure that it ends in a
known top-level domain (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding 
the domain or country. */

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("Email address does not end with a valid domain");
return false;
}

// Make sure there's a host name preceding the domain.

if (len<2) {
alert("Email address does not have a Host!");
return false;
}




if (document.formsoportetecnico.nombre.value == "") {
alert("Please type your name");
return false;
}


if (document.formsoportetecnico.apellido.value == "") {
alert("Please type your last name");
return false;
}




if (document.formsoportetecnico.razondesoporte.value == "") {
alert("Please write the reason of support ");
return false;
}




// If we've gotten this far, everything's valid!
return true;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function contactenos(emailStr) {

missinginfo = "";



/* The following variable tells the rest of the function whether or not
to verify that the address ends in a two-letter country or well-known
TLD.  1 means check it, 0 means don't. */

var checkTLD=1;

/* The following is the list of known TLDs that an e-mail address must end with. */

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

/* The following pattern is used to check if the entered e-mail address
fits the user@domain format.  It also is used to separate the username
from the domain. */

var emailPat=/^(.+)@(.+)$/;

/* The following string represents the pattern for matching all special
characters.  We don't want to allow special characters in the address. 
These characters include ( ) < > @ , ; : \ " . [ ] */

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

/* The following string represents the range of characters allowed in a 
username or domainname.  It really states which chars aren't allowed.*/

var validChars="\[^\\s" + specialChars + "\]";

/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */

var quotedUser="(\"[^\"]*\")";

/* The following pattern applies for domains that are IP addresses,
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

/* The following string represents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structure of the user

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

/* Finally, let's start trying to figure out if the supplied address is valid. */

/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */

alert("Please write your email correctly");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];

// Start by checking that only basic ASCII characters are in the strings (0-127).

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("User name of email have incorrect characteres .");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("Domain of email have Invalid Characteres");
return false;
   }
}

// See if "user" is valid 

if (user.match(userPat)==null) {

// user is not valid

alert("User name of email seems  Invalid.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Invalid Destination of IP address ");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("Invalid Domain name of Email");
return false;
   }
}

/* domain name seems valid, but now make sure that it ends in a
known top-level domain (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding 
the domain or country. */

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("Email address does not end with a valid domain");
return false;
}

// Make sure there's a host name preceding the domain.

if (len<2) {
alert("Email address does not have a Host!");
return false;
}




if (document.formcontactenos.nombre.value == "") {
alert("Please type your Name");
return false;
}


if (document.formcontactenos.apellido.value == "") {
alert("Please type your Last Name");
return false;
}




if (document.formcontactenos.comentariosopreguntas.value == "") {
alert("Please write your Questions/comments");
return false;
}




// If we've gotten this far, everything's valid!
return true;
}





////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function actualizardatospersonales(emailStr) {

missinginfo = "";

if (document.formactualizardatospersonales.nombre.value == "") {
alert("Por Favor escriba su Nombre");
return false;
}


if (document.formactualizardatospersonales.apellido.value == "") {
alert("Por Favor escriba su Apellido");
return false;
}



/* The following variable tells the rest of the function whether or not
to verify that the address ends in a two-letter country or well-known
TLD.  1 means check it, 0 means don't. */

var checkTLD=1;

/* The following is the list of known TLDs that an e-mail address must end with. */

var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;

/* The following pattern is used to check if the entered e-mail address
fits the user@domain format.  It also is used to separate the username
from the domain. */

var emailPat=/^(.+)@(.+)$/;

/* The following string represents the pattern for matching all special
characters.  We don't want to allow special characters in the address. 
These characters include ( ) < > @ , ; : \ " . [ ] */

var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";

/* The following string represents the range of characters allowed in a 
username or domainname.  It really states which chars aren't allowed.*/

var validChars="\[^\\s" + specialChars + "\]";

/* The following pattern applies if the "user" is a quoted string (in
which case, there are no rules about which characters are allowed
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
is a legal e-mail address. */

var quotedUser="(\"[^\"]*\")";

/* The following pattern applies for domains that are IP addresses,
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
e-mail address. NOTE: The square brackets are required. */

var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;

/* The following string represents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structure of the user

var userPat=new RegExp("^" + word + "(\\." + word + ")*$");

/* The following pattern describes the structure of a normal symbolic
domain, as opposed to ipDomainPat, shown above. */

var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");

/* Finally, let's start trying to figure out if the supplied address is valid. */

/* Begin with the coarse pattern to simply break up user@domain into
different pieces that are easy to analyze. */

var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

/* Too many/few @'s or something; basically, this address doesn't
even fit the general mould of a valid e-mail address. */

alert("Por Favor escriba su Email");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];

// Start by checking that only basic ASCII characters are in the strings (0-127).

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("El Nombre del usuario tiene caracteres incorrectos en el Email.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("El Dominio del Email tiene Caracteres Invalidos.");
return false;
   }
}

// See if "user" is valid 

if (user.match(userPat)==null) {

// user is not valid

alert("El nombre del Usuario del Email parece Incorrecto.");
return false;
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
host name) make sure the IP address is valid. */

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

// this is an IP address

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destinacion de dirección IP es invalida!");
return false;
   }
}
return true;
}

// Domain is symbolic name.  Check if it's valid.
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("El nombre del dominio en Email parece ser no valido.");
return false;
   }
}

/* domain name seems valid, but now make sure that it ends in a
known top-level domain (like com, edu, gov) or a two-letter word,
representing country (uk, nl), and that there's a hostname preceding 
the domain or country. */

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("La dirección de Email deberia de terminar en un dominio o \n en la abreviatura de un País");
return false;
}

// Make sure there's a host name preceding the domain.

if (len<2) {
alert("La dirección de Email no tiene Host!");
return false;
}


if (document.formactualizardatospersonales.telefono.value == "") {
alert("Por favor escriba su número de Teléfono");
return false;
}


 for (var z=0; z < document.formactualizardatospersonales.telefono.value.length; z++){
 
if ((document.formactualizardatospersonales.telefono.value.charCodeAt(z)<48) || (document.formactualizardatospersonales.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9");
return false;

  }
         
}



if (document.formactualizardatospersonales.telefono.value.length == 7) {
numerodetelefono = document.formactualizardatospersonales.telefono.value;
if (numerodetelefono != ""){
     for (var z=0; z < document.formactualizardatospersonales.telefono.value.length; z++){
 
if ((document.formactualizardatospersonales.telefono.value.charCodeAt(z)<48) || (document.formactualizardatospersonales.telefono.value.charCodeAt(z)>57)) {
alert("El número de teléfono tiene caracteres invalidos\n Por favor escriba solamente numeros del 0-9")
return false;

  }
         
}
}
}
else {
         var faltan = 7 - document.formactualizardatospersonales.telefono.value.length;
         var mireelnumero = document.formactualizardatospersonales.telefono.value;
         for (a=0; a<faltan; a++) {
         mireelnumero = mireelnumero+"x";
         }
         alert("El número de teléfono deberia tener 7 digitos\n Escriba los "+faltan +" números restantes por favor\n                  " + mireelnumero);
          return false;
       }





if (document.formactualizardatospersonales.direccion.value == "") {
alert("Por Favor escriba su Dirección");
return false;
}

if (document.formactualizardatospersonales.ciudad.value == "") {
alert("Por Favor escriba su Ciudad");
return false;
}

if (document.formactualizardatospersonales.departamento.value == "") {
alert("Por Favor seleccione su Departamento");
return false;
}

if (document.formactualizardatospersonales.password.value == "") {
alert("Por Favor escriba el Password de verificación");
return false;
}

// If we've gotten this far, everything's valid!
return true;
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function actualizarpassworddecuenta() {

missinginfo = "";


if (document.formactualizarpassworddecuenta.password.value == "") {
alert("Por Favor escriba el Password Actual");
return false;
}

if (document.formactualizarpassworddecuenta.nuevopassword.value.length < 6) {
alert("El Nuevo Password debe tener por lo menos 6 caracteres");
return false;
}

for (var z=0; z < document.formactualizarpassworddecuenta.nuevopassword.value.length; z++){
 
if (((document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)>1) && (document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)<48)) || ((document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)>57) && (document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)<65)) || ((document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)>90) && (document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)<97)) || ((document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)>122) && (document.formactualizarpassworddecuenta.nuevopassword.value.charCodeAt(z)<255))) {
alert("El Nuevo Password tiene caracteres invalidos");
return false;

  }
}


if (document.formactualizarpassworddecuenta.nuevopassword.value != document.formactualizarpassworddecuenta.repeticiondepassword.value) {
alert("El Password y la Repetición de Password son diferentes \npor favor corrija la escritura");
return false;
}

}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function salir(){
 location.replace("index.html")
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function actualizarpassworddedominio() {

missinginfo = "";


if (document.formactualizarpassworddedominio.password.value == "") {
alert("Por Favor escriba el Password Actual");
return false;
}

if (document.formactualizarpassworddedominio.nuevopassword.value.length < 6) {
alert("El Nuevo Password debe tener por lo menos 6 caracteres");
return false;
}

for (var z=0; z < document.formactualizarpassworddedominio.nuevopassword.value.length; z++){
 
if (((document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)>1) && (document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)<48)) || ((document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)>57) && (document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)<65)) || ((document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)>90) && (document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)<97)) || ((document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)>122) && (document.formactualizarpassworddedominio.nuevopassword.value.charCodeAt(z)<255))) {
alert("El Nuevo Password tiene caracteres invalidos");
return false;

  }
}


if (document.formactualizarpassworddedominio.nuevopassword.value != document.formactualizarpassworddedominio.repeticiondepassword.value) {
alert("El Password y la Repetición de Password son diferentes \npor favor corrija la escritura");
return false;
}

}



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function piedepagina(){

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()+1
if (month<10)
month="0"+month
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym

document.write('<table bgcolor="ff6633"  width="100%" height="4" cellspacing="0" cellpadding="0" ><td></td></table>');
document.write('<table background="http://www.salamancanetwork.com/imagenes/fcafe4.jpg"  width="100%" height="16" cellspacing="0" cellpadding="0" ><td>');
document.write('<table  width="100%" cellspacing="0" cellpadding="0" style="font-family:tahoma;font-size:11px;color:white;font-weight:bold"><td align="center">');
document.write('SALAMANCA NETWORK® - Web Hosting Services</td></table>');
document.write('</td></table>');
document.write('<table bgcolor="e8e8e8" width="99%" cellspacing="0" cellpadding="0" style="font-family:tahoma;font-size:11px;color:505050"><td align="center">All Rights Reserved, '+ year +'</td></table>');

}




function concolor(lr)
      {
         lr.style.backgroundColor="cccfff";
           lr.style.color = "white";
       }

   function sincolor(lr)
      {
         lr.style.backgroundColor="f0f0f0";
           lr.style.color = "black";
       }



function about(){
var aboutfile="aboutsalamancanetwork.php"
if (document.all)
aboutwindow=window.open(aboutfile,"","width=445,height=250,left=200,top=200,scrollbars=no,statusbar=no")
else
aboutwindow=window.open(aboutfile,"","width=445,height=250,left=200,top=200,scrollbars=no,statusbar=no")
}





function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}


function mostrarpromo()
{
    var ranNum= Math.round(Math.random()*2);
    var promo=new Array(2)
     promo[0]="promo1.gif";
     promo[1]="promo2.gif";
     promo[2]="promo3.gif";   
     
  
   document.write('<img src="http://www.salamancanetwork.net/imagenes/'+promo[ranNum]+'" vspace="0" hspace="0"  align="right" valign="bottom">');
  }

/////////////////////////////////////////////////////////////////////////////////////////////////////

function dns(){
document.hosting.dns1.value=document.hosting.domain.value;
document.hosting.dns2.value=document.hosting.domain.value;
}



document.write('<script language="JavaScript" src="style.js"></script>');
document.write('<script language="JavaScript" src="enunciadodemenu.js"></script>');
document.write('<script language="JavaScript" src="vhosting.js"></script>');


/////////////////////////////////////////////////////////////////////////////////















































