<!--
//Code Author Angus Denton EDTeC UNSW 2002
// Pre load the feedback graphics
if(document.images){
tick= new Image(15,12)
tick.src="images/tick.gif";
cross = new Image(15,12)
cross.src="images/cross.gif";
}
//Declare form objects as a global
var fObj,hintC,hintI,n,l,correctArr
//Function for checking entry
function chkPhrase(tblCell){
//detect which form called the script
fObj=getForm(tblCell.name)
//Set hintbox text arrays
setCorrect(fObj)
setHint()
if(correctArr[parseInt(tblCell.name.slice(1,tblCell.name.length))] == parseInt(tblCell.options[tblCell.selectedIndex].text)){
response=eval("document.images.fb"+tblCell.name)
response.src="images/tick.gif"
//Provide hint box feed back
fObj.hintBox.value=hintC
}else{
response=eval("document.images.fb"+tblCell.name)
response.src="images/cross.gif"
//Provide hint box feed back
fObj.hintBox.value=hintI
}
}
function getForm(idx){
n=parseInt(idx.substr(1,1));
l=idx.substr(0,1);
var thisForm=eval("document.puzzle"+l);
return thisForm
}
function setHint(){
hint=eval("document.puzzle"+l+".hints.value").split("|")
hintI=Anok+hint[n]
hintC=Aok
}
function setCorrect(o){
correctArr=o.correctList.value.split(",")
//List to Array function 
//var correct = correctList
}
function hideImg(frm){
for(var i=0;i<document.images.length;i++){
if(document.images[i].name.substr(2,1)==frm){
document.images[i].src="images/masktx.gif"
}
}
}
//-->