function openAns()
{

	newwind=window.open("answer_sheet.html","Answer_Sheet","toolbars=yes,resizeable=yes,scrollbars=yes,width=600,height=560,left=230,top=15")

}


var ans_array = new Array()

var ans_text = new Array()

var response_array = new Array()


ans_array[0] = "1"
ans_array[1] = "0"
ans_array[2] = "1"
ans_array[3] = "2"
ans_array[4] = "0"
ans_array[5] = "1"
ans_array[6] = "1"
ans_array[7] = "0"
ans_array[8] = "2"
ans_array[9] = "2"
ans_array[10] = "0"
ans_array[11] = "1"
ans_array[12] = "0"
ans_array[13] = "1"
ans_array[14] = "1"
ans_array[15] = "0"
ans_array[16] = "2"
ans_array[17] = "2"
ans_array[18] = "0"
ans_array[19] = "0"

ans_text[0] = "Boxer Bill Richmond of Staten Island. Born August 5, 1763."
ans_text[1] = "Ebbets Field in Brooklyn."
ans_text[2] = "Community sing. And high on the charts in the mostly Jewish neighborhood were Yiddish translations of Negro spirituals."
ans_text[3] = '"THIS IS NOT A LIBRARY!"'
ans_text[4] = '"Walt Whitman am I, a Kosmos, of mighty Manhattan the son."'
ans_text[5] = "Cowboy from Brooklyn." 
ans_text[6] = "Humphrey Bogart. For his role in Casablanca." 
ans_text[7] = '"Will You Love Me in December as You Did in May?"' 
ans_text[8] = "LaGuardia conducted bands and orchestras. Giuliani does walk-ons at the Metropolitan Opera."
ans_text[9] = "In addition to wedding rings, they wore scissors and pin cushions."
ans_text[10] = "Passover."
ans_text[11] = "Thomas Willett."
ans_text[12] = "Baldness and impotence." 
ans_text[13] = "Washing clothes."
ans_text[14] = "3 Cherry Street." 
ans_text[15] = "A Bible had to found for his taking the oath of office."
ans_text[16] = "The Museum of the City of New York, 1220 Fifth Avenue."
ans_text[17] = "The training of carrier pigeons."
ans_text[18] = "The Palm Warbler."
ans_text[19] = "The Road to Ruin." 


function calculate()
{

for(i=0;i<document.main.Question_1.length;i++)
{
   var chk = document.main.Question_1[i].checked
  
   if (chk == true){
       
     if (ans_array[0] == i)
        {
           document.main.check_resp1.value="Correct"
        }
     else
        {
           document.main.check_resp1.value="Incorrect"
           
        }
   }
}


for(i=0;i<document.main.Question_2.length;i++)
{
   var chk = document.main.Question_2[i].checked

   if (chk == true){
       
     if (ans_array[1] == i)
        {
           document.main.check_resp2.value="Correct"
        }
     else
        {
           document.main.check_resp2.value="Incorrect"
        }
   }
}



for(i=0;i<document.main.Question_3.length;i++)
{
   var chk = document.main.Question_3[i].checked

   if (chk == true){
       
     if (ans_array[2] == i)
        {
           document.main.check_resp3.value="Correct"
        }
     else
        {
           document.main.check_resp3.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_4.length;i++)
{
   var chk = document.main.Question_4[i].checked

   if (chk == true){
       
     if (ans_array[3] == i)
        {
           document.main.check_resp4.value="Correct"
        }
     else
        {
           document.main.check_resp4.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_5.length;i++)
{
   var chk = document.main.Question_5[i].checked

   if (chk == true){
       
     if (ans_array[4] == i)
        {
           document.main.check_resp5.value="Correct"
        }
     else
        {
           document.main.check_resp5.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_6.length;i++)
{
   var chk = document.main.Question_6[i].checked

   if (chk == true){
       
     if (ans_array[5] == i)
        {
           document.main.check_resp6.value="Correct"
        }
     else
        {
           document.main.check_resp6.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_7.length;i++)
{
   var chk = document.main.Question_7[i].checked

   if (chk == true){
       
     if (ans_array[6] == i)
        {
           document.main.check_resp7.value="Correct"
        }
     else
        {
           document.main.check_resp7.value="Incorrect"
        }
   }
}

for(i=0;i<document.main.Question_8.length;i++)
{
   var chk = document.main.Question_8[i].checked

   if (chk == true){
       
     if (ans_array[7] == i)
        {
           document.main.check_resp8.value="Correct"
        }
     else
        {
           document.main.check_resp8.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_9.length;i++)
{
   var chk = document.main.Question_9[i].checked

   if (chk == true){
       
     if (ans_array[8] == i)
        {
           document.main.check_resp9.value="Correct"
        }
     else
        {
           document.main.check_resp9.value="Incorrect"
        }
   }
}

for(i=0;i<document.main.Question_10.length;i++)
{
   var chk = document.main.Question_10[i].checked

   if (chk == true){
       
     if (ans_array[9] == i)
        {
           document.main.check_resp10.value="Correct"
        }
     else
        {
           document.main.check_resp10.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_11.length;i++)
{
   var chk = document.main.Question_11[i].checked

   if (chk == true){
       
     if (ans_array[10] == i)
        {
           document.main.check_resp11.value="Correct"
        }
     else
        {
           document.main.check_resp11.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_12.length;i++)
{
   var chk = document.main.Question_12[i].checked

   if (chk == true){
       
     if (ans_array[11] == i)
        {
           document.main.check_resp12.value="Correct"
        }
     else
        {
           document.main.check_resp12.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_13.length;i++)
{
   var chk = document.main.Question_13[i].checked

   if (chk == true){
       
     if (ans_array[12] == i)
        {
           document.main.check_resp13.value="Correct"
        }
     else
        {
           document.main.check_resp13.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_14.length;i++)
{
   var chk = document.main.Question_14[i].checked

   if (chk == true){
       
     if (ans_array[13] == i)
        {
           document.main.check_resp14.value="Correct"
        }
     else
        {
           document.main.check_resp14.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_15.length;i++)
{
   var chk = document.main.Question_15[i].checked

   if (chk == true){
       
     if (ans_array[14] == i)
        {
           document.main.check_resp15.value="Correct"
        }
     else
        {
           document.main.check_resp15.value="Incorrect"
        }
   }
}

for(i=0;i<document.main.Question_16.length;i++)
{
   var chk = document.main.Question_16[i].checked

   if (chk == true){
       
     if (ans_array[15] == i)
        {
           document.main.check_resp16.value="Correct"
        }
     else
        {
           document.main.check_resp16.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_17.length;i++)
{
   var chk = document.main.Question_17[i].checked

   if (chk == true){
       
     if (ans_array[16] == i)
        {
           document.main.check_resp17.value="Correct"
        }
     else
        {
           document.main.check_resp17.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_18.length;i++)
{
   var chk = document.main.Question_18[i].checked

   if (chk == true){
       
     if (ans_array[17] == i)
        {
           document.main.check_resp18.value="Correct"
        }
     else
        {
           document.main.check_resp18.value="Incorrect"
        }
   }
}


for(i=0;i<document.main.Question_19.length;i++)
{
   var chk = document.main.Question_19[i].checked

   if (chk == true){
       
     if (ans_array[18] == i)
        {
           document.main.check_resp19.value="Correct"
        }
     else
        {
           document.main.check_resp19.value="Incorrect"
        }
   }
}

for(i=0;i<document.main.Question_20.length;i++)
{
   var chk = document.main.Question_20[i].checked

   if (chk == true){
       
     if (ans_array[19] == i)
        {
           document.main.check_resp20.value="Correct"
        }
     else
        {
           document.main.check_resp20.value="Incorrect"
        }
   }
}
   
}


