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("Communicating the purpose of the department to the staff","Developing objectives that create a climate for learning","Reviewing the goals of the organization","Soliciting ideas from nurses who are employed by the organization")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest001 = new Question(
"Question 1",
0,
"What is the first step in establishing an education department?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("allows more content to be covered in a given amount of time.","is less effective in teaching higher level cognitive concepts.","is more efficient in identifying learning problems.","provides less feedback to users.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest002 = new Question(
"Question 2",
0,
"Compared to interactive, computer-assisted instruction, the lecture-discussion method of instruction:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Administering a written examination at the end of the CPR course","Evaluating the CPR technique by peers","Explaining how CPR can save lives in the workplace","Reviewing the &quot;ABCs&quot; of CPR")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest003 = new Question(
"Question 3",
0,
"Which instructional activity in a program offering on cardiopulmonary resuscitation (CPR) best exemplifies a basic tenet of adult education?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("correctly remove a colostomy pouch.","demonstrate drawing blood from a central line catheter.","explain how they feel about caring for patients with terminal illnesses.","identify two risk factors for heart disease.")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest004 = new Question(
"Question 4",
0,
"A learning objective in the cognitive domain includes asking students to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Announcing the change in a memorandum or newsletter","Assessing the staff's readiness for change","Conducting a forum to address staff concerns","Proposing an educational plan for the new model")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest005 = new Question(
"Question 5",
0,
"What is the priority action when implementing a change in patient care delivery?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Feedback","Impact evaluation","Reaction evaluation","Summative evaluation")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest006 = new Question(
"Question 6",
0,
"Which type of evaluation of an educational activity is the most discriminating?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Cost-effectiveness of the program","Each learner's achievement of each objective","The program's impact on improved patient care quality","The program's impact on the number of risk management incidents")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest007 = new Question(
"Question 7",
0,
"Which result can be derived from a process evaluation?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Certification guarantees that standards of care will be met.","Certification is a means of licensure and public protection.","Certification measures the nurse's knowledge of the specialty.","Certification measures the nurse's level of education.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest008 = new Question(
"Question 8",
0,
"Which is an accurate statement about certification in nursing professional development?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Asking the nurse educator for a list of topics to teach the employee","Asking the preceptor what the employee needs to know","Conducting a learning needs assessment with the employee","Using a standard orientation program")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest009 = new Question(
"Question 9",
0,
"What is the best method for determining what to teach a new nursing employee during orientation?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("The method facilitates meeting the learning objectives.","The physical characteristics of the classroom accommodate the method.","The teacher is skillful in, and comfortable with, using the method.","The time which is allocated for the learning exercise is sufficient.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest010 = new Question(
"Question 10",
0,
"Which is the most important criterion for selecting an educational method?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("&#147;Our quality review shows that we have had 10 medication errors this month indicating a need for a class on medication administration.&#148;","&#147;The nurses on this unit state that they have never worked with unlicensed assistive personnel before and need a class on appropriate delegation of tasks.&#148;","&#147;There has been an increase in tuberculosis cases in the state, so we need to hold a learning activity on tuberculosis transmission.&#148;","&#147;We have to teach the staff to use the patient care assignment sheets at the beginning of each shift.&#148;")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest011 = new Question(
"Question 11",
0,
"Which statement indicates an accurate assessment of a learning need?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("A graduate nurse requests assistance passing the NCLEX-RN.","A nursing assistant is observed failing to follow standard precautions.","A unit nurse educator reports that a newly hired nurse fails to complete electronic documentation.","Oncology unit staff members request a program offering on working with family members of patients who are terminally ill.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest012 = new Question(
"Question 12",
0,
"Which situation requires educational intervention?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("availability of resources.","length of instruction.","nature of the course objectives.","size of the group.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest013 = new Question(
"Question 13",
0,
"A nurse educator is trying to decide which methods and materials to use for a new educational activity. The most important consideration is the:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Applying for an educational grant","Assessing the internal and external environment","Determining how available resources will be used","Promoting new services and programs to targeted employees of the organization")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest014 = new Question(
"Question 14",
0,
"What is the first action when developing a marketing plan?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("available facilities.","clarification of the objectives.","content to be presented.","development of the budget.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest015 = new Question(
"Question 15",
0,
"The nursing educator's priority concern when designing a conference is the:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("develop a staffing plan with the nurse manager for attendance.","generate collaborative agreements with other agencies.","obtain a written agreement from the speaker confirming the honoraria fee and reimbursement of expenses.","request copies of the speaker's book from the publisher.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest016 = new Question(
"Question 16",
0,
"A nurse educator is coordinating a seminar for National Nurses Week and has contacted a nationally known speaker to deliver the keynote address. Early in the planning stage of the seminar, the nurse educator seeks to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("&#147;All nursing personnel, call extension 6338 to register,&#148; printed above a map showing the location of the conference room","&#147;All Registered Nurses Welcome, 5 PM, Monday, West Wing Conference Room&#148;","&#147;Refreshments served, presented by Physical Therapy, October 1 at 5 PM&#148;","&#147;West Wing Conference Room, All Nursing Staff, 5 PM, October 1&#148;")
corr=new Array("0","0","0","1")
comm=""
valu=""
quest017 = new Question(
"Question 17",
0,
"A nursing staff development department that is coordinating a program on back safety plans to post promotional fliers in all nursing conference rooms. To attract the largest audience, the flier includes the program title and which message?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("Educational level","Experiential background","Learning needs","Salary level")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest018 = new Question(
"Question 18",
0,
"When designing a brochure for an educational activity, the nurse educator focuses on which characteristic of the target audience?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("interviews with nursing personnel who are familiar with nurse educator capabilities.","measurement of performance in regard to predetermined objective criteria.","performance comparisons with nurse educators in similar geographic areas.","the number and nature of staff complaints received by the staff development department.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest019 = new Question(
"Question 19",
0,
"Performance evaluations for nurse educators are based upon:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("&#147;Are you familiar with auditory, visual, and tactile methods of instruction?&#148;","&#147;Which instructional technique would you use to teach basic documentation requirements to orientees?&#148;","&#147;Will you be available for flexible scheduling of activities?&#148;","&#147;Would you feel comfortable presenting a lecture on management principles to a class of newly appointed nurse educators?&#148;")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest020 = new Question(
"Question 20",
0,
"When interviewing candidates for the position of nurse educator, which question best elicits information to support a hiring decision?",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("clearly define the program's purpose and functions and the processes by which services are provided.","design an evaluation program that includes quality control, technology measurement, and performance measurement.","develop an evaluation tool to assess the quality of services provided by the department and the desired outcomes.","implement a quality improvement plan, determine its impact, and document the results.")
corr=new Array("1","0","0","0")
comm=""
valu=""
quest021 = new Question(
"Question 21",
0,
"When instituting a quality improvement program for the education department, the most important first action is to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("assess the competence of nursing staff.","determine that educational activities are cost-effective.","identify patient and nursing care issues that require educational intervention.","prepare the education calendar and schedule staff for attendance.")
corr=new Array("0","1","0","0")
comm=""
valu=""
quest022 = new Question(
"Question 22",
0,
"One of the most important leadership functions of a nurse educator is to:",
resp,
comm,
corr,
"",
valu,
1,
0,
0,
"");

resp=new Array("continue to use a lecture format because it allows for interaction with the presenter.","discontinue the use of both fact sheets and lectures.","make no changes in presentation methods until exploring these findings further.","use both lectures and fact sheets to present information.")
corr=new Array("0","0","1","0")
comm=""
valu=""
quest023 = new Question(
"Question 23",
0,
"Research findings indicate no significant difference in teaching effectiveness when using fact sheets versus lectures. In response, the nurse educator's most appropriate action is to:",
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)

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>Nursing Professional Development Exam</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>"
