function Question (qname,
type,
qstring,
response,
comment,
corrects,
explan,
score,
ifcorrect,ifwrong,ifnull,
img)
{this.qname=qname;
this.type=type;
this.qstring=qstring;
this.response=response;
this.comment=comment;
this.corrects=corrects;
this.explan=explan;
this.score=score;
this.ifcorrect=ifcorrect;
this.ifwrong=ifwrong;
this.ifnull=ifnull;
this.img=img;
}

var zin=1,top=0, mycount=0, waitTime=0, qright=0, mycomment;
var global=new Array(3);
var recent, recent2, recdone=false, opera7, opera=CheckOpera56();
function cachewrite(s,idx){global[idx]+=s;}
function CheckOpera56()
{
var version;
if (navigator.userAgent.toLowerCase().indexOf('opera') == -1) return false;
version=parseInt(navigator.appVersion.toLowerCase());
if (version>6) {opera7=true; return false;}
if (version<5) return false;
return true;
}
resp=new Array("Overpower the attacker","Distract the attacker so that you can break free and escape to safety","Go along with the attack because you can't fight someone bigger and stronger")
corr=new Array("0","1","0")
comm=""
valu=""
quest001 = new Question(
"Question 1",
0,
"If you are attacked, in order to survive, you must",
resp,
comm,
corr,
"<small>Self-defense has more to do with distracting the attacker and throwing him off-guard than it does with overpowering him.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Why is this happening to me?","Is he going to rape or kill me?","What did I do wrong?","What is the best way to handle this situation?")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest002 = new Question(
"Question 2",
0,
"If attacked, which question would help you escape?",
resp,
comm,
corr,
"<small>It's the only question that will assist you in comoing up with an escape plan. The other three questions are things you have no control over. Your brain will answer whatever you ask it. Make sure you ask empowering questions.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Look around when you are walking and glance at other people","Keep to yourself and avoid looking at other people so they will leave you alone","Look at other people and smile and say, &quot;Hi&quot;")
corr=new Array("1","0","0")
comm=""
valu=""
quest003 = new Question(
"Question 3",
0,
"The best way to avoid being selected as a victim is to",
resp,
comm,
corr,
"<small>You need to be looking around as you walk. Attackers need to see you notice them so they can realize that you would be able to identify them. It is better to look at clothing than to make eye contact since eye contact can be seen as a challenge to a dangerous or unstable person.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Make a lot of noise and call attention to the situation","Be quiet so you don't upset the attacker","Go along with the attacker's demands so that he won't hurt you")
corr=new Array("1","0","0")
comm=""
valu=""
quest004 = new Question(
"Question 4",
0,
"If you are attacked, the safest thing to do is",
resp,
comm,
corr,
"<small>Attackers look for the path of least resistance; a weak victim. The more noise you make and the more trouble you are will make the attacker think twice about continuing since he is looking for a quiet, weak victim.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Scream for help","Run in the opposite direction","Hold your open hands up and yell, &quot;Back Off&quot;","Answer the question the stranger asked and be polite")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest005 = new Question(
"Question 5",
0,
"You are walking to your car in a parking lot when a suspicious stranger approaches you asking for directions. The safest first thing to do is",
resp,
comm,
corr,
"<small>Show the attacker you are not afraid to make a scene and fight back. Be the path of MOST resistance! Be ready to run while yelling.</small>",
valu,
0,
0,
0,
"");

resp=new Array("Parking lot","The park","The mall","Walking down the street","An elevator")
corr=new Array("1","0","0","0","0")
comm=""
valu=""
quest006 = new Question(
"Question 6",
0,
"The most common place to be assaulted is",
resp,
comm,
corr,
"<small>A parking lot is the most common place to be assaulted. Second is the bank and third is a home; 65% of the time it's YOUR home. Remember that you can ignore someone at the door instead of opening it for them.</small>",
valu,
1,
0,
0,
"");

resp=new Array("You go along with him so he doesn't shoot you","You struggle with him and try to get the gun away from him","You pretend to trip and fall to the ground and fake a sprained ankle")
corr=new Array("0","0","1")
comm=""
valu=""
quest007 = new Question(
"Question 7",
0,
"An attacker holds a gun to your side and wants you to walk with him to his car",
resp,
comm,
corr,
"<small>Do whatever you have to in order to STAY in the FIRST location! Falling isn't seen as aggressive behavior but takes extra time to deal with. It calls attention to your situation and someone will probably call 911 for you since everyone likes to be the &quot;hero&quot; when it comes to medical emergencies.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Scream","Hit him or her with something","Honk the horn","Get out of the car")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest008 = new Question(
"Question 8",
0,
"What do you do if you're stopped in traffic and someone tries to get into your car?",
resp,
comm,
corr,
"<small>Get out of the car immediately. Remove yourself from the situation. If you can get the keys, take them with you or throw them. Loudly yell, &quot;Call 911!&quot; Make noise to draw attention to your situation.</small>",
valu,
1,
0,
0,
"");

resp=new Array("You ingore the person","Face them and start a conversation","Get off of the elevator when they get on")
corr=new Array("0","0","1")
comm=""
valu=""
quest009 = new Question(
"Question 9",
0,
"A person you have a bad gut feeling about enters the elevator you are in",
resp,
comm,
corr,
"<small>Remove yourself from the situation immediately. If you end up in the moving elevator, push the button to exit at the next floor even if it is not where you were headed. Protect yourself first and foremost.</small>",
valu,
1,
0,
0,
"");

resp=new Array("You call 911 and leave the line open","Get something to hit the intruder with","Locate the intruder so you can identify him/her","Take your cordless or cell phone and get out of the house while calling 911")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest010 = new Question(
"Question 10",
0,
"You hear an intruder enter your home during the night when you are alone",
resp,
comm,
corr,
"<small>Get out of the house immediately. Taking extra time to stay in the house to make a phone call puts you in greater danger. You can call during or after you exit.</small>",
valu,
1,
0,
0,
"");

resp=new Array("You get a friend to go with you or don't go at all","Go by yourself but be extra careful","Go alone but take mace or pepper spray with you")
corr=new Array("1","0","0")
comm=""
valu=""
quest011 = new Question(
"Question 11",
0,
"You have to go to the grocery store after dark and are alone",
resp,
comm,
corr,
"<small>There is power in numbers. You are much less likely to be selected as a victim if you are with someone else. Change your schedule to insure shopping during daylight hours. Remember that attacks occur in broad daylight but the cover of darkness is good to avoid.</small>",
valu,
1,
0,
0,
"");

resp=new Array("20%","80%","50%")
corr=new Array("0","1","0")
comm=""
valu=""
quest012 = new Question(
"Question 12",
0,
"What percentage of marriages and relationships break up within one year following a rape?",
resp,
comm,
corr,
"<small>The emotional, physical and intimacy challenges which occur as a result of rape are often unbearable for even the strongest couples, whether the rape victim is the male or female in the relationship.</small>",
valu,
1,
0,
0,
"");

resp=new Array("You answer your phone and carry on a conversation as you walk","Answer the call and tell the person you'll call them right back","Let the call go into voicemail until you are in a safe place and able to call back")
corr=new Array("0","0","1")
comm=""
valu=""
quest013 = new Question(
"Question 13",
0,
"Your cell phone rings while you're walking down the street alone",
resp,
comm,
corr,
"<small>Walking alone, preoccupied with a phone conversation is victim body language to an attacker. An attacker's job is to disteact you. If you are already distracted, you are helping the attacker to attack you.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Pull up as close as possible to the vehicle in front of you","Leave two feet between your car and the vehicle in front of you","Stay far enough behind the vehicle in front of you that you can see its tires touch the road")
corr=new Array("0","0","1")
comm=""
valu=""
quest014 = new Question(
"Question 14",
0,
"When stopped in traffic",
resp,
comm,
corr,
"<small>This will allow you enough room to maneuver if someone approaches your vehicle or if there is an emergency either inside or outside of your vehicle.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Help","Fire","911")
corr=new Array("0","0","1")
comm=""
valu=""
quest015 = new Question(
"Question 15",
0,
"What should you yell if you are being attacked and want someone to help you?",
resp,
comm,
corr,
"<small>People are afraid to get involved. If they hear &quot;fire&quot; they look for flames and smell for smoke and when there are none, they go on their way. You must let them know you need help AND tell them what to do.</small>",
valu,
1,
0,
0,
"");

resp=new Array("2 out of 10","3 out of 20","1 out of 4")
corr=new Array("0","0","1")
comm=""
valu=""
quest016 = new Question(
"Question 16",
0,
"How many teenagers will end up as victims of teen dating abuse?",
resp,
comm,
corr,
"<small>By the time teens graduate from high school, they have seen (on TV, movies and video games) 200,000 acts of violence, 40,000 murders and more than one quarter million sex acts. (This does not include the internet.) Violence in relationships is seen as acceptable and normal.</small>",
valu,
1,
0,
0,
"");

resp=new Array("65%","40%","5%")
corr=new Array("0","0","1")
comm=""
valu=""
quest017 = new Question(
"Question 17",
0,
"What percentage of teen dating abuse victims reach out for help?",
resp,
comm,
corr,
"<small>Ninety five percent (95%) of teen dating abuse victims never reach out for help. They fear for their safety; they confuse abuse with attention; they think it is normal dating practice; they think they deserve it.</small>",
valu,
1,
0,
0,
"");

resp=new Array("There is something wrong with your child","Your child is different from the rest","Your child is smarter than the other students","Bullies are scared, insecure, weak and jealous of other kids")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest018 = new Question(
"Question 18",
0,
"Your child is getting bullied at school because",
resp,
comm,
corr,
"<small>Bullies are attackers; insecure, low self-esteem, feeling out of control of their life and choose to victimize someone who appears to be weaker in order to feel powerful again. A person who has been bullied and remains in the &quot;victim mindset&quot; draws attention from other bullies and will be victimized again.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Bullying other children","Drug or alcohol use and abuse","Depression, loneliness","Aggressiveness and temper outbursts","All of the above")
corr=new Array("0","0","0","0","1")
comm=""
valu=""
quest019 = new Question(
"Question 19",
0,
"What is an effect of domestic violence on children in the household?",
resp,
comm,
corr,
"<small>There are many more symptoms and effects exhibited by the silent victims of domestic abuse. The cycle perpetuates itself and we end up with more abusive adults.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Diagonally across her body","By her side, over one shoulder","Tucked under her bent arm","Holding the strap/handle in her hand")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest020 = new Question(
"Question 20",
0,
"Which is the best way for a woman to carry her purse?",
resp,
comm,
corr,
"<small>If a purse is going to get snatched, it needs to be easily accessible to the &quot;snatcher.&quot; Many women get pulled to the ground and injured because their purse is over their shoulder or diagonally across their body.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Within the first hour","Within the first 2 hours","Within the first 24 hours","Within the first 48 hours")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest021 = new Question(
"Question 21",
0,
"When are stolen credit cards used the most?",
resp,
comm,
corr,
"<small>The first thing you do when a credit card, purse or wallet is stolen is call the police. The second thing you do is call the credit card companies and put a stop on your cards.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Invite him in","Call the number on his or her business card to make sure he is legitimate","Call his or her workplace at the number in the phone book to verify his visit","Call a neighbor to see if she knows anything about it")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest022 = new Question(
"Question 22",
0,
"A repairman or woman comes to your door that you weren't expecting and says they need to check electricity, water, etc. You",
resp,
comm,
corr,
"<small>Criminals wanting entry to your home use phony business cards and accomplices to answer the phone and trick you.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Only one credit card","A small amount of cash for emergencies","A debit card so you can avoid carrying your checkbook","None of the above")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest023 = new Question(
"Question 23",
0,
"What items should you ALWAYS have in your purse or wallet?",
resp,
comm,
corr,
"<small>You don't HAVE to have anyghing in your purse or wallet. It is extremely important to carry identification for emergencies. Otherwise, carry only what you need for wherever it is you are going. If you don't need credit cards, leave them in a safe, hidden place at home.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Mace","Pepper Spray","Stun Gun","Yelling")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest024 = new Question(
"Question 24",
0,
"Which of the following are most effective against an attacker?",
resp,
comm,
corr,
"<small>Accessory deterrents offer a false sesnse of security since they take valuable time to deploy; keep you in the company of the attacker longer than necessary, may not be fully charged (due to leakage) and may require proper wind direction in order to be effective. When used properly, your voice is your most valuable weapon.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Call 911 and then go to help the victim escape from the attacker","Help the victim by fighting the attacker","Remove yourself from the situation so that you don't get attacked also","Call 911")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest025 = new Question(
"Question 25",
0,
"What's the BEST thing to do if you witness someone being attacked?",
resp,
comm,
corr,
"<small>The police will tell you that it is better to be a good witness than to get involved. Call 911 even if you think that someone else may be callling also. Eight out of ten people freeze up when they witness an assault and do nothing. Stay at a safe distance and be prepared to yell, &quot;I'm calling 911!&quot; so that the attacker can hear you. This may stop teh attack since the last thing an attacker wants is to be indentified.</small>",
valu,
1,
0,
0,
"");

resp=new Array("Read books","Attend martial art classes","Join Kelly's Safety Quick Tips Community and recieve ongoing simple, personal safety training!")
corr=new Array("0","0","1")
comm=""
valu=""
quest026 = new Question(
"Question 26",
0,
"What is the simplest, most effective way to get safety training that lasts a lifetime?",
resp,
comm,
corr,
"<small>Keeping your personal safety in the front of you mind instead of the back is my focus. Try my community out for a while and see if you like it. It is FREE and you can join in the box below.</small>",
valu,
1,
0,
0,
"");

questions = new Array (
quest001,quest002,quest003,quest004,quest005,quest006,quest007,quest008,quest009,quest010,quest011,quest012,quest013,quest014,quest015,quest016,quest017,quest018,quest019,quest020,quest021,quest022,quest023,quest024,quest025,quest026)

function doQuestion(quest)
{
var numdo;
var numord=eval(quest+1);
var i=-1, ii, type, myname, gadget;
type=questions[quest].type;
numdo=type>=3?1:questions[quest].response.length;


document.writeln ("<a name=\""+questions[quest].qname+"\"></a>")
document.write("\n")
document.write("  <tr>\n")
document.write("    <td>\n")
document.write("      <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n")
document.write("      <tr height=5>\n")
document.write("        <td colSpan=5></td>\n")
document.write("      </tr>\n")
document.write("      <tr>\n")
document.write("        <td width=\"5%\" rowspan=\"4\"></td>\n")
document.write("        <td width=\"9%\" rowspan=\"4\" background=\"s_topnumber.gif\" valign=\"top\" align=\"center\" >\n")
document.write("          <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n")
document.write("          <tr height=\"5\">\n")
document.write("            <td></td>\n")
document.write("          </tr>\n")
document.write("          <tr>\n")
document.write("            <td valign=\"top\" align=\"center\">\n")
document.write("              <font face=\"Verdana\" size=\"6\" color=\"#00399C\">")
document.write(numord)
document.write("</font>\n")
document.write("            </td>\n")
document.write("          </tr>\n")
document.write("          </table>\n")
document.write("        </td>\n")
document.write("        <td width=\"1%\" rowspan=\"4\">&nbsp;</td>\n")
document.write("        <td width=\"80%\" class=\"question\" valign=\"top\">\n")
document.write("         ")
if (questions[quest].img!="") {
document.write("\n")
document.write("         <img border=\"0\" hspace=\"10\" vspace=\"0\" align=\"left\" src=\"")
document.write(questions[quest].img)
document.write("\">\n")
document.write("         ")
}
document.write("\n")
document.write("          ")
document.writeln(questions[quest].qstring)
document.write("\n")
document.write("        </td>\n")
document.write("        <td width=\"5%\"></td>\n")
document.write("      </tr>\n")
document.write("      <tr height=1>\n")
document.write("        <td width=\"80%\" bgcolor=\"#00399C\" background=\"s_dots.gif\"></td>\n")
document.write("        <td width=\"5%\"></td>\n")
document.write("      </tr>\n")
document.write("      <tr height=10>\n")
document.write("        <td width=\"80%\"></td>\n")
document.write("        <td width=\"5%\"></td>\n")
document.write("      </tr>\n")
document.write("      <tr>\n")
document.write("        <td width=\"80%\" class=\"answer\">\n")
document.write("          ")
for (i=0; i<numdo; i++) {
myname=questions[quest].qname;
gadget="radio";
if (type>=3) gadget="text";
else if (type==1) {
myname+="_"+(i<9?"0":"")+(i+1);
gadget="checkbox";}
document.write("\n")
document.write("          ")
document.write(type==7?"<textarea name=\""+myname+"\" rows=5 cols=30 class=\"input\">":" <input type="+gadget+" name=\""+myname);
if (type<3) document.write("\" value=\""+i+"\">\n")
else document.write(type==7?"</textarea>":"\" class=\"input\" value=\"\">\n")
if (type<3) document.write(questions[quest].response[i]);
document.write("<br>\n")
document.write("          ")
}
document.write("\n")
document.write("        </td>\n")
document.write("        <td width=\"5%\"></td>\n")
document.write("      </tr>\n")
document.write("      <tr height=5>\n")
document.write("        <td colSpan=5></td>\n")
document.write("      </tr>\n")
document.write("      </table>\n")
document.write("    </td>\n")
document.write("  </tr>\n")
document.write("  <tr height=10>\n")
document.write("    <td>&nbsp;</td>\n")
document.write("  </tr>\n")
document.write("  ")
}
function doTest() {
var count, i;

count=questions.length;
for (i=0; i<count; i++) doQuestion(i);
}
function fill(s,l){
s=s+""
for (y=1;y<=l;y++)
if (s.length>=l) break; else s="0"+s;
return s
}
function CheckQName(wapf,ii,i,multi,selection){
var len;
if (!multi) return(wapf.elements[ii].name==questions[i].qname);
len=questions[i].qname.length;
if (wapf.elements[ii].name.substring(0,len)!=questions[i].qname) return false;
if (wapf.elements[ii].name.substring(len,len+1)!="_") return false;
if (eval(wapf.elements[ii].name.substring(len+1,len+3))==(selection+1)) return true;
return false;
}
function errore(uno,due,tre)
{
if (!errori) global[1]="<H3>You have made the following errors</H3>";
++errori;
cachewrite("<p><b>"+uno+"</b><br>"+due+"<br>"+mycomment+tre+"</p>",2);
mycomment="";
}
function testIE5plus(){
var pos=navigator.appVersion.lastIndexOf('MSIE ');
if (pos != -1) {
pos+=5;
if (eval(navigator.appVersion.charAt(pos))>4)
return true;}
return false;}
function correct(wapf)
{
var i, ii, t, re, tmp, selection, multi, multipage=0, type, isnull, iswrong, iscorrect, evaluation=0, total=0, udat;
errori=waitTime=0;
udat=new Array();
for (i=0, ii=0; i<wapf.elements.length; i++)
{tmp=wapf.elements[i];
if (tmp.name.substring(0,13)=="Quiz.UserData"){
t=tmp.name.substring(14,tmp.name.length);
re=new RegExp("_", "g");
t=t.replace(re," ");
udat[ii++]=t+": <i>"+tmp.value+"</i><br>";
if (opera) tmp.value="";}}
global[0]=global[2]="";
global[1]="<h3>Congratulations, you haven't made any errors</h3>";
cachewrite("<html><head><title>Results</title><BASE target='_blank'></head><body bgcolor='#FFFFFF'><font face='Verdana, Arial'><table border=0 cellpadding=0 cellspacing=0 width='100%' bgcolor='#C0C0C0'><tr><td width='100%'><font face='Verdana, Arial' size=5 color='#FFFFFF'><b>&nbsp;Results</b></font></td></tr></table>",0)
now= new Date()
cachewrite("<small><p>"+fill((now.getMonth()+1),2)+"/"+fill(now.getDate(),2)+"/"+now.getYear()+"&nbsp;&nbsp;"+fill(now.getHours(),2)+":"+fill(now.getMinutes(),2)+"</p>",0)
cachewrite("<b>SURVIVE! Safety Quiz</b><br><br>\n",0);
if (udat.length>0) {
cachewrite("<b>Information</b><br>\n",0);
for (i=0; i<udat.length; i++) cachewrite(udat[i],0);}
if (opera7 && multipage) {
for (i=0; i<questions.length; i++) {
id=document.getElementById("q"+(i+1));
id2=document.getElementById("q"+(i+1)+"a");
id.style.display=id2.style.display="block";}
document.getElementById('wq_final').style.display='block';
}

for (i=0; i<questions.length; i++) {
if (opera && multipage) {
id=document.getElementById("q"+(i+1));
id2=document.getElementById("q"+(i+1)+"a");
id.style.visibility=id2.style.visibility="visible";}
type=questions[i].type;
if (type==1) multi=1;
else multi=0;
isnull=true;
iscorrect=false;iswrong=false;
selection=0;
evaluation=0;
mycomment="";
for (ii=0; ii<wapf.elements.length; ii++) {
if (CheckQName(wapf,ii,i,multi,selection)) {
if (type>=3 && wapf.elements[ii].value!="") {
isnull=false;
if (wapf.elements[ii].value.toLowerCase()==questions[i].corrects.toLowerCase()) iscorrect=true;
else iswrong=true;
++selection;}
else if (wapf.elements[ii].checked) {
if (questions[i].score!="") evaluation+=questions[i].score[selection];
if (isnull) isnull=false;
if (questions[i].corrects[selection]=="1") iscorrect=(iswrong==false)?true:false;
else {
iswrong=true;
if (multi && questions[i].corrects!='') errore(questions[i].qname,"The checkbox  <i>"+questions[i].response[selection]+"</i>  shouldn't have been selected.",questions[i].explan)
}
if (questions[i].comment!="" && questions[i].comment[selection]!="")
mycomment+=((iscorrect || questions[i].corrects=='')?"<b>"+questions[i].qname+"</b><br>":"")+"<small>"+questions[i].comment[selection]+"</small><br>";
} else {
if (questions[i].corrects[selection]=="1") {
iswrong=true;
if (multi && questions[i].corrects!='') errore(questions[i].qname,"The checkbox  <i>"+questions[i].response[selection]+"</i>  should have been selected.",questions[i].explan);
}}
++selection;
}}
if (multi==false && (isnull || iswrong)) {
var okresp="", z;
if (type>=3) okresp=questions[i].corrects;
else {
for (z=0; z<questions[i].corrects.length; z++) {
if (questions[i].corrects[z]==1) {
okresp=questions[i].response[z];
break;
}}}
if (okresp!="") errore(questions[i].qname,"The right answer was <i>"+okresp+".</i>",questions[i].explan);
}
if (mycomment!="") cachewrite(mycomment,2);
if (questions[i].corrects!="") ++qright;
if (isnull) evaluation+=questions[i].ifnull;
else if (iswrong) evaluation+=questions[i].ifwrong;
else if (iscorrect) evaluation+=questions[i].ifcorrect;
total+=evaluation;}
if (qright==0) global[1]="<br>";
if (errori) cachewrite("<br><b>You have made "+errori+" "+(errori==1?"error":"errors")+".</b>",2);
cachewrite("<br><b>Total score: "+total+".</b><br>",2);

cachewrite("</small><hr noshade><center><form>",2)
printest=(((navigator.appName=="Netscape") && (navigator.appVersion.charAt(0)>="4")) || (testIE5plus() == true))? "print()": "alert('This button can be used with Netscape Navigator 4 or Microsoft Internet Explorer 5 only. If you want to print with other browsers, please select the Print command in the File menu.')"
cachewrite("<input type='button' value='Print...' onClick='"+printest+"'>&nbsp;&nbsp;&nbsp;&nbsp;",2)
cachewrite("<input type='button' value='Close' onClick='window.close()'></form></center>",2)
cachewrite(aknw,2)
winr=window.open('','wapres', 'titlebar=1,location=0,directories=0,menubar=1,toolbar=0,scrollbars=1,resizable=1,status=1')
for (i=0; i<3; i++) winr.document.write(global[i]);winr.document.close()
if ((opera || opera7) && multipage) {
document.forms[0].elements[0].value='Print...';
document.forms[0].elements[1].value='Close';
for (i=0; i<questions.length; i++) {
id=document.getElementById("q"+(i+1));
id2=document.getElementById("q"+(i+1)+"a");
opera?id.style.visibility=id2.style.visibility="hidden":id.style.display=id2.style.display="none";}}
}
aknw="<br><p align='center'><small><small>Created and managed with <a title='Click here to visit WebQuiz site' href='http://www.smartlite.it/go.asp?OLDLP' target = '_blank'>SmartLite WebQuiz</a></small></small></p>"
