//Enter total number of questions:var totalquestions=10//Enter the solutions corresponding to each question:var correctchoices=new Array()correctchoices[1]='c'correctchoices[2]='c'correctchoices[3]='a'correctchoices[4]='c'correctchoices[5]='b'correctchoices[6]='d'correctchoices[7]='a'correctchoices[8]='b'correctchoices[9]='d'correctchoices[10]='c'var details=new Array()details[1]="1) c. 35 years old.  "details[2]="2) c. It was a compromise solution for choosing the President.  "details[3]="3) a. Aaron Burr.  "details[4]="4) c. The Civil War hadn't ended.  "details[5]="5) b. parades with log cabins and hard cider."details[6]="6) d.  a special electoral commission.  "details[7]="7) a. James K. Polk.  "details[8]="8) b. Modern campaign buttons.  "details[9]="9) d. The District of Columbia.  "details[10]="10) c. The Chicago Tribune.  "var explain=new Array()explain[1]="You must also be a natural born American citizen and have been a resident of the U. S. for at least 14 years. To become Vice-President, you must meet the same qualifications."explain[2]="Proposals for electing the President by a vote of Congress, by state legislatures or by popular vote were turned down at the Constitutional Convention.  It was felt that the President should be independent of and not be appointed by Congress; if state legislatures were to appoint the President, federal authority might be challenged; and without widespread communications at the time, the founding fathers decided that the voters would vote only for candidates known to them from their own state, which would favor the states with larger populations.  And so a compromise solution was agreed to, whereby electors are chosen as representatives of the people to vote for President.  The number of electors is equal to the number of Representatives and Senators of a state."explain[3]="In our early elections, each elector voted for two candidates.  The runner-up would become Vice-President.  Former U.S. Senator Aaron Burr of New York, who was considered the Vice-Presidential candidate of Jefferson's Republican Party, (and was Jefferson's choice for Vice-President  because he could carry New York for the Republicans) tied Jefferson.  Each received 73 electoral votes.  Believing he had a chance to win the Presidency, Burr refused to defer to Jefferson.  According to the Constitution, in the event of a tie, the House of Representatives decides the winner.  It took 36 ballots before the election was decided by the House - in favor of Jefferson - on February 17, 1801.  Burr, in second place, became Vice-President.  Incumbent John Adams received 65 electoral votes.  This experience led to the passage of the Twelfth Amendment, which provides for separate ballots for President and Vice-President in the Electoral College.  With the development of political parties, candidates ran as a team after 1800."explain[4]="Lincoln's opponent, General George B. McClellan, had been replaced by Lincoln during the war for his failure to pursue the retreating army of Confederate General Robert E. Lee after the battle of Antietam in September, 1862.  McClellan was favored to win at the outset of the 1864 Presidential campaign.  However, just when Lincoln had lost almost all hope of winning, the Union Army achieved major gains, and Lincoln went on to win reelection."explain[5]="Emulating the campaign of Andrew Jackson, the Whigs portrayed their candidate General William Henry Harrison as a military hero and as a \"man of the people.\"  They claimed Harrison lived in a humble log cabin.  In fact, he was raised in a well-to-do family and lived in a more-than-comfortable home!  During the campaign of 1840, log cabins were transported in parades through cities and towns for Harrison, along with barrels of hard cider (a drink as popular as beer is today) for everyone.  And giant balls thirteen feet in diameter (for the thirteen original states) were rolled from town to town for Harrison.  \"Keep the ball rolling!\" was the chant!"explain[6]="The initial electoral vote in 1876 was 184 to 165, favoring Democrat Samuel  J. Tilden over Republican Rutherford B. Hayes.  However, Tilden's total was one vote short of a majority.  In addition, twenty more electoral votes were in question: seven from South Carolina, eight from Louisiana, four from Florida and one of Oregon's three votes.  Two sets of results were sent to the Electoral College from Louisiana and South Carolina - one for Tilden and one for Hayes - and three sets from Florida, two for Tilden and one for Hayes.  The Constitution does not provide for settlement of disputed votes; Congress finally agreed to form a commission of five Representatives, five Senators and five Supreme Court Justices - eight Republicans to seven Democrats.  They voted along party lines in favor of Hayes on every major issue, and, by a vote of eight to seven, awarded him all of the twenty disputed votes.  Hayes became the 19th President."explain[7]="A \"dark horse\" candidate is someone who is believed unlikely to win nomination or election, but is chosen - often as a compromise - when more well-known candidates cannot be agreed upon by party leaders.  The term \"dark horse,\" which originally referred to a race horse that was unknown or whose qualities were concealed, made its way into the English language in the early 1800's.  Polk won the election of 1844 and became the 11th President, the first successful \"dark horse\" Presidential candidate."explain[8]="Early \"political\" brass buttons were made to celebrate the first inauguration of George Washington and were worn as decorative buttons on clothing.  Later campaign buttons, such as those with a photo of Abraham Lincoln, were designed to be hung by a ribbon from the buttonhole of a coat lapel.  The modern campaign buttons we see today were first used in the campaign of 1896 between William McKinley and William Jennings Bryan."explain[9]="The voters in the District of Columbia had never had the right to vote in Presidential elections.  On March 29, 1961, the Twenty-third Amendment to the Constitution was ratified, giving the District the right to vote."explain[10]="Confident in its prediction that Dewey had won, the Chicago Tribune printed its early edition with the headline: \"Dewey Defeats Truman.\"  When the paper was printed, it wasn't known that California and Ohio had voted for Truman, giving him the victory.  It was the greatest upset in Presidential history.  As shown in a famous photo, it was a smiling Harry Truman that held up a copy of the front page of the Chicago Tribune for all to see!"/////Don't edit beyond here//////////////////////////function popup() {	var win1 = window.open("results.htm", '', 'width=480,height=300,status=no,toolbar=no,resizable=yes,menubar=no');		win1.focus()} function gradeit() {var incorrect=nullfor (q=1;q<=totalquestions;q++){	var thequestion=eval("document.myquiz.question"+q)	for (c=0;c<thequestion.length;c++){		if (thequestion[c].checked==true)		actualchoices[q]=thequestion[c].value		}			if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice		if (incorrect==null)		incorrect=q		else		incorrect+="/"+q		}	}if (incorrect==null)incorrect="a/b"document.cookie='q='+incorrectif (document.cookie=='')alert("Your browser does not accept cookies. Please adjust your browser settings.")else//window.location="results.htm"popup();//window.open("results.htm", "win1","resizable,scrollbars, status, titlebar")//window.focus()}function showsolution() {//var win2=window.open("","win2","width=200,height=350, scrollbars")var win2=window.open("","win2","resizable,scrollbars, status, titlebar")win2.focus()win2.document.open()win2.document.write('<title>Presidential Challenge - Online Quiz Answers</title>')win2.document.write('<body bgcolor="#0E0D37" text="#D5C2AA">')win2.document.write('<center><h3>Answers:</h3></center>')win2.document.write('<center><h6>*** Note: Incorrect Answers in Red.</h6></center>')win2.document.write('<center><font face="Palinto Linotype">')for (i=1;i<=totalquestions;i++){for (temp=0;temp<incorrect.length;temp++){if (i==incorrect[temp])wrong=1}if (wrong==1){win2.document.write(details[i].fontcolor("red").bold()+explain[i].fontcolor("red")+"<br><br>")wrong=0}elsewin2.document.write(details[i].bold()+explain[i]+"<br><br>")//win2.document.write(details[i].bold()+explain[i]+"<br>"+"<br>")}/*win2.document.write("Question "+i+"="+correctchoices[i].fontcolor("red")+"<br>"+"<br>")wrong=0}elsewin2.document.write("Question "+i+"="+correctchoices[i]+"<br>"+"<br>")}*/win2.document.write('</center></font>')win2.document.close()}