function showopera(){if(navigator.userAgent.indexOf('Opera') >=0){alert("Sorry Opera user please use Netscape, Mozilla or Internet Explorer")}}
var multwin;function goMultelearn(){mulewin = window.open("http://www.multelearn.com")}if(navigator.appName.indexOf("Microsoft") >=0){	var browser = "msie";var userbrowser = "msie";}else if(navigator.appName.indexOf("Opera") >=0){	
var browser = "opera";var userbrowser = "opera";}else{var userbrowser = "not";var browser = "not"}function keyPressed(objEvent){var iKeyhit;if (userbrowser == "msie"||userbrowser=='opera'){iKeyhit = objEvent.keyCode;}else{iKeyhit = objEvent.which;}if(iKeyhit == 17){iKeyhit=0;alert("Sorry No Cheating Please!")
return false;}}var mousetarget;function buttonover(mousetarget){document.getElementById(mousetarget).style.background = '#0033cc';document.getElementById(mousetarget).style.color = '#ffffff';}function buttonout(mousetarget){document.getElementById(mousetarget).style.background = '#0000ff';
document.getElementById(mousetarget).style.color = '#ffff00';}var texttoalter;function enlarge(texttoalter){texttoalter.style.fontSize=14+'px';texttoalter.style.color='#ffffff';}function shrink(texttoalter){texttoalter.style.fontSize=12+'px';texttoalter.style.color='#ffff00';}
var urlinfo = new Array();var qs = location.search.substring(1).split('&');var querystring = new Array();for(i=0;i<qs.length;i++){t = qs[i].split("=");if(t[0] && t[1]) querystring[t[0]] = unescape(t[1]);urlinfo[i] = querystring[t[0]];}
var targ,other;function changeImage(targ,other){var activeimage = document.getElementById(targ);activeimage.src = other;}
var ii=0,t;function changeqImage(ii,t,targ,other){
if(t=='h' && document.getElementById('hintBtn'+ii).style.visibility=='visible')
{var activeimage = document.getElementById(targ);activeimage.src = other;}
else if(t=='r' && document.getElementById('revealBtn'+ii).style.visibility=='visible')
{var activeimage = document.getElementById(targ);activeimage.src = other;}}
var bigpic="",picdetail="",wide=0,high=0;function bigpicture(picdetail,wide,high){bigpic = window.open(picdetail,"picture","width=400,height=400");bigpic.document.write("<img src='"+picdetail+"' 'width="+wide+"px' 'height="+high+"px' />");bigpic.focus();}


var theimages = new Array('images/mark2.jpg','images/mark3.jpg','images/reset2.jpg','images/reset3.jpg','images/reveal2.jpg','images/reveal3.jpg','images/hint2.jpg','images/hint3.jpg','images/score2.jpg','images/score3.jpg','images/scoreas2.jpg','images/scoreas3.jpg','images/quit2a.jpg','images/quit3a.jpg','images/leave2.jpg','images/leave3.jpg','images/savetex2.jpg','images/savetex3.jpg');
preloader(theimages);

function preloader(imagesarray) {
   for(var loop = 0; loop < imagesarray.length; loop++)
	{
 	var animage = new Image();
	animage.src = imagesarray[loop];
   }
}

 
function lightup(imgName) { if (document.images) { imgOn=eval(imgName + "on.src"); document[imgName].src= imgOn; } } 
function turnoff(imgName) { if (document.images) { imgOff=eval(imgName + "off.src"); document[imgName].src= imgOff; } } 
function clickdown(imgName) { if (document.images) { imgDown=eval(imgName + "down.src"); document[imgName].src=imgDown; } } 
function closeWindow(){	self.close()}
function hidequit()
{
document.getElementById('quitBtnDiv').style.visibility='hidden';
}
var homeWindow;
function quittest(){self.close()};
function quittests(){
var screenheight = screen.height-70;
var screenwidth = screen.width-5;
var windowParams = "width="+screenwidth+",height="+screenheight+",left=0,top=0,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes'";
homeWindow = window.open('./mathhome.htm','candloginWin',windowParams);
if (homeWindow.opener == null){homeWindow.opener = window;};
//document.forms[0].action="mathhome.htm";
homeWindow.focus();
this.window.close();
}
function backtest(){
var screenheight = screen.height-70;
var screenwidth = screen.width-5;
var windowParams = "width="+screenwidth+",height="+screenheight+",left=0,top=0,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes'";
homeWindow = window.open('./mathtest.htm','candloginWin',windowParams);
if (homeWindow.opener == null){homeWindow.opener = window;};
document.forms[0].action="mathtest.htm";
homeWindow.focus();this.window.close();
}


