<!-- Original:  Jonathan Feaster (http://www.archreality.com/) -->

<!-- Web Site:  http://www.archreality.com/jcap/ -->

<!-- Based on: Gimpy CAPTCHA Project at Carnegie Mellon University (http://www.captcha.net/) -->

<!-- Begin

function cimg(){
var imgdir = "captcha/cimg/"; //identify directory where captcha images are located
anum = (Math.floor(Math.random()*12))+1;
imgid = parseInt(anum);
cword = 
["5ae0c1c8a5260bc7b6648f6fbd115c35", "2767cc3ede7592a47bd6657e3799565c", "59b514174bffe4ae402b3d63aad79fe0",
 "f7531e2d0ea27233ce00b5f01c5bf335", "31f2385ba9cc65dba7ccb9aa5c5b7600", "9224abe81c87767664f0712060449d16",
 "06e8cf26513ca6d398b2e16f9c5266ab", "452d9c5fdf897b6fb603f5a79d5b6f8e", "1818d506396d77b3d035f719885c4cd1",
 "ad9b8a7b14ee53434eba710fb4086cb4", "a39401275d1b300aa789fb22aea4148a", "eb320f0c2b6a25b48ca861a120eea902"];

document.write('<img src="'+imgdir+imgid+'.gif" width=160 height=40 border=0 alt="">');
}

function jcap(){

var uword = hex_md5(document.getElementById('uword').value);

if (uword==cword[anum-1]) {
return true;
}

else {
alert('Errore! - Prego inserisci il codice (in minuscolo) nel campo apposito.');
document.getElementById('uword').focus(); 
return false;
}
}

//  End -->
