// JavaScript Document	var word = -1;	var def = -1;	var comp = new Array(5);	var compd = new Array(5);	for(i=0; i<5; i++)	{		comp[i] = false;		compd[i] = false;	}	var count = 0;	function OnClick(num,col,n0,n1,n2,n3,n4)	{	var defnum=new Array(n0,n1,n2,n3,n4);	if (defnum[0] != n0) alert("Error");		if(col == 0)		{			if (comp[num])return;			if(word >= 0)			{				document.getElementById("w".concat(word)).style.backgroundColor="white";				document.getElementById("bword".concat(word)).style.backgroundColor="white";			}			if (num != word)			{				word = num;				document.getElementById("w".concat(word)).style.backgroundColor="green";				document.getElementById("bword".concat(word)).style.backgroundColor="green";			}			else				word = -1;			if(def >= 0)				check(defnum);		}		else		{			if (compd[num])return;			if(def >= 0)			{			document.getElementById("d".concat(def)).style.backgroundColor="white";			document.getElementById("bdef".concat(def)).style.backgroundColor="white";			}			if (num != def)			{				def = num;				document.getElementById("d".concat(def)).style.backgroundColor="green";				document.getElementById("bdef".concat(def)).style.backgroundColor="green";			}			else				def = -1;			if(word >= 0)				check(defnum);		}	}	function check(defnum)	{		if(word != defnum[def])		{			//alert("Wrong!");			//document.bgColor = "#FF0000";			document.getElementById("w".concat(word)).style.backgroundColor="red";			document.getElementById("d".concat(def)).style.backgroundColor="red";			document.getElementById("bword".concat(word)).style.backgroundColor="red";			document.getElementById("bdef".concat(def)).style.backgroundColor="red";			self.setTimeout('bgwhite('+word+","+def+')',200);		}		else		{			comp[word] = true;			compd[def] = true;			document.getElementById("w".concat(word)).style.backgroundColor="purple";			document.getElementById("d".concat(def)).style.backgroundColor="purple";			document.getElementById("bword".concat(word)).style.backgroundColor="purple";			document.getElementById("bdef".concat(def)).style.backgroundColor="purple";			count++;		}		def = -1;		word = -1;		if(count >= 5)		{			alert("Good Job");			window.location.reload( false );		}	}	function bgwhite(w,d)	{		document.getElementById("w".concat(w)).style.backgroundColor="white";		document.getElementById("d".concat(d)).style.backgroundColor="white";		document.getElementById("bword".concat(w)).style.backgroundColor="white";		document.getElementById("bdef".concat(d)).style.backgroundColor="white";	}
