
var num=Math.floor(Math.random()*5)+1;

list = new Array();
list[0] = 0;
list[1] = "frnel";
list[2] = "hrwqu";
list[3] = "tsrpa";
list[4] = "vdxma";
list[5] = "gjzbr";

function randomizeImg(formnum) {
num=Math.floor(Math.random()*6)+1;
document.getElementById("captchaImg"+formnum).src= "captcha/"+num+".jpg";
}

function testCaptcha(formnum) {

if (document.getElementById("captchaTxt"+formnum).value.toLowerCase() != list[num])
{
document.getElementById("captchaTxt"+formnum).style.borderColor = "#cc0000";
document.getElementById("captchaTxt"+formnum).style.borderWidth = "2px";
//document.getElementById("bot_check").style.margin = "0px";
alert("Please enter the proper letters and numbers into the box below them.");
return false;
}

}