<!-- Original:  Jonathan Feaster (http://www.archreality.com/) -->

<!-- Web Site:  http://www.archreality.com/jcap/ -->

<!-- Version: 2.0 -->

<!-- Based on: Gimpy CAPTCHA Project at Carnegie Mellon University (http://www.captcha.net/) -->

<!-- Begin

var imgdir = "cimg/"; // identify directory where captcha images are located
var jfldid = "uword"; // identify word field id name
var jfldsz = 20; // identify word field size

function sjcap(jfldcls){
imgdir = encodeURIComponent(imgdir);
if (jfldcls == null){
jfldcls = "";
}
anum = (Math.floor(Math.random()*10))+1;
imgid = parseInt(anum);
cword = 
["8fb744b51a1f14e5e8cda4e4aec68e2f", "e72f4545eb68c96c754f91fc01573517", "aaabf0d39951f3e6c3e8a7911df524c2",
 "b3bfb5ad6ba04daf0f8f1930133d89dd", "8d8d1437907bca79900ac5f0ea1f5c73", "91e02cd2b8621d0c05197f645668c5c4",
 "78805a221a988e79ef3f42d7c5bfd418", "3ac156eead4ae6b40e9c498d532b4448", "2290dc931ca9f51d5e44b6d6dba081d7",
 "8cb554127837a4002338c10a299289fb"];

document.write("<p><input type=\"text\" id=\"" + jfldid + "\" name=\"" + jfldid + "\" class=\"" + jfldcls + "\" size=\"" +  jfldsz + "\"><\/p>");
document.write("<p><img src=\"" + decodeURIComponent(imgdir) + imgid + ".jpg\" alt=\"\"><\/p>");
}

function jcap(){

var uword = hex_md5(document.getElementById(jfldid).value);

if (uword==cword[anum-1]) {
return true;
}

else {
alert("ERROR: Enter the code as it is shown.");
document.getElementById(jfldid).focus();
return false;
}
}

//  End -->