<!--     if (is_js>=1.0) {     imgaon = new Image();    imgaon.src = "../letters/aleph.gif";    imgbon = new Image();    imgbon.src = "../letters/vet.gif";    imggon = new Image();    imggon.src = "../letters/gimel.gif";    imgdon = new Image();    imgdon.src = "../letters/dalet.gif";    imghon = new Image();    imghon.src = "../letters/hey.gif";    imgvon = new Image();    imgvon.src = "../letters/vav.gif";    imgzon = new Image();    imgzon.src = "../letters/zayin.gif";    imgcon = new Image();    imgcon.src = "../letters/khet.gif";    imgTon = new Image();    imgTon.src = "../letters/tet.gif";    imgyon = new Image();    imgyon.src = "../letters/yod.gif";    imgkon = new Image();    imgkon.src = "../letters/khaf.gif";    imglon = new Image();    imglon.src = "../letters/lamed.gif";    imgmon = new Image();    imgmon.src = "../letters/mem.gif";    imgnon = new Image();    imgnon.src = "../letters/nun.gif";    imgson = new Image();    imgson.src = "../letters/samekh.gif";    imgion = new Image();    imgion.src = "../letters/ayin.gif";    imgfon = new Image();    imgfon.src = "../letters/fay.gif";    imgxon = new Image();    imgxon.src = "../letters/tsade.gif";    imgqon = new Image();    imgqon.src = "../letters/kuf.gif";    imgron = new Image();    imgron.src = "../letters/resh.gif";    imgSon = new Image();    imgSon.src = "../letters/sen.gif";    imgton = new Image();    imgton.src = "../letters/tav.gif";    imgkhaffinal = new Image();    imgkhaffinal.src = "../letters/khaffinal.gif";    imgmemfinal = new Image();    imgmemfinal.src = "../letters/memfinal.gif";    imgnunfinal = new Image();    imgnunfinal.src = "../letters/nunfinal.gif";    imgfayfinal = new Image();    imgfayfinal.src = "../letters/fayfinal.gif";    imgtsadefinal = new Image();    imgtsadefinal.src = "../letters/tsadefinal.gif";    imgexclam = new Image();    imgexclam.src = "../letters/exclam.gif";    imghyphen = new Image();    imghyphen.src = "../letters/hyphen.gif";    imgperiod = new Image();    imgperiod.src = "../letters/period.gif";    imgquest = new Image();    imgquest.src = "../letters/quest.gif";} var docObj = (is_ie4up)?'document.all.':'document.';var styObj = (is_ie4up)?'.style':'';if (is_nav5up) {  docObj = 'document.getElementById("';  styObj = '").style';  }var topObj;var imgObj;var iObj;var qObj;var rObj;var kObj;function define() {  if (is_nav4) { // Navigator 4.0x   imgObj = document.response.document;   topObj = document.intro.document.topics;   focObj = document.question.document.focusform;   document.height = document.intro.top + document.intro.document.height   }  else if (is_ie4up) { // Internet Explorer 4.0x and up   imgObj = document;   topObj = document.all.topics;   focObj = document.all.focusform;   }  else if (is_nav5up) {// the dreaded Navigator 5.0x   imgObj = document;   topObj = document.getElementById("topics");   focObj = document.getElementById("focusform");   }  iObj = eval(docObj + 'intro' + styObj);  qObj = eval(docObj + 'question' + styObj);  rObj = eval(docObj + 'response' + styObj);  kObj = eval(docObj + 'keyboard' + styObj);  iObj.visibility = "visible";}function browsercheck() {  if ((is_ie)&&(is_mac)) {    alert("Sorry...  This tutorial doesn't work if you are using Internet Explorer on a Mac.  You'll need to use Netscape or switch to a PC.");    return false;  }  if ((is_ie4up)||(is_strictnav4up)) {     setTimeout('populate()',50);    return;  }  if ((is_opera)||(is_webtv)) {    alert("Attention:  This tutorial has not yet been tested on the browser you are using and errors may occur.  We would appreciate it if you could let us know how it works.");     setTimeout('populate()',50);    return;  }  else {    alert("Sorry...  You do not appear to be using a modern, javascript-enabled web browser.  Please upgrade your browser and try again.");    return false;    }}var qlength = 5function populate() {  questpool = new Array();  anspool = new Array();  randquest = new Array();  randans = new Array();   for (var i=0; i<topObj.length-5; i++) {      if (topObj.elements[i].checked) {       questpool = questpool.concat(eval('Vocab' + i));       anspool = anspool.concat(eval('Vocab'+i+'B'))       }      }    if (topObj.count[3].checked) {     randquest = questpool;     randans = anspool;     qlength = questpool.length;     iObj.visibility = "hidden";     qObj.visibility = "visible";     rObj.visibility = "visible";     kObj.visibility = "visible";     focObj.user.focus();     window.scroll(0,0);     setTimeout('selectWord()',50);     return false;     }   if (topObj.count[2].checked) {     qlength = 50;     }   if (topObj.count[1].checked) {     qlength = 25;     }   if (topObj.count[0].checked) {     qlength = 10;     }   if (questpool.length<=qlength) {      alert("The topics you have chosen do not contain enough items to make a full quiz.  Please choose additional topics.");      return false;      }   while (randquest.length<qlength)  {   var add = Math.floor(Math.random() * questpool.length);    var match = 0;    for (var i=0; i<randquest.length; i++) {       if (randquest[i] != questpool[add]) {               continue;          }       else {          match = 1         break;          }       }    if (match==0) {       randquest[randquest.length] = questpool[add];      randans[randans.length] = anspool[add];      }     }         iObj.visibility = "hidden";     qObj.visibility = "visible";     rObj.visibility = "visible";     kObj.visibility = "visible";     focObj.user.focus();     window.scroll(0,0);     setTimeout('selectWord()',50);}var counter=1;  // number of letters that have been typedvar answer="=";  // answer to be assembledvar aleph = 0  // number of term being answeredvar rcount = 0  // count of right answersvar wcount = 0  // count of wrong answersvar testx = 0  // tests whether the question has received a correct answer var wordlist = '<TABLE WIDTH=450 BORDER=0 CELLPADDING=3><TD ALIGN=LEFT VALIGN=TOP WIDTH="40%"><span class="text2"><U>Your word list:</U></span><BR>';function restart() {  counter=1;  answer="=";  aleph = 0  rcount = 0  wcount = 0  testx = 0  //jumble the order in which the terms are presented each time the page is run	var temp = 0;	var tempAns = new Array();	var tempQuest = new Array();		var max = qlength	for (i=0; i<qlength; i++) {		temp = Math.floor(Math.random()*max);		tempAns[i] = randans[temp];		tempQuest[i] = randquest[temp];		for (j=temp; j<=max; j++) {			randans[j] = randans[j+1];			randquest[j] = randquest[j+1];		}		randans.length = randans.length-1;		randquest.length = randquest.length-1;		max = max-1;	}	randans = tempAns;	randquest = tempQuest;  wordlist = '<TABLE WIDTH=450 BORDER=0 CELLPADDING=3><TR><TD ALIGN=LEFT VALIGN=TOP WIDTH="40%"><span class="text2"><U>Your word list:</U></span><BR>';  errorslist = '';     iObj.visibility = "hidden";     qObj.visibility = "visible";     rObj.visibility = "visible";     kObj.visibility = "visible";   selectWord();}function getRandom() {  return Math.random()  }    function selectWord() {var gimel = "answer"var dalet = "answer"if (rcount != 1) {   gimel = "answers";}if (wcount !=1) {   dalet = "answers";}newPage = '<table width="476" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#FFFFFF" align="left" valign="middle"><table border="0" cellspacing="0" cellpadding="7"><tr><td bgcolor="#003E8F" align="center" valign="middle" nowrap><span class="text1"><font color="#FF9933"><b>Term # ' + (aleph + 1) + ':  </b></font></span></td><td align="center" valign="middle" bgcolor="#FFFFFF" nowrap><span class="text1"><font color="#003E8F"><B> ' + randquest[aleph] + '</B></font></span></td></tr></table></td></tr></table>';finalPage = '<TABLE WIDTH=570 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=CENTER VALIGN=MIDDLE COLSPAN=3 CLASS="tan"><HR SIZE=1 NOSHADE><BR></TD></TR><TR><TD WIDTH=10 ALIGN=LEFT VALIGN=TOP BGCOLOR=#003E8F><img src="../images/ul.gif" width="10" height="10" border="0"></TD><TD ALIGN=CENTER CLASS="text2" BGCOLOR=#003E8F><img src="../images/dot_clear.gif" width="550" height="3" border="0"><BR><FONT COLOR=#FF9933><B>Results</B></FONT><BR><img src="../images/dot_clear.gif" width="550" height="3" border="0"></TD><TD WIDTH=10 ALIGN=RIGHT VALIGN=TOP BGCOLOR=#003E8F><img src="../images/ur.gif" width="10" height="10" border="0"></TD></TR><TR><TD BGCOLOR="#EEEEEE" ALIGN=LEFT VALIGN=TOP CLASS="text3">&nbsp;</TD><TD COLSPAN=2 BGCOLOR=#FFFFFF ALIGN=CENTER VALIGN=MIDDLE><P>&nbsp;</P><div class="text2"><P><B>For the ' + aleph + ' words in this quiz, you gave ' + rcount + ' correct ' + gimel + ', and ' + wcount + ' wrong ' + dalet +'.</B></P></div>';if (aleph !=0) {  if (testx==0) {    wordlist = wordlist + '<span class="text2">- <FONT COLOR=RED>' + randquest[aleph-1] + '</FONT></span><BR>';    }  else {    wordlist = wordlist + '<span class="text2">- ' + randquest[aleph-1] + '</span><BR>';    }}if (aleph <= qlength-1) {   if (is_ie4up) {      document.all.question.innerHTML = newPage;      }   if (is_nav5up) {      document.getElementById("question").innerHTML = newPage;      document.forms[0].elements[0].blur()      }   if (is_nav4) {      document.question.document.write(newPage);      document.question.document.close();      }    testx = 0;   }else {   qObj.visibility = "hidden";   rObj.visibility = "hidden";   kObj.visibility = "hidden";   iObj.visibility = "visible";   finalPage = finalPage + wordlist + '</TD><TD ALIGN=CENTER VALIGN=MIDDLE><span class="text2"><I>Any word that did not receive a correct answer is shown in red.</I></span></TD></TR><TR><TD COLSPAN=2 ALIGN=CENTER VALIGN=MIDDLE><FORM NAME="fcontrols"><INPUT NAME="button1" TYPE="button" VALUE="Repeat This List of Terms" onClick="javascript:parent.restart();">&nbsp;&nbsp;<INPUT NAME="button2" TYPE="button" VALUE="Choose a New List" onClick="javascript:location.reload()"></FORM></TD></TR></TABLE><BR><img src="http://darkwing.uoregon.edu/~ylcflx/Aleph-Bet/cgi-bin/counter.cgi?tutorial=' + tutorialID + '&rcount=' + rcount + '&wcount=' + wcount + '&total=' + aleph + '&random=' + getRandom() + '" width="1" height="1">';  if (wcount>0) {      finalPage = finalPage + '<BR><img src="http://darkwing.uoregon.edu/~ylcflx/Aleph-Bet/cgi-bin/E2Hmistakes.cgi?' + getRandom() + '=' + tutorialID + errorslist + '" width="1" height="1">';      }   finalPage = finalPage + '</TD></TR><TR><TD ALIGN=LEFT VALIGN=MIDDLE COLSPAN=3 CLASS="tan"><hr size=1><span class="text4">This page is maintained by the <a href="http://babel.uoregon.edu/">Yamada Language Center</a> at the <a href="http://www.uoregon.edu/">University of Oregon</a>.<br>Questions, comments, and suggestions should be addressed to <a href="mailto:ylc@oregon.uoregon.edu">ylc@oregon.uoregon.edu</a><br></span></TD></TR></TABLE>';   if (is_ie4up) {      document.all.intro.innerHTML = finalPage;      document.height = document.all.intro.top + document.all.intro.document.height;      }   if (is_nav5up) {      document.getElementById("intro").innerHTML = finalPage;      document.height = document.getElementById("intro").top + document.getElementById("intro").height;      }   if (is_nav4) {      document.intro.document.write(finalPage);      document.intro.document.close();      document.height = document.intro.top + document.intro.document.height;      }   if (document.height<500) {document.height=500}   }}if (document.layers) {  document.captureEvents(Event.KEYPRESS);  }document.onkeypress = showKey;function cancelRefresh() {    if (window.event && window.event.keyCode == 8) {  // cancel the backspace      if (counter>1) {         counter=counter-1;                 var newanswer="=";                  for (var i=1; i < counter; i++){            newanswer=newanswer+answer.charAt(i);            }         answer=newanswer;         imgObj.images["img"+ counter].src = "../letters/blank.gif";         }       if (counter==15) {         imgObj.images["hyphen"].src = "../letters/blank.gif";       }      window.event.cancelBubble = true;      window.event.returnValue = false;      return false;    }}    function showKey(e) {if (is_ie) {  var whichCode =    event.which ? event.which :    event.charCode ? event.charCode :    event.keyCode;  }else {  var whichCode =    e.which ? e.which :    e.charCode ? e.charCode :    e.keyCode;  }if (whichCode==00) {   return false;   }if ((iObj.visibility=="show") || (iObj.visibility=="visible")) {   return false;   }if (whichCode==8) {               if (counter==1) {         return false;                }      if (counter==16) {                  counter=counter-1;                  var newanswer="=";                for (var i=1; i < counter; i++){            newanswer=newanswer+answer.charAt(i);            }         answer=newanswer;         imgObj.images["img"+ counter].src = "../letters/blank.gif";               imgObj.images["hyphen"].src = "../letters/blank.gif";                return false;         }      else {                                          counter=counter-1;                 var newanswer="=";                  for (var i=1; i < counter; i++){            newanswer=newanswer+answer.charAt(i);            }         answer=newanswer;         imgObj.images["img"+ counter].src = "../letters/blank.gif";                return false;         }      }   if (counter>=30) {      return true;      }   if (whichCode==13) {      test(answer);      window.focus();      return true;       }   if (whichCode==32) {             finalize(counter);            answer=answer+1;               counter=counter+1;            return false;      }   if (whichCode==33) {              finalize(counter);              answer=answer+"!";               imgObj.images["img"+ counter].src = "../letters/exclam.gif";              hyphenate(counter);              counter=counter+1;               return true;      }   if (whichCode==45) {               finalize(counter);              answer=answer+"-";              imgObj.images["img"+ counter].src = "../letters/hyphen.gif";              counter=counter+1;               return true;      }   if (whichCode==46) {               finalize(counter);               answer=answer+".";             imgObj.images["img"+ counter].src = "../letters/period.gif";               hyphenate(counter);               counter=counter+1;       return true;      }   if (whichCode==63) {               finalize(counter);               answer=answer+"?";               imgObj.images["img"+ counter].src = "../letters/quest.gif";               hyphenate(counter);               counter=counter+1;       return true;      }   if ((whichCode<83) || (whichCode>122))  {             return true;      }   if ((whichCode>84) && (whichCode<97))   {              return true;      }   if ((whichCode==101) || (whichCode==106) || (whichCode==111))  {           return true;      }   if ((whichCode==112) || (whichCode==117) || (whichCode==119))   {            return true;      }   else {      showKey2(whichCode);}}function showKey2(whichCode) {   if (whichCode==32) {             finalize(counter);            answer=answer+1;               counter=counter+1;            return false;      }   else {      imgObj.images["img"+counter].src = eval("img" + String.fromCharCode(whichCode) + "on.src");      answer=answer+String.fromCharCode(whichCode);      hyphenate(counter);      counter=counter+1;      return true;      }}function hyphenate() {   if (counter!=15) {      return true;      }   else {   if (imgObj.images["img"+(counter-1)].src == "http://babel.uoregon.edu/Hebrew/quiz/E_to_H/images/dot_clear.gif") {      return true;   }   else {      imgObj.images["hyphen"].src = "../letters/hyphen.gif";   }  }return true;}function finalize(position) {   if (position==1) {      return true;}   else {   if (imgObj.images["img"+(position-1)].src.toLowerCase() == "http://darkwing.uoregon.edu/~ylcflx/aleph-bet/letters/khaf.gif") {      imgObj.images["img"+(position-1)].src = "../letters/khaffinal.gif";   }   if (imgObj.images["img"+(position-1)].src.toLowerCase() == "http://darkwing.uoregon.edu/~ylcflx/aleph-bet/letters/mem.gif") {      imgObj.images["img"+(position-1)].src = "../letters/memfinal.gif";   }   if (imgObj.images["img"+(position-1)].src.toLowerCase() == "http://darkwing.uoregon.edu/~ylcflx/aleph-bet/letters/nun.gif") {      imgObj.images["img"+(position-1)].src = "../letters/nunfinal.gif";   }   if (imgObj.images["img"+(position-1)].src.toLowerCase() == "http://darkwing.uoregon.edu/~ylcflx/aleph-bet/letters/fay.gif") {      imgObj.images["img"+(position-1)].src = "../letters/fayfinal.gif";   }   if (imgObj.images["img"+(position-1)].src.toLowerCase() == "http://darkwing.uoregon.edu/~ylcflx/aleph-bet/letters/tsade.gif") {      imgObj.images["img"+(position-1)].src = "../letters/tsadefinal.gif";   }      return true;   }}function erase() {   for (var i=1; i < 30; i++){       imgObj.images["img"+ i].src = "../letters/blank.gif";     }   imgObj.images["hyphen"].src = "../letters/blank.gif";   counter=1;   answer="=";}var errorslist = '';function replace(string,text,by) {// Replaces text with by in string  for (var temp = '',i=string.length-1;i>0;i=i-1)          temp += string.charAt(i);   string = temp;   string = string.replace(/[^a-zA-Z 0-9?.,!()]+/g,'(?)');   var strLength = string.length, txtLength = text.length;   if ((strLength == 0) || (txtLength == 0)) return string;   var i = string.indexOf(text);   if ((!i) && (text != string.substring(0,txtLength))) return string;   if (i == -1) return string;   var newstr = string.substring(0,i) + by;   if (i+txtLength < strLength)           newstr += replace(string.substring(i+txtLength,strLength),text,by);   return newstr;   }function test (response) {  if (response== randans[aleph] ) {    alert("Yes!");    testx = 1;    rcount++;    aleph++;    erase();    selectWord();    }  else {    alert("Sorry, try again.");    wcount++;    errorslist = errorslist + "&" + replace(randans[aleph],' ','+') + "=" + replace(response,' ','+');    }}function display() {               erase();                             if (is_nav5up) {      document.forms[0].elements[1].blur()      }   for (var i=1; i < randans[aleph].length; i++){      if ((i==15) && (this.randans[aleph].charAt(14)!="1")) {         imgObj.images["hyphen"].src = "../letters/hyphen.gif";         }      if (this.randans[aleph].charAt(i)=="?") {         imgObj.images["img"+ i].src = "../letters/quest.gif";         finalize(i);         }      else {         if (this.randans[aleph].charAt(i)=="1") {            imgObj.images["img"+ i].src = "../letters/blank.gif";            finalize(i);            }         else {            if (this.randans[aleph].charAt(i)=="!") {               imgObj.images["img"+ i].src = "../letters/exclam.gif";               finalize(i);               }            else {               if (this.randans[aleph].charAt(i)=="-") {                  imgObj.images["img"+ i].src = "../letters/hyphen.gif";                  finalize(i);                  }               else {                  if (this.randans[aleph].charAt(i)==".") {                     imgObj.images["img"+ i].src = "../letters/period.gif";                     finalize(i);                     }                  else {                     imgObj.images["img"+ i].src = eval("img" + randans[aleph].charAt(i) + "on.src");                     }                  }               }         }      }   }}            //-->