var lingTEST=new Object();lingTEST.PACK_RATING_AWFUL=1;lingTEST.PACK_RATING_BAD=2;lingTEST.PACK_RATING_AVERAGE=3;lingTEST.PACK_RATING_GOOD=4;lingTEST.PACK_RATING_GREAT=5;lingTEST.isPlaying=false;lingTEST.sounds=new Array();lingTEST.soundTimeout=null;lingTEST.doOnAllDone=null;lingTEST.focusElemID=null;lingTEST.postResultsCalled=false;lingTEST.testStatID=0;lingTEST.isDemo=false;lingTEST.hasBegun=false;lingTEST.numOwned=0;lingTEST.names=new Array();lingTEST.images=new Array();lingTEST.pauseStartTime=0;lingTEST.pauseTotalTime=0;lingTEST.activityID="0";lingTEST.lessonID=null;lingTEST.TRANSLATION=0;lingTEST.LISTENING_COMPREHENSION=1;lingTEST.READING_ALOUD=2;lingTEST.TRANSLATING_ALOUD=3;lingTEST.PRONUNCIATION=4;lingTEST.DICTATION=5;lingTEST.KANJI_TO_KANA=6;lingTEST.AUTOPACK=7;lingTEST.IMAGE=8;lingTEST.SUPPLEMENT=9;lingTEST.VERB=10;lingTEST.IMAGE_PRACTICE=11;lingTEST.QUESTION_ANSWER=14;lingTEST.SYNONYMS=15;lingTEST.ANTONYMS=16;lingTEST.DEFINITIONS=17;lingTEST.PRINCIPAL_PARTS=18;lingTEST.drillNames=new Array();lingTEST.drillNames[lingTEST.TRANSLATION]=lingRESOURCES.write("Test.translation","Translation");lingTEST.drillNames[lingTEST.LISTENING_COMPREHENSION]=lingRESOURCES.write("Test.listening_comprehension","Listening Comprehension");lingTEST.drillNames[lingTEST.READING_ALOUD]=lingRESOURCES.write("Test.reading_aloud","Reading Practice");lingTEST.drillNames[lingTEST.TRANSLATING_ALOUD]=lingRESOURCES.write("Test.translating_aloud","Flashcard Review");lingTEST.drillNames[lingTEST.PRONUNCIATION]=lingRESOURCES.write("Test.pronunciation","Pronunciation");lingTEST.drillNames[lingTEST.DICTATION]=lingRESOURCES.write("Test.dictation","Dictation");lingTEST.drillNames[lingTEST.KANJI_TO_KANA]=lingRESOURCES.write("Test.kanji_to_kana","Chinese Characters");lingTEST.drillNames[lingTEST.AUTOPACK]=lingRESOURCES.write("Test.autopack","Translation");lingTEST.drillNames[lingTEST.IMAGE]=lingRESOURCES.write("Test.image","Picture Flashcards");lingTEST.drillNames[lingTEST.SUPPLEMENT]=lingRESOURCES.write("Test.supplement","Question and Answer");lingTEST.drillNames[lingTEST.VERB]=lingRESOURCES.write("Test.verb","Verb Conjugation");lingTEST.drillNames[lingTEST.IMAGE_PRACTICE]=lingRESOURCES.write("Test.image_practice","Picture Flashcards");lingTEST.drillNames[lingTEST.QUESTION_ANSWER]=lingRESOURCES.write("Test.question_answer","Question and Answer");lingTEST.drillNames[lingTEST.SYNONYMS]=lingRESOURCES.write("Test.synonyms","Synonyms");lingTEST.drillNames[lingTEST.ANTONYMS]=lingRESOURCES.write("Test.antonyms","Antonyms");lingTEST.drillNames[lingTEST.DEFINITIONS]=lingRESOURCES.write("Test.definitions","Definitions");lingTEST.drillNames[lingTEST.PRINCIPAL_PARTS]=lingRESOURCES.write("Test.principalParts","Verb Basics");lingTEST.MAX_DRILL_KIND=lingTEST.PRINCIPAL_PARTS;lingTEST.FLAG_ALLOW_IGNORE_CASE=1<<1;lingTEST.FLAG_ALLOW_IGNORE_ACCENTS=1<<2;lingTEST.FLAG_ALLOW_OVERRIDE=1<<3;lingTEST.FLAG_ALLOW_PRONUNCIATION=1<<4;lingTEST.FLAG_SHOW_PRONUNCIATION_APPLET=1<<5;lingTEST.FLAGS_DEFAULT=lingTEST.FLAG_ALLOW_IGNORE_CASE|lingTEST.FLAG_ALLOW_IGNORE_ACCENTS|lingTEST.FLAG_ALLOW_OVERRIDE|lingTEST.FLAG_ALLOW_PRONUNCIATION|lingTEST.FLAG_SHOW_PRONUNCIATION_APPLET;lingTEST.DRILLFLAG_VERB_1_S=1<<0;lingTEST.DRILLFLAG_VERB_2_S=1<<1;lingTEST.DRILLFLAG_VERB_3_S=1<<2;lingTEST.DRILLFLAG_VERB_1_P=1<<3;lingTEST.DRILLFLAG_VERB_2_P=1<<4;lingTEST.DRILLFLAG_VERB_3_P=1<<5;lingTEST.DRILLFLAG_VERB_ALL_SUBJECTS=lingTEST.DRILLFLAG_VERB_1_S|lingTEST.DRILLFLAG_VERB_2_S|lingTEST.DRILLFLAG_VERB_3_S|lingTEST.DRILLFLAG_VERB_1_P|lingTEST.DRILLFLAG_VERB_2_P|lingTEST.DRILLFLAG_VERB_3_P;lingTEST.DRILLFLAG_SPANISH_PRESENT_INDICATIVE=1<<6;lingTEST.DRILLFLAG_SPANISH_IMPERFECT_INDICATIVE=1<<7;lingTEST.DRILLFLAG_SPANISH_PRETERIT=1<<8;lingTEST.DRILLFLAG_SPANISH_FUTURE=1<<9;lingTEST.DRILLFLAG_SPANISH_POTENTIAL_SIMPLE=1<<10;lingTEST.DRILLFLAG_SPANISH_PRESENT_SUBJUNCTIVE=1<<11;lingTEST.DRILLFLAG_SPANISH_IMPERFECT_SUBJUNCTIVE1=1<<12;lingTEST.DRILLFLAG_SPANISH_IMPERFECT_SUBJUNCTIVE2=1<<13;lingTEST.DRILLFLAG_SPANISH_PERFECT_INDICATIVE=1<<14;lingTEST.DRILLFLAG_SPANISH_PLUSCUAMPERFECTO_INDICATIVE=1<<15;lingTEST.DRILLFLAG_SPANISH_PRETERIT_ANTERIOR=1<<16;lingTEST.DRILLFLAG_SPANISH_FUTURE_PERFECT=1<<17;lingTEST.DRILLFLAG_SPANISH_POTENTIAL_COMPUESTO=1<<18;lingTEST.DRILLFLAG_SPANISH_PERFECT_SUBJUNCTIVE=1<<19;lingTEST.DRILLFLAG_SPANISH_PLUSCUAMPERFECTO_SUBJUNCTIVE1=1<<20;lingTEST.DRILLFLAG_SPANISH_PLUSCUAMPERFECTO_SUBJUNCTIVE2=1<<21;lingTEST.DRILLFLAG_SPANISH_IMPERATIVE=1<<22;lingTEST.DRILLFLAG_SPANISH_FUTURE_SUBJUNCTIVE=1<<23;lingTEST.DRILLFLAG_SPANISH_FUTURE_PERFECT_SUBJUNCTIVE=1<<24;lingTEST.DRILLFLAG_FRENCH_PRESENT_INDICATIVE=1<<6;lingTEST.DRILLFLAG_FRENCH_IMPERFECT_INDICATIVE=1<<7;lingTEST.DRILLFLAG_FRENCH_PASSE_SIMPLE=1<<8;lingTEST.DRILLFLAG_FRENCH_FUTURE=1<<9;lingTEST.DRILLFLAG_FRENCH_CONDITIONAL=1<<10;lingTEST.DRILLFLAG_FRENCH_PRESENT_SUBJUNCTIVE=1<<11;lingTEST.DRILLFLAG_FRENCH_IMPERFECT_SUBJUNCTIVE=1<<12;lingTEST.DRILLFLAG_FRENCH_PASSE_COMPOSE=1<<13;lingTEST.DRILLFLAG_FRENCH_PLUSQUEPARFAIT_INDICATIVE=1<<14;lingTEST.DRILLFLAG_FRENCH_PASSE_ANTERIOR=1<<15;lingTEST.DRILLFLAG_FRENCH_FUTURE_ANTERIOR=1<<16;lingTEST.DRILLFLAG_FRENCH_CONDITIONAL_PASSE=1<<17;lingTEST.DRILLFLAG_FRENCH_PASSE_SUBJUNCTIVE=1<<18;lingTEST.DRILLFLAG_FRENCH_PLUSQUEPARFAIT_SUBJUNCTIVE=1<<19;lingTEST.DRILLFLAG_FRENCH_IMPERATIVE=1<<20;lingTEST.DRILLFLAG_GERMAN_PRESENT=1<<6;lingTEST.DRILLFLAG_GERMAN_NARRATIVE_PAST=1<<7;lingTEST.DRILLFLAG_GERMAN_CONVERSATIONAL_PAST=1<<8;lingTEST.DRILLFLAG_GERMAN_PAST_PERFECT=1<<9;lingTEST.DRILLFLAG_GERMAN_FUTURE=1<<10;lingTEST.DRILLFLAG_GERMAN_FUTURE_PERFECT=1<<11;lingTEST.DRILLFLAG_GERMAN_SUBJUNCTIVE_PRESENT=1<<12;lingTEST.DRILLFLAG_GERMAN_SUBJUNCTIVE_PRESENT_PERFECT=1<<13;lingTEST.DRILLFLAG_GERMAN_SUBJUNCTIVE_PAST=1<<14;lingTEST.DRILLFLAG_GERMAN_SUBJUNCTIVE_PAST_PERFECT=1<<15;lingTEST.DRILLFLAG_GERMAN_SUBJUNCTIVE_FUTURE=1<<16;lingTEST.DRILLFLAG_GERMAN_SUBJUNCTIVE_FUTURE_PERFECT=1<<17;lingTEST.DRILLFLAG_GERMAN_CONDITIONAL_PRESENT=1<<18;lingTEST.DRILLFLAG_GERMAN_CONDITIONAL_PERFECT=1<<19;lingTEST.DRILLFLAG_GERMAN_IMPERATIVE=1<<20;lingTEST.DRILLFLAG_ITALIAN_PRESENT_INDICATIVE=1<<6;lingTEST.DRILLFLAG_ITALIAN_IMPERFECT=1<<7;lingTEST.DRILLFLAG_ITALIAN_PAST_ABSOLUTE=1<<8;lingTEST.DRILLFLAG_ITALIAN_FUTURE=1<<9;lingTEST.DRILLFLAG_ITALIAN_PRESENT_CONDITIONAL=1<<10;lingTEST.DRILLFLAG_ITALIAN_PRESENT_SUBJUNCTIVE=1<<11;lingTEST.DRILLFLAG_ITALIAN_IMPERFECT_SUBJUNCTIVE=1<<12;lingTEST.DRILLFLAG_ITALIAN_PRESENT_PERFECT=1<<13;lingTEST.DRILLFLAG_ITALIAN_PAST_PERFECT=1<<14;lingTEST.DRILLFLAG_ITALIAN_PAST_ANTERIOR=1<<15;lingTEST.DRILLFLAG_ITALIAN_FUTURE_PERFECT=1<<16;lingTEST.DRILLFLAG_ITALIAN_PAST_CONDITIONAL=1<<17;lingTEST.DRILLFLAG_ITALIAN_PAST_SUBJUNCTIVE=1<<18;lingTEST.DRILLFLAG_ITALIAN_PAST_PERFECT_SUBJUNCTIVE=1<<19;lingTEST.DRILLFLAG_ITALIAN_IMPERATIVE=1<<20;lingTEST.isTwoLangDrill=function(A){return A==lingTEST.TRANSLATION||A==lingTEST.LISTENING_COMPREHENSION||A==lingTEST.TRANSLATING_ALOUD||A==lingTEST.AUTOPACK};lingTEST.cacheImages=function(B){for(var A=0;A<B.length;A++){if(B[A][5]!=null){lingTEST.images[A*2]=new Image();lingTEST.images[A*2].src="tupleImages/"+B[A][5]}if(B[A][6]!=null){lingTEST.images[A*2+1]=new Image();lingTEST.images[A*2+1].src="tupleImages/"+B[A][6]}}};lingTEST.isPluralGeneric=function(A){return(A.indexOf("(m pl)")>0||A.indexOf("(f pl)")>0||A.indexOf("(nt pl)")>0||A.indexOf("(pl)")>0)};lingTEST.isPlural0=function(A){return lingTEST.isPluralGeneric(A)||A.indexOf("(\u062c)")>0};lingTEST.isSing0=function(A){return !lingTEST.isPlural17(A)};lingTEST.isPlural17=function(A){return lingTEST.isPluralGeneric(A)};lingTEST.isSing17=function(A){if(lingTEST.isPlural17(A)){return false}var B=A.substring(0,4);return(B=="die "||B=="der "||B=="das ")};lingTEST.isPlural39=function(A){return lingTEST.isPluralGeneric(A)};lingTEST.isSing39=function(A){return !lingTEST.isPlural39(A)};lingTEST.getSings=function(C,E){var A=lingTEST["isSing"+C];if(!A){return E}var B=new Array();for(var D=0;D<E.length;D+=4){if(A.call(null,E[D+1])){B[B.length]=E[D];B[B.length]=E[D+1];B[B.length]=E[D+2];B[B.length]=E[D+3]}}return B};lingTEST.getPlurals=function(B,E){var A=lingTEST["isPlural"+B];if(!A){return E}var D=new Array();for(var C=0;C<E.length;C+=4){if(A.call(null,E[C+1])){D[D.length]=E[C];D[D.length]=E[C+1];D[D.length]=E[C+2];D[D.length]=E[C+3]}}return D};lingTEST.getIsCorrectSing=function(C,G,H,B,E,F,A,D){return lingTEST.getIsCorrect(G,lingTEST.getSings(C,H),B,E,F,A,D)};lingTEST.getIsCorrectPlural=function(C,D,H,B,F,G,A,E){return lingTEST.getIsCorrect(D,lingTEST.getPlurals(C,H),B,F,G,A,E)};lingTEST.getIsCorrect=function(J,H,G,I,B,F,C){var E=trim(J);var A;E=lingTEXT.stripArabic(lingTEXT.stripHebrew(normalizePinyin(normalizeFullHalf(E))));if(G){E=E.toUpperCase()}if(I){E=stripAccents(E)}if(C){E=stripPunctuation(E)}E=lingWRITE.normalize(E);if(B){for(var D=0;D<H.length;D+=4){A=lingTEXT.stripArabic(lingTEXT.stripHebrew(normalizePinyin(normalizeFullHalf(H[D+1]))));if(G){A=A.toUpperCase()}if(I){A=stripAccents(A)}if(C){A=stripPunctuation(A)}A=lingWRITE.normalize(A);if(matches(E,A)){return H[D+1]}}}if(F){for(var D=0;D<H.length;D+=4){A=normalizePinyin(H[D+2]);if(A.length>0){if(G){A=A.toUpperCase()}if(I){A=stripAccents(A)}if(C){A=stripPunctuation(A)}A=lingWRITE.normalize(A);if(matches(E,A)){return H[D+1]}}}}return null};lingTEST.showPlural=function(C,H){var A=lingTEST["isPlural"+C];var B=lingTEST["isSing"+C];if(B&&A){var E=false;var G=false;for(var D=0;D<H.length;D+=4){var F=H[D+1];if(!G&&A.call(null,F)){if(E){return true}G=true}else{if(!E&&B.call(null,F)){if(G){return true}E=true}}}}return false};lingTEST.randomizeList=function(A){for(var B=0;B<A.length;B++){var C=Math.floor(Math.random()*A.length);temp=A[B];A[B]=A[C];A[C]=temp}};lingTEST.getResultData=function(A){var D=new Object();var E="";var C=0;for(var B=A.length-1;B>=0;B--){if(A[B].numRight>0||A[B].numWrong>0){if(C++>0){E+=","}E+=A[B][0]+","+(A[B].numRight+A[B].numWrong)+","+A[B].numWrong+","+A[B].numOverridden+","+A[B].timeElapsed}}D.str=E;D.count=C;return D};lingTEST.postResults=function(D,O,L,N,A,E,M,H,J,C,K,I,B){if(!lingTEST.postResultsCalled){lingTEST.postResultsCalled=true;var G=lingTEST.getResultData(N);var F={testType:D,fromLanguageID:O,toLanguageID:L,savedTuples:N,timeElapsed:A,numTestFlashcards:E,numSkipped:M,numOverridden:H,seed:J,packItemIDs:C,assignmentID:K,activityID:I};lingAPI.drillPostResults(D,O,L,A,M,H,E,J,G.count,C,K,I,lingTEST.homeworkID,lingTEST.uuid,G.str,B,null,F)}};lingTEST.doOnCheck=function(B,A){lingAPI.setUserPrefs(A+"="+B.checked);var C=xGetElementById("txtAnswer");try{C.focus()}catch(D){}};var isInternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write('<script language="VBScript">\n');document.write("On Error Resume Next\n");document.write("Sub linguapi_FSCommand(ByVal command, ByVal args)\n");document.write("  call linguapi_DoFSCommand(command, args)\n");document.write("end sub\n");document.write("<\/script>\n")}lingTEST.onSoundDone=function(B,A){if(B=="soundDone"||B=="soundFailed"){lingTEST.isPlaying=false;lingTEST.soundTimeout=setTimeout(lingTEST.playNow,500)}};lingTEST.playItemAudio=function(A,B){lingTEST.sounds[lingTEST.sounds.length]=A;if(B&&lingTEST.focusElemID){var C=xGetElementById(lingTEST.focusElemID);if(C){C.focus()}}};lingTEST.flushSounds=function(){lingTEST.sounds.length=0;if(lingTEST.soundTimeout!=null){clearTimeout(lingTEST.soundTimeout)}lingTEST.isPlaying=false};lingTEST.playNow=function(){if(lingTEST.sounds.length>0){lingTEST.isPlaying=true;lingTEST.soundTimeout=null;var A=lingTEST.sounds.shift();playItemAudio(A,lingTEST.onSoundDone)}};lingTEST.doEndTest=function(){lingTEXT.setAllowBackspace(true);if(lingTEST.isPreview){window.close();return }if(lingDRILL.current==null||confirm(lingRESOURCES.write("Drill.confirm_doEndTest","Are you sure you want to quit the drill before you're done?"))){hideElement("divEndTestButton");hideElement("btnPause");hideElement("divPaused");if(lingDRILL.timeInterval&&lingDRILL.timeInterval!=null){clearInterval(lingDRILL.timeInterval);lingDRILL.timeInterval=null}var B=lingDRILL.tuples.length;if(lingDRILL.current!=null){B++}if(lingDRILL.numRight>0||lingDRILL.numWrong>0){if(!lingDRILL.isLoggedIn&&lingTEST.lessonID==null){var A=0;var E=0;for(var C=0;C<lingDRILL.savedTuples.length;C++){if(lingDRILL.savedTuples[C].numRight>0||lingDRILL.savedTuples[C].numWrong>0){E++;if(lingDRILL.savedTuples[C].numRight==1&&lingDRILL.savedTuples[C].numWrong==0){A++}}}if(lingTEST.isDemo){location.replace("QuickDemo.do")}else{var D=lingDRILL.packItemIDs.split(",");if(D.length>0){location.replace("List.do?packItemID="+D[0])}else{location.replace("Home.do")}}}else{hideElement("divDrill");showElement("divEndTest");lingTEST.postResults(lingDRILL.testType,lingDRILL.fromLanguageID,lingDRILL.toLanguageID,lingDRILL.savedTuples,lingTEST.getTimeElapsed(),lingDRILL.numTestFlashcards,B,lingDRILL.numOverridden,lingDRILL.seed,lingDRILL.packItemIDs,lingDRILL.assignmentID,lingTEST.activityID,lingTEST.postResultsCB)}}else{if(lingTEST.isDemo){location.replace("QuickDemo.do")}else{if(lingDRILL.assignmentID>0){location.replace("Course.do")}else{if(lingTEST.lessonID!=null){lingTEST.returnToLesson()}else{var D=lingDRILL.packItemIDs.split(",");if(D.length>0){location.replace("List.do?packItemID="+D[0])}else{location.replace("Home.do")}}}}}}};lingTEST.postResultsCB=function(){var A=this.req.responseXML.documentElement;if(A.tagName=="SUCCESS"){lingTEST.testStatID=A.getAttribute("testStatID");lingTEST.resultID=A.getAttribute("IIR");if(lingTEST.lessonID!=null||lingTEST.numOwned>0||lingDRILL.packItemIDs.indexOf(",")>0||lingTEST.isDemo){if(lingDRILL.returnURL!=null&&lingDRILL.returnURL.length>0){location.replace(lingDRILL.returnURL)}else{if(lingTEST.lessonID!=null){if(lingDRILL.current==null){lingTEST.showGotoNextActivity()}else{lingTEST.returnToLesson()}}else{location.replace("Results.do?resultID="+lingTEST.resultID+"&demo="+lingTEST.isDemo)}}}else{hideElement("divEndTest");showElement("divPackRate")}}};lingTEST.packRateCB=function(){if(lingTEST.lessonID!=null){if(lingDRILL.current==null){lingTEST.showGotoNextActivity()}else{lingTEST.returnToLesson()}}else{location.replace("Results.do?resultID="+lingTEST.resultID+"&demo="+lingTEST.isDemo)}};lingTEST.packRate=function(F){var D=-1;for(var E=lingTEST.PACK_RATING_AWFUL;E<=lingTEST.PACK_RATING_GREAT;E++){if(xGetElementById("rating"+E).checked){D=E;break}}if(D<0){if(lingTEST.lessonID!=null){if(lingDRILL.current==null){lingTEST.showGotoNextActivity()}else{lingTEST.returnToLesson()}}else{location.replace("Results.do?resultID="+lingTEST.resultID+"&demo="+lingTEST.isDemo)}}else{var C=xGetElementById("wrong").checked;var A=xGetElementById("typos").checked;var G=xGetElementById("easy").checked;var J=xGetElementById("hard").checked;var B=xGetElementById("short").checked;var I=xGetElementById("long").checked;var H=xGetElementById("comment").value;lingAPI.packRate(F,D,C,A,G,J,B,I,lingTEST.testStatID,H,lingTEST.packRateCB,lingTEST.packRateCB)}};lingTEST.noPackRate=function(){if(lingTEST.lessonID!=null){if(lingDRILL.current==null){lingTEST.showGotoNextActivity()}else{lingTEST.returnToLesson()}}else{location.replace("Results.do?resultID="+lingTEST.resultID+"&demo="+lingTEST.isDemo)}};lingTEST.getTimeElapsed=function(){return(new Date()).getTime()-lingDRILL.startTime-lingTEST.getPauseTime()};lingTEST.pause=function(B){setVisibility("btnPause",!B);setVisibility("divDrill",!B);setVisibility("divPaused",B);if(B){lingTEST.pauseStartTime=(new Date()).getTime()}else{if(lingTEST.pauseStartTime!=0){var A=((new Date()).getTime()-lingTEST.pauseStartTime);if(lingDRILL.current){lingDRILL.current.startTime+=A}lingTEST.pauseTotalTime+=A;lingTEST.pauseStartTime=0}if(xGetElementById("txtAnswer")){xGetElementById("txtAnswer").focus()}}};lingTEST.getPauseTime=function(){var A=lingTEST.pauseTotalTime;if(lingTEST.pauseStartTime!=0){A+=((new Date()).getTime()-lingTEST.pauseStartTime)}return A};lingTEST.doEndPreview=function(){window.close()};lingTEST.showGotoNextActivity=function(){hideElement("divEndTest");showElement("divNextActivity")};lingTEST.gotoNextActivity=function(){location.replace("Lesson.do?lessonID="+lingTEST.lessonID+"&lastActivityID="+lingTEST.activityID)};lingTEST.returnToLesson=function(){location.replace("Lesson.do")};lingTEST.openHelp=function(B,A){window.open("Help"+B+".do"+(A?"?"+A:""),"Help"+B,"width=440,height=350,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingTEST.gotoNextActivity=function(){var A="";if(lingDRILL.prevName&&lingDRILL.prevName.length>0){A+="&prevName="+encodeUTF8(lingDRILL.prevName)}if(lingDRILL.returnURL&&lingDRILL.returnURL.length>0){A+="&returnURL="+encodeUTF8(lingDRILL.returnURL)}location.replace("Lesson.do?lessonID="+lingTEST.lessonID+"&lastActivityID="+lingTEST.activityID+A)};