/***********************************************
* 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=9

//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]='b'
correctchoices[6]='b'
correctchoices[7]='d'
correctchoices[8]='e'
correctchoices[9]='d'
var explanation=new Array()
explanation[1]='Cover the bunnies back up with the dry grass and fur and leave them alone.<br><strong>Never</strong> try to feed an injured or orphaned wild creature.  You can drown a baby animal with just one DROP of water, and the wrong food can cause diarrhea and death.'
explanation[2]="<strong>Keep a secret.</strong> If other kids know about the bunnies, they will want to see them.  They could hurt the bunnies if they pick them up or poke at them. If bunnies aren't left alone, the mother won't have a chance to come back and take care of them."
explanation[3]='It is not good to handle or touch baby bunnies because it frightens them, but bunnies that have been touched accidentally will not be rejected by their mother.'
explanation[4]='Mother rabbits stay away from the nest because it keeps predators (like cats) from knowing where it is. They only feed their young twice a day, early in the morning and late at night.'
explanation[5]='After marking a nest, wait 24 hours before checking the twigs. This gives the mother time to come back and feed her babies.<br><strong>NOTE:</strong> If you marked the nest with twigs, and the twigs have <strong>not</strong> been moved after 24 hours, you should call a wildlife rehabilitator and ask for advice.'
explanation[6]='Eastern cottontails are weaned at three weeks. After that, they venture out on their own.<br>If <strong>very little</strong> bunnies (younger than three weeks) keep leaving the nest, they may need help. Call a rehabilitator.'
explanation[7]='Three week old bunnies are still small, about the size of a small orange, but they look like little adults, and run away from you if you get too close.'
explanation[8]='If a bunny is bleeding, or cannot run away, or if it has been attacked by a cat or dog, it needs help right away.'
explanation[9]='If you find an injured bunny, call a wildlife rehabilitator right away, and ask someone in your family to take you and the bunny to the wildlife hospital.'

/////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="bunnrslts.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()
}
