'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function DisplayExercise(){ //Build the output string var OutString = ''; OutString += ''; OutString += '
'; OutString += '
'; OutString += TitleCode; OutString += Buttons1; OutString += BuiltExercise; OutString += Buttons2; OutString += BuiltClues; OutString += NavBar; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame BottomFrame.document.clear(); BottomFrame.document.open(); BottomFrame.document.write(OutString); BottomFrame.document.close(); } function BuildClue(ClueNum,x,y,Across){ var OutString = ''; if (Across == true){ if (ClueNum >= A.length){ return ''; } if (A[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j= D.length){ return ''; } if (D[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i 0){ OutString += '
'; } OutString = OutString + 'vertical ' + ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } L = new Array(); L[0] = new Array('','','','','','D','E','','Q','U','E','M','','','','','','','',''); L[1] = new Array('','','','F','','E','','','U','','','','','','','','L','H','E','S'); L[2] = new Array('\u00D3','','','E','X','I','S','T','A','','L','E','I','A','','','H','','','E'); L[3] = new Array('P','','','C','','','','','N','','I','','','','','D','O','U','','M'); L[4] = new Array('T','','','H','','','M','','D','','B','','','','','','','','','P'); L[5] = new Array('I','N','T','E','R','V','E','I','O','','E','','','','','F','','S','','R'); L[6] = new Array('M','','R','','','','U','','','T','R','A','R','\u00C1','','I','','E','L','E'); L[7] = new Array('O','','O','','','','','','','','T','','','','','Z','','N','',''); L[8] = new Array('','D','U','L','C','\u00CD','S','S','I','M','O','','','','','E','','\u00C3','',''); L[9] = new Array('','','X','','','','','','','','','','','D','I','S','P','O','R',''); L[10] = new Array('','','E','S','P','E','R','A','N','\u00C7','A','','','','','S','','','',''); L[11] = new Array('P','\u00D4','R','','','','','','','','','M','A','N','T','E','N','H','A',''); L[12] = new Array('','','A','C','E','I','T','A','D','O','','','','\u00C3','','','','','',''); L[13] = new Array('','','M','','','','','L','','','','','S','O','B','','','','',''); L[14] = new Array('','C','','','','','','C','O','N','T','R','A','','','','','','',''); L[15] = new Array('','O','B','T','I','N','H','A','','','','','L','','','L','','','',''); L[16] = new Array('U','M','','I','','','','N','','','P','','V','E','N','H','A','','',''); L[17] = new Array('','A','','','','T','','\u00C7','','F','A','\u00C7','O','','','O','','','',''); L[18] = new Array('','','P','U','D','E','R','A','M','','R','','','P','U','S','','','',''); L[19] = new Array('','','','','','M','','','E','','A','T','\u00C9','','','','','','',''); C = new Array(); C[0] = new Array(0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,5); C[2] = new Array(6,0,0,7,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(11,0,12,0,0,0,0,0,0,0,0,0,0,0,0,13,0,14,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,16,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0); C[10] = new Array(0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(20,0,0,0,0,0,0,0,0,0,0,21,0,22,0,0,0,0,0,0); C[12] = new Array(0,0,23,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0); C[14] = new Array(0,26,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,28,0,29,0,0,0,0,0,0,0,0,0,0,0,30,0,0,0,0); C[16] = new Array(31,0,0,0,0,0,0,0,0,0,32,0,33,0,0,0,0,0,0,0); C[17] = new Array(0,0,0,0,0,34,0,0,0,35,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,36,0,0,0,0,0,37,0,0,0,0,38,0,0,0,0,0,0); C[19] = new Array(0,0,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,0,0,0); G = new Array(); G[0] = new Array('','','','','','','','','','','','','','','','','','','',''); G[1] = new Array('','','','','','','','','','','','','','','','','','','',''); G[2] = new Array('','','','','','','','','','','','','','','','','','','',''); G[3] = new Array('','','','','','','','','','','','','','','','','','','',''); G[4] = new Array('','','','','','','','','','','','','','','','','','','',''); G[5] = new Array('','','','','','','','','','','','','','','','','','','',''); G[6] = new Array('','','','','','','','','','','','','','','','','','','',''); G[7] = new Array('','','','','','','','','','','','','','','','','','','',''); G[8] = new Array('','','','','','','','','','','','','','','','','','','',''); G[9] = new Array('','','','','','','','','','','','','','','','','','','',''); G[10] = new Array('','','','','','','','','','','','','','','','','','','',''); G[11] = new Array('','','','','','','','','','','','','','','','','','','',''); G[12] = new Array('','','','','','','','','','','','','','','','','','','',''); G[13] = new Array('','','','','','','','','','','','','','','','','','','',''); G[14] = new Array('','','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='Preposição'; A[2]='Pronome interrogativo'; A[4]='Pronome pessoal'; A[7]='Pres. conj. verbo existir'; A[8]='Pres. conj. verbo ler'; A[9]='Pres. ind. verbo dar'; A[11]='Pret. perfeito verbo intervir'; A[15]='Fut. imp. verbo trazer'; A[16]='Pronome pessoal'; A[17]='Superlativo '; A[18]='Ter à disposição'; A[19]='Substantivo abstracto'; A[20]='Infinitivo '; A[21]='Pres. conj. verbo manter'; A[23]='Particípio regular '; A[25]='Preposição'; A[27]='Preposição'; A[28]='Pret. imperfeito verbo obter'; A[31]='Artigo indefinido'; A[33]='Pres. conj. verbo vir'; A[35]='Pres. ind. verbo fazer'; A[36]='Pret. perfeito verbo poder'; A[38]='Pret. perfeito verbo pôr'; A[39]='Preposição'; D = new Array(); D[1]='Pret. perfeito verbo dar'; D[2]='Advérbio'; D[3]='Pres. conjuntivo verbo fechar'; D[4]='Pronome pessoal'; D[5]='Advérbio de tempo'; D[6]='Superlativo de bom'; D[8]='Forma irregular particípio duplo'; D[10]='Pronome pessoal'; D[12]='Pret. perfeito verbo trazer'; D[13]='Imp. conj. verbo fazer'; D[14]='Advérbio de exclusão'; D[22]='Advérbio de negação'; D[24]='Pres. ind. verbo alcançar'; D[25]='Particípio verbal e advérbio'; D[26]='Pres. conj. verbo comer'; D[29]='Pronome pessoal'; D[30]='Pronome pessoal'; D[32]='Preposição'; D[34]='Pres. ind. verbo ter'; D[37]='Pronome pessoal'; function StartUp(){ BuildExercise(); WriteFeedback(Instructions); DisplayExercise(); } function CheckAnswers(){ var AllCorrect = true; var TotLetters = 0; var CorrectLetters = 0; //Check each letter for (var i=0; i'; } Output += YourScoreIs + ' ' + Score + '%.
'; if (AllCorrect == false){ Output += '
' + Incorrect; Penalties++; } BuildExercise(); WriteFeedback(Output); DisplayExercise(); } function DoNothing(){} function Blank(){ return '
©Half-Baked Software. Loading...
Hosted by www.Geocities.ws

'; } //--> //]]>
Hosted by www.Geocities.ws

1