Make your own free website on Tripod.com
'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; 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 += '
'; 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){ AcrossClues += BuildClue(C[i][j], i, j, true); DownClues += BuildClue(C[i][j], i, j, false); } } } OutString += ''; OutString += CluesAcross + '

' + AcrossClues + '

'; OutString += ''; OutString += CluesDown + '

' + DownClues + '
' OutString += ''; BuiltClues = OutString; } function ShowClue(ClueNum,x,y){ var OutString = ''; var AnsLength = 0; var i; var j; CurrBoxElement = ClueNum; if (A[ClueNum] != null){ OutString = OutString + 'Across: ' + 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 0){ OutString += '
'; } OutString = OutString + 'Down: ' + 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('M','','','','','N','','','','','','','','',''); L[1] = new Array('O','','','','','A','','','','','','','','','T'); L[2] = new Array('D','','','','','T','','','B','','','','','','U'); L[3] = new Array('E','','','','','U','','','R','','','','','','N'); L[4] = new Array('R','','B','O','U','R','G','E','O','I','S','I','E','','N'); L[5] = new Array('N','','','','','E','','','K','','','','','','E'); L[6] = new Array('I','','','','','','','','E','','','','','','L'); L[7] = new Array('S','U','P','P','O','R','T','I','N','G','W','A','L','L','S'); L[8] = new Array('M','','','','','','','','C','','','','','',''); L[9] = new Array('','','','','','','','','E','','','','','',''); L[10] = new Array('W','R','O','U','G','H','T','I','R','O','N','','','',''); L[11] = new Array('','','','','A','','','','A','','','','','',''); L[12] = new Array('','','','','U','','D','O','M','E','N','E','C','H','E'); L[13] = new Array('','','','','D','','','','I','','','','','',''); L[14] = new Array('','','P','U','I','G','','','C','','','','','',''); C = new Array(); C[0] = new Array(1,0,0,0,0,2,0,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,3); C[2] = new Array(0,0,0,0,0,0,0,0,4,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); C[4] = new Array(0,0,5,0,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(6,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(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,0,0); C[10] = new Array(7,0,0,0,8,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,9,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,10,0,0,0,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('','','','','','','','','','','','','','',''); A = new Array(); A[5]='The social class who supported the Modernist movement.'; A[6]='What Gaudi did not use in the construction of the Milla House.'; A[7]='One of the materiasl used for decoration in Modernist buildings.'; A[9]='i Montaner'; A[10]='The youngest of the three architects mentioned in the video.'; D = new Array(); D[1]='Refers to the ample aesthetic artistic movement that developed throughout Europe between 1890 and 1910, with geographic variations.'; D[2]='Most of the ornamentation in the Modernist buildings was inspired in this.'; D[3]='What made the Hospital of Santa Creu i Sant Pau the best functioning hospital of its time.'; D[4]='Material used by Gaudi in most of his constructions.'; D[8]='The best-known architect of Spanish Modernism.'; function StartUp(){ BuildExercise(); BuildCompleteClues(); 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...'; } //--> //]]>