var z=false,o=false,t=false,r=false;if(document.getElementById){if(!document.all){r=true;};if(document.all){z=true;};}else{if(document.layers){t=true;}else{o=true;};};function aj(e){var a;if(z){a=eval("document.all."+e);};if(r){a=eval("document.getElementById('"+e+"')");};if(t){a=eval("document."+e);};if(o){a="null";alert("Your browser does not support the features required to display questions properly.");};return a;};function ak(e){var a;if(z){a=aj(e).style;};if(r){a=aj(e).style;};if(t){a=aj(e);};if(o){a="null";alert("Your browser does not support the features required to display questions properly.");};return a;};function al(s){if((ak(s).display=="block")||(ak(s).display=="")){ak(s).display="none";}else if(ak(s).display=="none"){ak(s).display="block";};};function ag(s){ak(s).display="block";};function ah(s){ak(s).display="none";};function shfbkLyr_generic(b){ag("Q"+b+"Feedback");};function shfbkLyr_mch1(b,q){var d=eval("document.Q"+b+"Form.Q"+b+"Choice"),p=eval("document.Q"+b+"Form.Q"+b+"Match"),c=0;for(i=0;i<q;i++){if(d[i].checked==true){if(p.value==(i+1)){c+=1;};};};if(c==0){ag("Q"+b+"FBIncorrect");ah("Q"+b+"FBCorrect");}else{ag("Q"+b+"FBCorrect");ah("Q"+b+"FBIncorrect");};};function shfbkLyr_mch2(b,q){var d=eval("document.Q"+b+"Form.Q"+b+"Choice"),p=eval("document.Q"+b+"Form.Q"+b+"Match"),u=0;for(i=0;i<(q+1);i++){ah("Q"+b+"Feedback"+i);};for(i=0;i<q;i++){if(d[i].checked==true){u=i+1;};};ag("Q"+b+"Feedback"+u);};function shfbkLyr_chb2(b,q){var d=eval("document.Q"+b+"Form.Q"+b+"Choice"),f=0;for(i=0;i<(q);i++){if(d[i].checked==ai(eval("document.Q"+b+"Form.Q"+b+"Matches"+i+".value"))){ag("Q"+b+"FBCorrect"+i);ah("Q"+b+"FBIncorrect"+i);f+=1;}else{ag("Q"+b+"FBIncorrect"+i);ah("Q"+b+"FBCorrect"+i);};};};function shfbkLyr_chb3(b,q){var d=eval("document.Q"+b+"Form.Q"+b+"Choice"),c=0;for(i=0;i<(q);i++){if(d[i].checked!=ai(eval("document.Q"+b+"Form.Q"+b+"Matches"+i+".value"))){c+=1;};};if(c==0){ag("Q"+b+"FBCorrect");ah("Q"+b+"FBIncorrect");}else{ag("Q"+b+"FBIncorrect");ah("Q"+b+"FBCorrect");};};function shfbkLyr_txt2(b){var g=eval("document.Q"+b+"Form.Q"+b+"TextEntry"),v="You answered: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "+g.value+"<br/><br/>";var k=eval("document.Q"+b+"Form.Q"+b+"HiddenAnswer"+".value"),j=eval("document.Q"+b+"Form.Q"+b+"HiddenFeedback"+".value"),i=aj("Q"+b+"Feedback");i.innerHTML=v+k+"<br/><br/>"+j;ag("Q"+b+"Feedback");};function shfbkLyr_txt3(b,q){var g=eval("document.Q"+b+"Form.Q"+b+"TextEntry"),c=0;for(i=0;i<(q);i++){if(ai(g.value).toLowerCase()==ai(eval("document.Q"+b+"Form.Q"+b+"TextEntryMatches"+i+".value")).toLowerCase()){c=1;};};if(c==0){ag("Q"+b+"FBIncorrect");ah("Q"+b+"FBCorrect");}else{ag("Q"+b+"FBCorrect");ah("Q"+b+"FBIncorrect");};};function shfbkLyr_match2(b,q){var c=0;for(i=1;i<(q+1);i++){if((eval("document.Q"+b+"Form.Q"+b+"Combo"+i+".selectedIndex"))!=ai(eval("document.Q"+b+"Form.Q"+b+"Matches"+(i-1)+".value"))){c+=1;};};if(c==0){ag("Q"+b+"FBCorrect");ah("Q"+b+"FBIncorrect");}else{ag("Q"+b+"FBIncorrect");ah("Q"+b+"FBCorrect");};};function shfbkLyr_gap2(b,q){var f=0;for(i=0;i<(q);i++){if(ai(eval("document.Q"+b+"Form.Q"+b+"TextEntry"+(i+1)+".value")).toLowerCase()==ai(eval("document.Q"+b+"Form.Q"+b+"TextEntryMatches"+i+".value")).toLowerCase()){f+=1;};};var h="You got "+f+" right out of "+q+".";if(f==q){var i=aj("Q"+b+"FBCorrectStore"),n=aj("Q"+b+"FBCorrect");n.innerHTML=h+"<br/><br/>"+i.innerHTML;ag("Q"+b+"FBCorrect");ah("Q"+b+"FBIncorrect");}else{var m=aj("Q"+b+"FBIncorrectStore"),l=aj("Q"+b+"FBIncorrect");l.innerHTML=h+"<br/><br/>"+m.innerHTML;ag("Q"+b+"FBIncorrect");ah("Q"+b+"FBCorrect");};};function shfbkLyr_gap4(b,q){var f=0;for(i=0;i<(q);i++){var y=eval("document.Q"+b+"Form.Q"+b+"Combo"+(i+1)+".options[document.Q"+b+"Form.Q"+b+"Combo"+(i+1)+".selectedIndex].text");if(y==ai(eval("document.Q"+b+"Form.Q"+b+"TextEntryMatches"+i+".value")).toLowerCase()){f+=1;};};var h="You got "+f+" right out of "+q+".";if(f==q){var i=aj("Q"+b+"FBCorrectStore"),n=aj("Q"+b+"FBCorrect");n.innerHTML=h+"<br/><br/>"+i.innerHTML;ag("Q"+b+"FBCorrect");ah("Q"+b+"FBIncorrect");}else{var m=aj("Q"+b+"FBIncorrectStore"),l=aj("Q"+b+"FBIncorrect");l.innerHTML=h+"<br/><br/>"+m.innerHTML;ag("Q"+b+"FBIncorrect");ah("Q"+b+"FBCorrect");};};function winPop2(af,ab,x,w){popWin=window.open(""+af,"popupWindow","width="+ab+",height="+x+",scrollbars="+w+",menubar=no");return true;};function winOpen(ae){popWin=window.open(ae,"linkWindow","width=640,height=480,status=yes,toolbar=yes,menubar=yes,resizable=yes,location=yes,scrollbars=yes");};function ai(ad){while(ad.substring(0,1)==' '){ad=ad.substring(1,ad.length);}while(ad.substring(ad.length-1,ad.length)==' '){ad=ad.substring(0,ad.length-1);};return ad;};function imgSwap(aa,ac){if(document.images){document.images[aa].src=ac;};};
