/***********************************************
* JavaScriptKit.com Multiple Choice Quiz Script (http://www.javascriptkit.com)
* Copyright 2003 JavaScript Kit- http://www.javascriptkit.com
* This notice and footnote must stay intact for use
* Visit JavaScript Kit (http://www.javascriptkit.com/) for full source code
***********************************************/

//Enter total number of questions:
var totalquestions=10

//Enter the solutions corresponding to each question:
var correctchoices=new Array()
correctchoices[1]='a' //question 1 solution
correctchoices[2]='a' //question 2 solution, and so on.
correctchoices[3]='b'
correctchoices[4]='a'
correctchoices[5]='a'
correctchoices[6]='b'
correctchoices[7]='c'
correctchoices[8]='b'
correctchoices[9]='a'
correctchoices[10]='c'
var explanation=new Array()
explanation[1]='The baby needs to be warmed up and put back in its nest. Get an adult to help you. Fill a resealable sandwich bag half-full with warm water, and place it in a bowl.  Make a "nest" on top and put two tissues in it. Put the baby bird on top of the tissues so that it can get warm without getting too hot.'
explanation[2]='Go outside where you found the bird and look up.  If you see the nest above you in the tree, have an adult help you put the bird back in its nest.'
explanation[3]='It is not good to handle or touch baby birds more than necessary, but the parents will not reject them if they are touched.'
explanation[4]="If the parents don't show up within an hour, you were probably too close to the nest, and frightened the parents away."
explanation[5]="If the parents don't show up after more than an hour has passed, call a rehabilitator immediately. Baby birds cannot go without food or warmth for very long, or they will die."
explanation[6]='If the baby bird is covered with feathers and is hopping around on the ground, but cannot fly, it is now a "fledgling."  The parents should return in about half an hour.'
explanation[7]='<strong>Never</strong> feed a baby bird anything.  <strong>Never</strong> give a baby bird water.  You can drown a baby bird with just one DROP of water, and the wrong food can cause diarrhea and death.'
explanation[8]='Baby birds usually stay in the nest for 2 to 3 weeks before they fledge. Bigger birds, like crows, take longer to grow up and leave the nest than little birds do.'
explanation[9]='Baby birds are fed every 15 minutes to half-hour, from dawn until dusk.'
explanation[10]='If you find an injured bird, call a rehabilitation center right away, and ask someone in your family to take you and the bird to the center.'

/////Don't edit beyond here//////////////////////////

function delCookie()
{history.go(-1);
document.cookie ='q'+"="+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}


function gradeit(){
document.cookie ='q'+"="+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
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"
}


function showsolution(){
var win2=window.open("","win2","width=900,height=650, scrollbars")
win2.focus()
win2.document.open()
win2.document.write('<title>Answers</title>')
win2.document.write('<body bgcolor="#FFFFFF">')
win2.document.write('<body background="../images/backgnd.jpg">')
win2.document.write('<center><h3>Quiz Answers</h3></center>')
win2.document.write('<center><h3>'+congr+'</h3></center>')
win2.document.write("<h4>Note: The correct letter and answer to each question is given below.</h4>")
if (incorrect!="")
win2.document.write("<h4>(Text in red indicates questions that you answered incorrectly.)</h4>")
win2.document.write('<font face="Arial">')
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("Question "+i+" = "+correctchoices[i].fontcolor("red")+"<br>"+explanation[i].fontcolor("red")+"<br><br>")
wrong=0
}
else
win2.document.write("Question "+i+" = "+correctchoices[i]+"<br>"+explanation[i]+"<br><br>")
}
win2.document.write("Call Fellow Mortals at (262) 248-5055, and leave a message. We <strong>will</strong> call you back very soon, usually within a half hour.<br>")
win2.document.write('</font>')
win2.document.write("<p align='center'><small>Copyright 2007 by Fellow Mortals, Inc.<br><br><a href='http://www.javascriptkit.com' target='_new'>JavaScript Kit quiz script</a></small>")
win2.document.write('<center><form><input type=button value="Close this window" onClick=window.close()></form></center>')
win2.document.close()
}
