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

resp=new Array("True","False")
corr=new Array("0","1")
quest001 = new Question(
"Question 1",
0,
"I feel I need to prove myself as quickly as possible.",
resp,
corr,
"<small><u>I feel I need to prove myself as quickly as possible.</u> When anxious, our judgement is not as good as it could be. Don't be too much in a rush if it means making disastrous blunders. Also it is too obviously a sign of low confidence to be seen to be in an unseemly haste. Go for some easy quick, visible wins, but focus more, in the early days, on getting to know, and endearing yourself, to key stakeholders, internal customers.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest002 = new Question(
"Question 2",
0,
"I feel as though I have been brought in with unrealistic expectations.",
resp,
corr,
"<small><u>I feel as though I have been brought in with unrealistic expectations.</u> If your confidence is on the low side, you might see any challenging expectations as high risk for you. Set aside the glowing introductions you might have received and get down to some realistic negotiations about what can be done by when. Negotiate not only with your boss, but other key internal customers as well. Stive to under promise and over deliver. If your boss's expectations are unrealistic, sell him or her on the benefits of looking good by under promising and over delivering. If you fail, he or she won't look very bright either. Focus on delivering high value - what your customers would value most from you. Try to build in some quick, visible wins.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest003 = new Question(
"Question 3",
0,
"I feel like I am in a bigger job than I'm ready for.",
resp,
corr,
"<small><u>I feel like I am in a bigger job than I'm ready for.</u> It's natural to feel a bit of trepidation when promoted. Try thinking of your achievements and strengths and not about ways in which you might trip up. Resist the temptation to fall back on technical or professional skills or other comfort zone skills that were more appropriate in your old job. Focus instead on the new requirements of your new customers. Major on using facilitation and influencing skills to get more done through others. <br></small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest004 = new Question(
"Question 4",
0,
"I find myself making quite hasty, high risk decisions now.",
resp,
corr,
"<small><u> I find myself making quite hasty, high risk decisions now.</u> If you rush too much to prove yourself, you could trip yourself up. Better to negotiate realistic expectations with all your stakeholders and encourage joint ownership of major decisions. Manage expectations by positioning yourself as a facilitator, advisor or internal consultant rather than as an expert who is expected to have all the answers. Work more through and with others rather than putting your own neck so totally on the line.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest005 = new Question(
"Question 5",
0,
"Some of my new subordinates are making life difficult for me.",
resp,
corr,
"<small><u>Some of my new subordinates are making life difficult for me.</u> Maybe you are trying too hard to show them up or to prove yourself. It is important to get yourself accepted in a new group by listening and showing respect for those who were there before you came along. Once accepted and trusted, you can then offer your input. Also, show respect for their anxiety over the change of bosses. If they are saying that X cannot be done, instead of arguing back, ask them what they think CAN be done.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest006 = new Question(
"Question 6",
0,
"I do not have anyone to discuss my concerns with openly.",
resp,
corr,
"<small><u>I do not have anyone to discuss my concerns with openly.</u> Why discuss concerns? Why not discuss opportunities? In other words, you should be able to talk about issues with anyone on your team if you present them in a positive light. For example, instead of worrying about poor team harmony, discuss how your team can build on their strengths and diversity of opinion and background. Any concern you have can be re-packaged in this way with a little thought.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest007 = new Question(
"Question 7",
0,
"I am delegating less in order to keep on top of everything.",
resp,
corr,
"<small>I<u> am delegating less in order to keep on top of everything</u>. First, recognize that this is anxiety driven and could create more problems than it solves. Better to manage stakeholder expectations of a new team up front and delegate more instead of less. Communicate more frequently, where necessary, on high risk projects but give people space to deliver.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest008 = new Question(
"Question 8",
0,
"I have little or no support from my new colleagues as yet.",
resp,
corr,
"<small><u>I have little or no support from my new colleagues as yet</u>. Don't worry about pleasing them all in the early days. There may well be a few who will take time to warm to you as a newcomer. Instead of worrying about them, focus on those key players who you can build an early alliance with. Find out how you can help them look good by meeting their needs. Look for mutual benefits and mutual support. Work through your other colleagues on a priority basis over time.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest009 = new Question(
"Question 9",
0,
"I worry a lot about making a fool of myself and failing.",
resp,
corr,
"<small>I<u> worry a lot about making a fool of myself and failing</u>. Everyone has a chance of failing but you have just as much chance of success. If you visualize yourself as failing, this might contribute to it. See yourself as succeeding instead. More importantly, take your mind off this <i>blanket </i>outcome and focus on delivering specifics. Be clear about specific internal customer expectations, look for quick wins and work at what you <i>can </i>do instead of worrying about what you <i>can't.</i></small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest010 = new Question(
"Question 10",
0,
"People are looking to me for answers I do not have.",
resp,
corr,
"<small><u> People are looking to me for answers I do not have</u>. Don't position yourself as an expert in the first place, rather as someone who has some relevant knowledge and who knows where else to find answers. Also, position yourself as a facilitator, someone to help internal customers develop their own solutions. The key is to move from your former expert role to a more strategic one, someone who can help assess solutions but who doesn't have all the answers personally.</small>",
1,
0,
0,
"");

resp=new Array("True","False")
corr=new Array("0","1")
quest011 = new Question(
"Question 11",
0,
"I often delay action as I am not sure what to do.",
resp,
corr,
"<small><u>I often delay action as I am not sure what to do</u>. You are relying too much on yourself to make every decision. Focus more on developing joint solutions with key internal customers or with your team. They will more readily accept jointly developed solutions than yours anyway. See yourself as a coach or facilitator rather than as an expert in your new role.</small>",
1,
0,
0,
"");

questions = new Array (
quest001,quest002,quest003,quest004,quest005,quest006,quest007,quest008,quest009,quest010,quest011)

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 width=\"5%\" align=\"center\" valign=\"top\" bgcolor=\"#E6E6FF\"><font face=\"Verdana\"\n")
document.write("      color=\"#000080\"><strong><small>")
document.write(numord)
document.write("</small></strong></font></td>\n")
document.write("      <td width=\"95%\" valign=\"top\" bgcolor=\"#F4F4FF\"><font face=\"Verdana\"><font color=\"#000080\"><strong><small>\n")
document.write("      ")
if (questions[quest].img!="") {
document.write("\n")
document.write("         <img border=\"0\" hspace=\"10\" vspace=\"5\" 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("</small></strong></font><br>\n")
document.write("      <br><small><small>\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(" <input type="+gadget+" name=\""+myname);
if (type<3) document.write("\" value=\""+i+"\">\n")
else document.write("\" class=\"input\" value=\"\">\n")
if (type<3) document.write(questions[quest].response[i]);
document.write("<br>\n")
document.write("      ")
}
document.write("\n")
document.write("      </small></small></font></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) winr.document.write("<H3>You have made the following errors</H3>");
++errori;
winr.document.write("<p><b>"+uno+"</b><br>"+due+"<br>"+tre+"</p>");
}
function correct(wapf)
{
var i, ii, t, re, tmp, selection, multi, type, isnull, iswrong, iscorrect, evaluation=0, total=0, udat;
errori=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>";}}
winr=window.open('','wapres', 'titlebar=1,location=0,directories=0,menubar=1,toolbar=0,scrollbars=1,resizable=1,status=1')
winr.document.write("<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>")
now= new Date()
winr.document.write("<small><p>"+fill((now.getMonth()+1),2)+"/"+fill(now.getDate(),2)+"/"+now.getYear()+"&nbsp;&nbsp;"+fill(now.getHours(),2)+":"+fill(now.getMinutes(),2)+"</p>")
if (udat.length>0) {
winr.document.write("<b>Information</b><br>\n");
for (i=0; i<udat.length; i++) winr.document.write(udat[i]);}

for (i=0; i<questions.length; i++) {
type=questions[i].type;
if (type==1) multi=1;
else multi=0;
isnull=true;
iscorrect=false;iswrong=false;
selection=0;
evaluation=0;
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 (isnull) isnull=false;
if (questions[i].corrects[selection]=="1") iscorrect=(iswrong==false)?true:false;
else {
iswrong=true;
if (multi) errore(questions[i].qname,"The checkbox  <i>"+questions[i].response[selection]+"</i>  shouldn't have been selected.",questions[i].explan)
}} else {
if (questions[i].corrects[selection]=="1") {
iswrong=true;
if (multi) 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;
}}}
errore(questions[i].qname,"The right answer was <i>"+okresp+".</i>",questions[i].explan);
}
if (isnull) evaluation+=questions[i].ifnull;
else if (iswrong) evaluation+=questions[i].ifwrong;
else if (iscorrect) evaluation+=questions[i].ifcorrect;
total+=evaluation;}
if (errori) {var voc=(errori==1)?"":"s";winr.document.write("<br><b>You have made "+errori+" error"+voc+".</b>");}
else winr.document.write("<h3>Congratulations, you haven't made any errors</h3>")
{var voc=(total==1)?"":"s";winr.document.write("<br><b>Total score: "+total+" point"+voc+".</b><br>");}

winr.document.write("</small><hr noshade><center><form>")
printest=(((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)>='4')) || (navigator.appVersion.lastIndexOf('MSIE 5') !=-1))? '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.")'
winr.document.write("<input type='button' value='Print...' onClick='"+printest+"'>&nbsp;&nbsp;&nbsp;&nbsp;")
winr.document.write("<input type='button' value='Close' onClick='window.close()'></form></center>")
winr.document.write(aknw)
winr.document.close()
if (navigator.appVersion.lastIndexOf('MSIE 3') == -1) nomsie3=true
else nomsie3=false
if (nomsie3) winr.focus()
}
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>"
