var page    = ""
var inputCheck = "<INPUT TYPE='checkbox' checked>"
var inputNoCheck = "<INPUT TYPE='checkbox'>"
var count = 7
var checkedNo = false

// Messages printed above and below the contents page.
var YesAnsw = "Your answers to the note-taking quiz indicate that you already possess an effective note-taking strategy. You may still like to work through the topics in the note-taking section in order to refine your note-taking skills. "

var NoAnsw1 = "Given your answers to the note-taking quiz, we recommend that you should work through the following topics in the note-taking section. They will illustrate some effective strategies to help you improve your note-taking skills.  "

var NoAnsw2 = "You may still like to work through the other topics in the note-taking section in order to refine your note-taking skills."

function jumpTo(URL_List)
{
   var URL = URL_List.options[URL_List.selectedIndex].value;
   window.location.href = URL;
}

function openFeedback()
{ 

		// Check if any there are any No answers      
    	if ((document.G01Choices.A[0].checked) || (document.G01Choices.A[0].checked) || (document.G01Choices.A[1].checked) || (document.G01Choices.A[2].checked) || (document.G01Choices.A[3].checked) || (document.G01Choices.A[4].checked) || (document.G01Choices.A[5].checked) || (document.G01Choices.A[6].checked) || (document.G01Choices.A[7].checked))
        		checkedNo = true
        		
        
        page="<HTML><HEAD><TITLE>Recommendations</TITLE></HEAD>"
        page+="<BODY BGCOLOR='#FFFFFF'><FORM>"
        		
        if (checkedNo)
			page+="<P>"+NoAnsw1+"</P>"	
		else
			page+="<P>"+YesAnsw+"</P>"	
	    
		page+=inputNoCheck	
		page+="<B>Introduction</B><BR>"

		if (document.G01Choices.A[0].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="The importance of note-taking<BR>"
		if (document.G01Choices.A[0].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="When should I begin to take notes?<BR>"
		if (document.G01Choices.A[1].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="What type of notes should I take?<BR>"
		if (document.G01Choices.A[3].checked  || document.G01Choices.A[5].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="Important points to remember<BR>"
		if (document.G01Choices.A[4].checked || document.G01Choices.A[5].checked  || document.G01Choices.A[6].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="<B>Recommended strategies for note-taking</B><BR>"
		if (document.G01Choices.A[4].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="Classifying your notes<BR>"
		if (document.G01Choices.A[2].checked || document.G01Choices.A[4].checked || document.G01Choices.A[6].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="The Cornell Method<BR>"
		page+=inputNoCheck
		page+="Example of Cornell Method<BR>"
		if (document.G01Choices.A[6].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="Cornell Method Template<BR>" 
		if (document.G01Choices.A[7].checked)
			page+=inputCheck
		else
			page+=inputNoCheck
		page+="Indirect and direct quotations<BR>"
		if ((document.G01Choices.A[2].checked)  || (document.G01Choices.A[5].checked) || (document.G01Choices.A[6].checked)) 
       {
			page+=inputCheck
			page+="<B>Example of note-taking process</B><BR>" 
        }
		else 
		{
			page+=inputNoCheck
			page+="<B>Example of note-taking process</B><BR>"
        }
        
        if (checkedNo)
	    	page+="<P>"+NoAnsw2+"</P>"	
		
		page+="</body></form></html>"			


		

			 newWindow=window.open("","","HEIGHT=400,WIDTH=300")
			 newWindow.document.write(page)
             newWindow.document.close()
	
 
}
