//faux graphic security

title = new Array(5);
title[0]  = 'sk/securitykey00.gif'
title[1]  = 'sk/securitykey01.gif'
title[2]  = 'sk/securitykey02.gif'
title[3]  = 'sk/securitykey03.gif'
title[4]  = 'sk/securitykey04.gif'

index = Math.floor(Math.random() * title.length);

document.write("");
document.write("<form ><table border='0'><tr>");
document.write("<td><IMG SRC='" + title[index] + "'  WIDTH=100 HEIGHT=32 BORDER=0></td>");
document.write("<td><input type=\"text\" size=\"8\" value=\"\" id=\"testvalue\"></td>");
document.write("<td><input  class=\"button\" onclick=\"compareVal(" + index + ")\" type=\"button\" value=\"verify\"></td>");
document.write("</tr></table></form>");

document.title.value="";



function compareVal(location)
	{
	title = new Array(5);
	title[0]  = 'a3f67j9L';
	title[1]  = 'K1yp97E';
	title[2]  = 'Ww253Gh';
	title[3]  = '6K6k6K2';
	title[4]  = 'wKrP738';
	
	value = document.getElementById("testvalue").value;
	
	if(title[location] == value)
		{
		document.getElementById("form").style.display = "inline";
		document.getElementById("security").style.display = "none";
		} else {
		alert("Please enter the correct value.");
		}

	//alert(location +" - "+value);
	}
