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("delay the child's school starting time until the afternoon.","enable the child to attend school regularly.","recognize that a traumatic event has occurred at school and frightened the child.","regulate the child's morning diet.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest001 = new Question(
"Question 1",
0,
"A 10-year-old child has been recently waking up with a stomachache almost every morning when it is time to get ready for school. On several mornings, the child has had a temperature of 99&#176;F (37&#176;C) but has felt better by midafternoon and has been able to play with other children. The mother has taken the child to a physician, who has found no physical explanation for the child's complaints. The child has been referred to the psychiatric clinical specialist. The primary goal of treatment is to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("describes how he told his classmates that &quot;sometimes kids need to take medicine.&quot;","is able to identify the times that he takes the medicine each day and recognizes that his parents praise him when he does so.","reports that he feels the same whether he takes the medication or not.","shares his awareness that he finishes his schoolwork on days that he remembers to take the medicine.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest002 = new Question(
"Question 2",
0,
"A 9-year-old boy is taking Ritalin for attention-deficit/hyperactivity disorder. The psychiatric clinical specialist knows that the boy understands why he is taking the medication if he:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("assess the growth and development of the children.","begin teaching the parents about cleanliness and health.","discuss with the parents the purpose of the visit.","explore the parents' past experiences with child-rearing issues.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest003 = new Question(
"Question 3",
0,
"A psychiatric clinical specialist arrives at the home of a family that has been referred for therapy because child neglect and abuse are suspected. The parents are watching television in a cluttered room, and two young children are asleep on soiled mattresses. The clinical specialist's primary goal for this visit is to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("engage in more activities with boys his own age.","take karate lessons to provide the skills needed to defend himself.","work out with a punching bag to displace his hostility.","write a letter to the older youth that expresses his rage at being exploited.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest004 = new Question(
"Question 4",
0,
"A 12-year-old boy was involved in an exploitative homosexual relationship with an older adolescent some months ago. Now in therapy, he expresses feelings of helplessness and fantasizes about getting even with the older youth. The most appropriate way to help him resolve these feelings is to encourage him to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("a depressive disorder.","an anxiety disorder.","separation anxiety disorder.","social phobia.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest005 = new Question(
"Question 5",
0,
"An 18-year-old patient who plans to go away to college in 2 months is evaluated at a neighborhood health clinic after repeated episodes of chest pain, vertigo, and tachycardia. The patient also reports sleeping and eating poorly during the last few weeks. Electrocardiogram and laboratory test results are normal. The diagnosis is:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("a normal adolescent concern.","adjustment disorder with anxious mood.","generalized anxiety disorder.","identity disorder.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest006 = new Question(
"Question 6",
0,
"A 17-year-old adolescent reports having been confused about life plans for about 6 months. The adolescent says, &quot;I just can't decide what I'm going to do with my life, what I want to be, even where I want to live. Everybody expects me to know, to have plans!&quot; The cause of the adolescent's difficulties is:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("establishment of a therapeutic relationship with the therapist.","expression of hope for the future.","identification of herself as the victim.","statement that her family has remained intact.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest007 = new Question(
"Question 7",
0,
"A 12-year-old girl is undergoing individual therapy because of a history of sexual abuse perpetrated by her father. Success in improving the girl's self-image is best demonstrated by the girl's:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("&#147;I will have him reassigned to a different nurse.&#148;","&#147;What makes this boy different from your other patients?&#148;","&#147;You must be exhausted working with him. What do you think would help?&#148;","&#147;You sound very angry. Maybe you need an anger management course.&#148;")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest008 = new Question(
"Question 8",
0,
"A staff nurse who has many years of experience angrily approaches the psychiatric clinical specialist and says, &quot;My 5-year-old patient is refusing to do anything. He's kicking the staff, crying, and running around the unit wildly. It's your job to do something.&quot; The clinical specialist's best response is:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("alcohol withdrawal.","infection affecting the central nervous system.","neuroleptic malignant syndrome.","serotonin syndrome.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest009 = new Question(
"Question 9",
0,
"A 17-year-old patient is brought to the emergency department with a series of nonspecific complaints. The patient's temperature is 100.8&#176;F (38.2&#176;C), pulse rate and blood pressure are elevated, and pupils are dilated with decreased reaction to light. Two days ago, the patient began taking 50 mg of sertraline (Zoloft) daily for treatment of depression. The patient has a history of substance use and smoked marijuana 1 week ago. The diagnosis is:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("avoid games with repetition of ideas and behaviors.","begin and end each play activity with less action.","increase interactions with other children.","play soft music in the background during play activities.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest010 = new Question(
"Question 10",
0,
"A psychiatric clinical specialist counsels a parent of a preschool child who has been diagnosed with fetal alcohol syndrome. During a meeting, the mother asks how to manage her child's excitability. The clinical specialist instructs the mother to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("assist the patient in developing concrete reminders and cues for taking the medication.","describe the medication, to the patient, as a method of gaining more control over one's life.","determine what the patient knows and believes about the medication.","link symptoms that the patient finds particularly troublesome to therapeutic benefits of the medication.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest011 = new Question(
"Question 11",
0,
"The psychiatric clinical specialist is considering risperidone (Risperdal) for an adolescent patient who has a history of noncompliance with haloperidol (Haldol). Before initiating the new drug, it is most appropriate for the clinical specialist to first:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("address multiple problem areas and encourage the child and mother to interact with representatives of various agencies.","focus on a single need and service agency at a time, in order to control the child's and the mother's anxiety levels.","use multiple agencies with a primary clinician clarifying roles and boundaries and coordinating interventions.","withdraw and allow the child and mother to determine their desired level of involvement with community agencies.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest012 = new Question(
"Question 12",
0,
"A 7-year-old child has been kept isolated by her mother. The mother has paranoid delusions and shares her distorted perceptions with the child. The child is developing disruptive behavior. Owing to the dysfunction of the mother and child, their needs come to the attention of multiple community agencies. The most effective means of addressing their needs within this macrosystem is to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("ask both the adolescent and younger patients attending the meeting to provide solutions.","give the younger patients room restrictions.","review with the group the rules and consequences of intrusive behaviors.","schedule a meeting with the adolescent patients and head nurse for later in the day.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest013 = new Question(
"Question 13",
0,
"The psychiatric clinical specialist conducts a community meeting for children and adolescent patients. Several adolescent patients voice complaints about the intrusive behaviors of the younger children. The most appropriate way to maintain the therapeutic milieu in this situation is to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("educating legislators about the benefits of new psychotropic medications.","lobbying for parity in medical and mental health benefits.","promoting case management for those who are chronically mentally ill.","recommending residential treatment for the mentally ill.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest014 = new Question(
"Question 14",
0,
"Mental illness is misunderstood, feared, stigmatized, and, consequently, undertreated. Overall mental illness affects 1 in 4 families in the United States. The psychiatric clinical specialist focuses on:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("chooses 2 types of randomly assigned treatment.","conducts clinical trials under strict criteria.","provides an evaluation of each child and adolescent, every 6 months for 5 years.","sets up a comparison group of patients who will not be receiving any treatment over a 2 year period.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest015 = new Question(
"Question 15",
0,
"The psychiatric clinical specialist conducts a longitudinal non-experimental study to learn more about the various modalities used to treat bipolar disorder in children and adolescents and how these treatments impact the disease. The clinical specialist:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Deep breathing techniques","Hand washing","Play therapy","Sexually transmitted diseases")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest016 = new Question(
"Question 16",
0,
"The psychiatric clinical specialist is invited to a health fair at a middle school, to specifically address the mental health needs of the school-aged population. In addition to posters which display features of healthy relationships and stress management, which topic is most appropriate for the fair?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("anorexia and bulemia are problems that may emerge in high school.","as children gain independence, their eating habits change.","limiting caloric intake is the primary method to lose weight.","weight is the accurate measure of obesity.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest017 = new Question(
"Question 17",
0,
"A psychiatric clinical specialist works with the parents of school-aged children to address obesity issues. A key principle to include is that:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("concept mapping.","discovery learning.","problem-based learning.","reflective practice.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest018 = new Question(
"Question 18",
0,
"The psychiatric clinical specialist meets regularly with the staff nurses of an adolescent inpatient psychiatric unit to improve the therapeutic interactions of the nurses with the patients. Each nurse keeps a journal describing clinical interactions with an adolescent and examines the factors that hinder the nurse's ability to interact therapeutically with the patient. The clinical specialist reviews the entries and gives written feedback. This teaching strategy is:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("administer electroconvulsive treatments under supervision.","diagnose and treat patients who are in chronic renal failure.","manage patients for medical illness, in a family practice setting.","manage patients treated with psychopharmacologic agents.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest019 = new Question(
"Question 19",
0,
"According to the American Nurses Association's Scope and Standards of Practice, the clinical nurse specialist has the knowledge, skills, and ability to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("hears expert testimony of a psychiatrist.","reads a statement under the reasonable person doctrine of what a reasonably prudent health care provider would do in a given circumstance.","reviews the clinical specialist's education and type of practice.","suspends the clinical specialist's license until case law is established.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest020 = new Question(
"Question 20",
0,
"Any court of law that is evaluating the standards of care provided by a psychiatric clinical specialist:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("educating the parents to assume the role of executive decision makers.","encouraging the parents to listen to the children and implement a family majority rule.","examining ways that each family member can take turns making the decisions.","working with each child to help them to understand that they have a responsibility in making this family work.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest021 = new Question(
"Question 21",
0,
"The parents of 4 children come to the clinic with complaints of difficulty in controlling the behavior of the children. The parents indicate that they are trying to be open minded and diplomatic in their approaches by having the 4 children vote on issues, but this strategy has not been successful. The psychiatric clinical specialist supports the parents' efforts to create boundaries by:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("anxiety disorder.","delirium.","Huntington disease.","schizophrenia.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest022 = new Question(
"Question 22",
0,
"Dysregulation of gamma-aminobutyric acid (GABA) has been associated with the diagnosis of:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("disease process of bipolar affective disorder.","laws related to patient abandonment.","length of time needed to schedule a new appointment.","standards of practice.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest023 = new Question(
"Question 23",
0,
"The psychiatric clinical specialist is informed that a patient with bipolar affective disorder is moving out of the state. The clinical specialist offers a referral to the patient, who then schedules a follow-up appointment with a new provider. The clinical specialist prescribes enough medication to last until the appointment with the new clinical specialist. These actions demonstrate the clinical specialist's understanding of the:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Health maintenance organization","Physician health organization","Private health insurance","Self-pay")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest024 = new Question(
"Question 24",
0,
"Which type of health care reimbursement system potentially allows for the development of &quot;wraparound&quot; services?",
resp,
comm,
corr,
"",
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)

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("       ")
if (questions[quest].img!="") {
document.write("\n")
document.write("          <p><img border=\"0\" src=\"")
document.write(questions[quest].img)
document.write("\"></p>\n")
document.write("       ")
}
document.write("\n")
document.write("       <p><small><font face=\"Verdana,Arial\">")
document.write(numord)
document.write(". ")
document.writeln(questions[quest].qstring)
document.write("</font></small></p>\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")
document.write(" <small><font face=\"Verdana,Arial\">")
if (type<3) document.write(questions[quest].response[i]);
document.write("</font></small><br>\n")
document.write("       ")
}
document.write("\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>Child/Adolescent Psychiatric & Mental Health Nurse</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";}}

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-1; 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>"
