function cimg(){
	var imgdir = "../image/crypto/"; //identify directory where captcha images are located
	anum = (Math.floor(Math.random()*10))+1;
	imgid = parseInt(anum);
	cword = 
	["b5c89a2bd02a719eba9c12da2e4b2086",
	 "c82c07f97de131b343934495b9e27668",
	 "251a983ebdb45a8b5f5cf3463b342b11",
	 "553b7044b9ace1466c432c869aa94ab0",
	 "269b2454ec73e3b1364a419f595db85a",
	 "7101444a497251fcf03d3f2e249d09ce",
	 "e69a501bbd119a4ea527eb68bb823866",
	 "e479caf5053642c31699953fc4aae108",
	 "f97067d024947cc4193d647638c6f53a",
	 "20731932fa83ef8433c627e0d12c1b16"];
	
	document.write('<img src="'+imgdir+imgid+'.jpg" width=170 height=60 border=1 alt="">');
	}
	
	function jcap(){
	
	var spam = hex_md5(document.getElementById('spam').value);
	
	if (spam==cword[anum-1]) {
		window.document.formail.submit();
	}
	
	else {
		alert("Veuillez entrer le code de l'image");
		document.getElementById('spam').focus(); 
		//return false;
	}
}

