
var num=Math.floor(Math.random()*6)+1;

list = new Array();
list[0] = 0;
list[1] = "er8j2";
list[2] = "ft6l4";
list[3] = "yn385";
list[4] = "qd5p7";
list[5] = "kr2g6";
list[6] = "yn385";

function randomizeImg() {

document.getElementById("captchaImg").src= "captcha/"+num+".jpg";
}

function testCaptcha() {

if (document.getElementById("captchaTxt").value.toLowerCase() != list[num])
{
document.getElementById("captchaTxt").style.borderColor = "#cc0000";
document.getElementById("captchaTxt").style.borderWidth = "3px";
document.getElementById("captchaTxt").style.borderStyle = "Solid";
alert("Please enter the proper verification code to continue.");
return false;
}

}