document.write(''); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('CAPTCHA:
'); document.write(''); document.write(''); document.write('
SABROCAPTCHA
'); document.write('
'); document.write('
'); document.write('

'); document.write(''); document.write('function checkform(theform){'); document.write('var why = "";'); document.write('if(theform.CaptchaInput.value == ""){'); document.write('why += "INGRESE EL CODIGO CAPTCHA!";'); document.write('}'); document.write('if(theform.CaptchaInput.value != ""){'); document.write('if(ValidCaptcha(theform.CaptchaInput.value) == false){'); document.write('why += "EL CODIGO CAPTCHA ES INCORRECTO";'); document.write('}'); document.write('}'); document.write('if(why != ""){'); document.write('alert(why);'); document.write('return false;'); document.write('}'); document.write('}'); document.write('var a = Math.ceil(Math.random() * 9)+ \'\';'); document.write('var b = Math.ceil(Math.random() * 9)+ \'\';'); document.write('var c = Math.ceil(Math.random() * 9)+ \'\';'); document.write('var d = Math.ceil(Math.random() * 9)+ \'\';'); document.write('var e = Math.ceil(Math.random() * 9)+ \'\';'); document.write('var code = a + b + c + d + e;'); document.write('document.getElementById("txtCaptcha").value = code;'); document.write('document.getElementById("CaptchaDiv").innerHTML = code;'); document.write('function ValidCaptcha(){'); document.write('var str1 = removeSpaces(document.getElementById(\'txtCaptcha\').value);'); document.write('var str2 = removeSpaces(document.getElementById(\'CaptchaInput\').value);'); document.write('if (str1 == str2){'); document.write('return true;'); document.write('}else{'); document.write('return false;'); document.write('}'); document.write('}'); document.write('function removeSpaces(string){'); document.write('return string.split(\' \').join(\'\');'); document.write('}'); document.write('');