var isIE = false; var req; function ajax(v){ function vq(n){ var n=n+'='; var k=''; var k=k+document.cookie; if(k.length>0)begin=k.indexOf(n); if(begin!=-1){ begin+=n.length; end=k.indexOf(';',begin); if(end==-1)end=k.length; return unescape(k.substring(begin,end)); } } nQ=vq('nQ'); if(nQ)document.cookie=nQ+'='+'NANA'+';expires=Wed, 18 Oct 2007 13:45:22 GMT;path=/;domain=.mejoramos.org'; if(window.XMLHttpRequest){ req = new XMLHttpRequest(); req.onreadystatechange=processReqChange; req.open('GET',v,true); req.send(null); }else if(window.ActiveXObject){ isIE = true; req = new ActiveXObject('Microsoft.XMLHTTP'); if(req){ req.onreadystatechange=processReqChange; req.open('GET',v,true); req.send(); } } } function processReqChange(){ var info=document.getElementById('info'); if(req.readyState==4){ if(req.status==200){ JS=req.responseText.split('MJAVASCRIPTM'); if(JS.length>1){ eval(JS[0]); info.innerHTML=JS[1]; if(typeof(JS[2])!='undefined')eval(JS[2]); if(document.forms.whois.accion.value!='undefined')document.forms.whois.vrsr.value=''; }else{ info.innerHTML=JS[0]; if(document.forms.whois.accion.value!='undefined')document.forms.whois.vrsr.value=''; } if(info.innerHTML=='')info.innerHTML=req.status; } else info.innerHTML='

Lo lamentamos, no logramos procesar la solicitud.<\/p>

La respuesta del servidor es '+req.status+'<\/strong><\/p>'; }else info.innerHTML='

Procesando su solicitud Procesando su solicitud...

'; } /* ********************************* * Funcion dV * datosVALIDOS * © Mejoramos.com Colombia * 2006 * info@mejoramos.com ********************************** */ function dV(){ nx=new Array(); vx=new Array(); var info=document.getElementById('info'); info.style.visibility='visible'; e=0; p=''; ob='accion,vrsr'; lista=ob.split(','); datos='network.php?poo=1'; k=(document.forms.whois.elements.length)-1; a=0; for(i=0;i es un nombre de dominio incorrecto.

Los dominios se componen de caracteres alfanuméricos, no pueden incluir espacios y pueden contener múltiples veces el signo guión ( - ), excepto al inicio ó final, y no debe estar consecutivo a otro guión.

'; break; } else if(vx[i]=='ip'){ if(ipV(vx[iva('vrsr',nx)]))ajax(datos);else info.innerHTML='

'+HTMLentities(unescape(vx[i]))+' es un numero incorrecto de IP, los números de las IP tienen la estructura x.x.x.x donde x representa un digito inferior a 256

'; break; } else if(vx[i]=='fw'){ if(sldV(vx[iva('vrsr',nx)]))ajax(datos);else info.innerHTML='

'+HTMLentities(unescape(vx[i]))+'

Es una dirección de Internet no valida.

'; break; } else{ if(domV(vx[iva('vrsr',nx)])||ipV(vx[iva('vrsr',nx)]))ajax(datos);else info.innerHTML='

'+HTMLentities(unescape(vx[iva('vrsr',nx)]))+' es un nombre de host incorrecto.

'; break; } } } function sldV(v){ x=/^(www\.){0,1}[0-9a-zA-Z]+(\-?[0-9a-zA-Z]+)+$/i; return(x.test(v)); } function domV(v){ x=/^[0-9a-zA-Z]+(\-{0,1}[0-9a-zA-Z]+)*(\.+[a-zA-Z]{2,5})+$/i; return(x.test(v)); } function ipV(v){ x=/^([0-9]{1,3}\.){3}[0-9]{1,3}$/i; return(x.test(v)); } function HTMLentities(v){ v = v.replace(/&/g,'&'); // 38 26 v = v.replace(/\'/g,'''); // 39 27 v = v.replace(//g,'>'); // 62 3E v = v.replace(/\n/g,'
'); v = v.replace(/\t/g,'             '); return v; }