var cargado = false; function Carga(){ if (!cargado){ cargado=true; document.getElementById("imgVal").src = 'http://www.grupobfx.com/imagenes/captcha/33-captcha.jpg'; document.getElementById("contactoima").value = '33-captcha.jpg'; document.getElementById("contactonombre").value = 'x7eh'; } } function EsValida(){ var valida = (document.getElementById("contactonombre").value.toUpperCase() == document.getElementById("contactovalor").value.toUpperCase()); if (!valida) alert ("El código ingresado es incorrecto, por favor inténtelo de nuevo"); return valida; } function RecargaContacto() { var date = new Date(); var url = "http://www.grupobfx.com/seguridad/securecarga.dbsp" + '?v='+date.getTime(); var body = document.getElementsByTagName("body")[0]; var scr = document.createElement("script"); scr.setAttribute("type","text/javascript"); scr.setAttribute("src",url); scr.setAttribute("id","scriptTemporal"); body.appendChild(scr); return false; } function Reasigna(dato1, dato2){ document.getElementById("imgVal").src = 'http://www.grupobfx.com/imagenes/captcha/'+dato1; document.getElementById("contactoima").value = dato1; document.getElementById("contactonombre").value = dato2; var body = document.getElementsByTagName("body")[0]; var scr = document.getElementById("scriptTemporal"); body.removeChild(scr); }