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

'; //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){ 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('','J','E','F','F','E','R','S','O','N','','','','','','','','C','L','I','N','T','O','N'); L[1] = new Array('','','I','','','','','','','','','','','H','','','','O','','','','','',''); L[2] = new Array('W','A','S','H','I','N','G','T','O','N','','','M','A','D','I','S','O','N','','','W','',''); L[3] = new Array('','','E','','','','','','','','','','','Y','','','','L','','','','I','',''); L[4] = new Array('V','A','N','B','U','R','E','N','','','T','Y','L','E','R','','L','I','N','C','O','L','N',''); L[5] = new Array('','','H','','','','','','C','','','','','S','','','','D','','','','S','',''); L[6] = new Array('F','R','O','O','S','E','V','E','L','T','','','','','F','','','G','','','','O','',''); L[7] = new Array('','','W','','','','','','E','','','M','C','K','I','N','L','E','Y','','','N','','C'); L[8] = new Array('','','E','','F','','','','V','','','','','','L','','','','','','M','','','A'); L[9] = new Array('','T','R','O','O','S','E','V','E','L','T','','','','L','J','O','H','N','S','O','N','','R'); L[10] = new Array('','','','','R','','','','L','','','','','','M','','','','','','N','','','T'); L[11] = new Array('','','','','D','','','','A','J','O','H','N','S','O','N','','','B','','R','','','E'); L[12] = new Array('','','J','','','P','','','N','','','','','','R','','','','H','O','O','V','E','R'); L[13] = new Array('','G','A','R','F','I','E','L','D','','K','E','N','N','E','D','Y','','A','','E','','',''); L[14] = new Array('','','C','','','E','','','','','','','I','','','','','','R','','','','',''); L[15] = new Array('','','K','','T','R','U','M','A','N','','','X','','','W','H','A','R','R','I','S','O','N'); L[16] = new Array('B','U','S','H','','C','','','D','','','P','O','L','K','','','','I','','','','',''); L[17] = new Array('','','O','','R','E','A','G','A','N','','','N','','','','','','S','','','','',''); L[18] = new Array('','','N','','','','R','','M','','','','','','','T','','','O','','','','',''); L[19] = new Array('','','','T','A','F','T','','S','','','B','U','C','H','A','N','A','N','','','','',''); L[20] = new Array('','','','','','','H','','','','','','','','','Y','','','','','','','',''); L[21] = new Array('','','','','','','U','','','','','','','','','L','','','','','','','',''); L[22] = new Array('','','','','','G','R','A','N','T','','','','','','O','','','','','','','',''); L[23] = new Array('','','','','','','','','','','','','','H','A','R','D','I','N','G','','','',''); C = new Array(); C[0] = new Array(0,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(5,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,7,0,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(8,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,10,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(12,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,15); C[8] = new Array(0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0); C[9] = new Array(0,18,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0); C[12] = new Array(0,0,22,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0); C[13] = new Array(0,25,0,0,0,0,0,0,0,0,26,0,27,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,28,0,0,0,29,0,0,0,0,0,0,30,0,0,0,0,0,0,0,0); C[16] = new Array(31,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(0,0,0,0,33,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,0,0,0,0,0,0,0,0); C[19] = new Array(0,0,0,36,0,0,0,0,0,0,0,37,0,0,0,0,0,0,0,0,0,0,0,0); C[20] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[21] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[22] = new Array(0,0,0,0,0,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[23] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,39,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('','','','','','','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[20] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[21] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[22] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); G[23] = new Array('','','','','','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='idealized the United States as a world of farmers'; A[3]='able foreign-policy administrator known for his domestic scandals'; A[5]='Father of Our Country; warned against entangling alliances'; A[6]='writer of the Virginia Resolutions and supporter of compact government'; A[8]='inherited a coming depression from Jackson\'s policies'; A[9]='became a president without a party after he refused to support the Whig platform'; A[10]='led the United States through the Civil War'; A[12]='served the longest of any presidents; the only president to break the two-term tradition'; A[14]='expansionist president of the Spanish-American War, assassinated'; A[18]='first president to visit a foreign country in office'; A[19]='president who became very unpopular because of Vietnam'; A[20]='missed impeachment by one vote'; A[24]='believed in trickle-down economics to bring America out of the Depression, earned a bad reputation from his response to the Bonus Expeditionary Force'; A[25]='assassinated by a deranged office-seeker'; A[26]='young, charismatic president who was assassinated in Dallas'; A[28]='author of a containment doctrine to provide aid to Turkey and Greece to fight Communism'; A[30]='served the shortest presidential term ever (two weeks) before he died in office'; A[31]='president during the Persian Gulf Crisis'; A[32]='won California in the Mexican War and settled the dispute over Oregon'; A[33]='former movie actor turned presiden'; A[36]='a former chief justice of the Supreme Court, inherited T. Roosevelt\'s policies'; A[37]='hopelessly separated the Democrats by antagonizing Northern Douglas Democrats'; A[38]='very popular Civil War general, but corrupt administrator'; A[39]='led a presidency overrun with corrupt officials; promoted a return to normalcy'; D = new Array(); D[2]='president during the McCarthy era'; D[3]='president during the Jazz Age, promoted heavy isolationism'; D[4]='elected by compromise, ended Reconstruction in the South'; D[7]='first president to hold regular press conferences'; D[11]='the only president to serve two nonconsecutive terms'; D[13]='bland president elected because he had no views on the Kansas Territory'; D[15]='portrayed himself as an outsider; greatest foreign-policy achievement was the Camp David Accords'; D[16]='won neither the vice-presidency nor the presidency by election'; D[17]='began a policy of European hands-off concerning the Americas'; D[21]='Civil War general, president of the "Billion Dollar Congress"'; D[22]='great believer in the spoils system and democracy for the common man'; D[23]='presidential supporter of the controversial Kansas-Nebraska Act'; D[27]='resigned because of impending impeachment'; D[29]='promoted diplomatic peace with France, successfully averted war, pioneered the relations that led to the Louisiana Purchase'; D[34]='promoted civil service reform after Garfield\'s assassination'; D[35]='popular hero from the Mexican War, supporter of the Compromise of 1850'; 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...
Hosted by www.Geocities.ws

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

1