var scoreV = 0;var scoreS = 0;var scoreP = 0;var scoreC = 0;var scoreL = 0;var scoreA = 0;var scoreJ = 0;var scoreB = 0;var scoreO = 0;var scoreSV = 0;var	passpage = document.URL; 
function ScoreV(){scoreV = scoreV+1};function ScoreS(){scoreS = scoreS+1};
function ScoreP(){scoreP = scoreP+1};function ScoreC(){scoreC = scoreC+1};
function ScoreL(){scoreL = scoreL+1};function ScoreA(){scoreA = scoreA+1};
function ScoreJ(){scoreJ = scoreJ+1};function ScoreB(){scoreB = scoreB+1};
function ScoreO(){scoreO = scoreO+1};function ScoreSV(){scoreSV = scoreSV+1};
function hilightButton(s)
{if ("INPUT"==event.srcElement.tagName)event.srcElement.className=s}
function inventory() 
{
//enables right click and mouse drag in browser
document.onselectstart=new Function("return true;");document.oncontextmenu=new Function("return true;"); 

document.write("\
<head><link rel='stylesheet' media='all' type='text\/css' href='..\/css\/2007.css' \/><\/head><body><div id='head'><div class='menu'><ul><li><a href='http:\/\/www.etresoi.ch\/FrHVBvoir.html'>L\'ART DE VOIR <!--[if IE 7]><!--><\/a> <!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><!--[if lte IE 6]><\/td><\/tr><\/table><\/a><![endif]--><\/li><li><a href='http:\/\/www.etresoi.ch\/FrHVBjeu.html'>        LE JEU<!--[if IE 7]><!--><\/a> <!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><!--[if lte IE 6]><\/td><\/tr><\/table><\/a><![endif]--><\/li><li><a href='http:\/\/www.etresoi.ch\/FrHVBfamille.html'>   MA FAMILLE <!--[if IE 7]><!--><\/a> <!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><!--[if lte IE 6]><\/td><\/tr><\/table><\/a><![endif]--><\/li><li><a href='..\/int\/interact.html'>   INTERACTIF<!--[if IE 7]><!--><\/a> <!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><!--[if lte IE 6]><\/td><\/tr><\/table><\/a><![endif]--><\/li><\/ul><\/div><\/div>\
<div id='left'><div id='pad4'><\/div><center><img src='..\/img\/hvb_sig_trans2.GIF' width='150' height='112' border='0'<\/center><\/div>\<DIV id=content><DIV class=pad2></DIV><table width=100%><tr><td><H4>EVALUATION</H4></td></tr>\
<tr><td><br><br><H4>VALUE : Your result for the beliefs related to value is " +scoreV+".</H4></td></tr><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statements : 'I have value', 'I know my value'.</p></td></tr>\
<tr><td><br><br><H4>SECURITY :  Your result for the beliefs related to security is " +scoreS+". </H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statement  : 'I am secure.'</p></tr></td>\
<tr><td><br><br><H4>PERFORMANCE : Your result for the beliefs related to performance is " +scoreP+".</H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statements  : 'I am competent', 'I am confident in my decisions'.</p></tr></td>\
<tr><td><br><br><H4>CONTROL : Your result for the beliefs related to control is " +scoreC+".</H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statement : 'I control my life'.</P</tr></td>\
<tr><td><br><br><H4>LOVE :  Your result for the beliefs related to love is " +scoreL+".</H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statement : 'I am loved'.</p></tr></td>\
<tr><td><br><br><H4>AUTONOMY : Your result for the beliefs related to autonomy is " +scoreA+".</H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statements  : 'I am autonomous', 'I can fulfill my needs, easily'.</p></tr></td>\
<tr><td><br><br><H4>JUSTICE : Your result for the beliefs related to justice is " +scoreJ+".</H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statements : 'The world is just and fair', 'I am treated fairly'.</p></tr></td>\
<tr><td><br><br><H4>SHARING :  Your result for the beliefs related to sharing is " +scoreB+".<H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statement :  'I share'.</p></tr></td>\
<tr><td><br><br><H4>OTHERS :  Your result for the beliefs related to others is " +scoreO+".<H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the statement : 'I have confidence in others'.</p></tr></td>\
<tr><td><br><br><H4>PRINCIPLES: Your result for the beliefs related to principles is "+scoreSV+".</H4></tr></td><tr><td><p>On a scale of 1 to 10, this result indicates how much you agree with the staement : 'My scale of values, or my principles, are reasonable for me.'.</p></td></tr><tr><td>");
	
	function jsChart(){}function jsRowSet(){return new Array()};jsChart.prototype.spacing=0;
	jsChart.prototype.rows=new jsRowSet();jsChart.prototype.vertical=0;jsChart.prototype.draw=jsDrawChart;jsChart.prototype.x=0;jsChart.prototype.showcaptions=1;jsChart.prototype.separator=1;jsChart.prototype.showgrid=1;jsChart.prototype.title="";jsChart.prototype.fontface="Comic_Sans__MS";jsChart.prototype.fontsize=1;jsChart.prototype.showtotals=1;jsChart.prototype.maxsize=1;jsChart.prototype.bgcolor="#FFFFFF";jsChart.prototype.bordersize=0;jsChart.prototype.description="";jsChart.prototype.bordercolor="#000000";jsChart.prototype.drawlegend=jsDrawLegend;
	function jsDrawChart(){this.bordercolor=="" ? this.bordercolor="#FFFFFF":"";this.bgcolor=="" ? this.bgcolor="#FFFFFF":"";this.title!="" ? document.write(""+this.title+"") : "";
	document.write("<center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#D06000\"><tr><td>")
	document.write("<table border=\"0\" cellspacing=\""+this.spacing+"\" cellpadding=\"0\" bgcolor=\""+this.bgcolor+"\">")
				if (this.vertical){document.write("<tr>");newwid=0;truewid=0;maxsize=0;displayx=0;this.maxsize>1?newwid=this.maxsize:"";for(x=0;x<=this.rows.length-1;x++){this.rows[x].value>truewid?truewid=this.rows[x].value:"";}this.maxsize>1?newwid=this.maxsize:newwid=truewid;this.showgrid?document.write("<td valign=\"bottom\"><table align=\"bottom\" height=\""+newwid+"\"><tr><td valign=\"top\" align=\"right\"><font face=\""+this.fontface+"\" size=\""+this.fontsize+"\">"+truewid+" -</font></td></tr><tr><td align=\"right\"><font face=\""+this.fontface+"\" size=\""+this.fontsize+"\">"+parseInt(truewid)/2+" -</font></td></tr><tr><td  align=\"right\" valign=\"bottom\"><font face=\""+this.fontface+"\" size=\""+this.fontsize+"\">"+this.x+" -</font></td></tr></table></td><td bgcolor=\"#D06000\" width=\"1\"></td>"):"";
			  for (r=0;r<=this.rows.length-1;r++){this.maxsize>1?displayx=parseInt((this.rows[r].value*this.maxsize)/truewid):displayx=this.rows[r].value;cap=this.rows[r].caption;newcap="";
			  for(p=0;p<=cap.length-1;p++){newcap=newcap+cap.substr(p,1)+"<br>"}
this.showcaptions ? document.write("<td valign=\"bottom\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td valign=\"bottom\"><font face=\"Arial\" size=\"1px\">"+newcap+"</font></td></tr></table></td>") : "";		  
			  document.write("<td valign=\"bottom\"><table  align=\"bottom\" border=\""+this.rows[r].border+"\" cellspacing=\"0\" cellpadding=\"0\" width=\""+this.rows[r].width+"\" height=\""+displayx+"\"><tr><td valign=\"top\" bgcolor=\""+this.rows[r].color+"\">")
this.showtotals?document.write("<font face=\""+this.fontface+"\" size=\""+this.fontsize+"\" color=\""+this.rows[r].textcolor+"\">"+this.rows[r].value+"</font></td></tr></table></td>"):"";}
document.write("</tr>")}document.write("</table></td></tr></table></center>\n")
}
function jsDrawLegend()
{document.write("<br><table border=\"0\" cellspacing=\"2\" cellpadding=\"3\">");for(r=0;r<=this.rows.length-1;r++){document.write("<tr><td bgcolor=\""+this.rows[r].color+"\">&nbsp;&nbsp;</td><td><p>"+this.rows[r].caption+"</p></td></tr>")}document.write("</table>\n")}
	var myChart=new jsChart();
	myChart.title="<h4>BELIEF INVENTORY<br>In percentage of agreement</h4>";myChart.spacing=5;myChart.vertical=true;myChart.showgrid=true;myChart.fontsize=2;myChart.showtotals=true;myChart.maxsize=150;myChart.separator=false;myChart.x=0;myChart.border=0;myChart.bgcolor="#FFFFFF";myChart.description="";myChart.showcaptions=true;
	myChart.rows=new jsRowSet();
var Vp=(scoreV*10);var Sp=(scoreS*10);var Cp=(scoreC*10);var Lp=(scoreL*10);var Ap=(scoreA*10);var Jp=(scoreJ*10);var Bp=(scoreB*10);var Op=(scoreO*10);var SVp=(scoreSV*10);var Pp=(scoreP*10);
	myChart.rows[0]={width:1,value:100,color:"white",caption:"||||||||||",textcolor:"#FFFFFF",border:0}
	myChart.rows[1]={width:25,value:""+Vp+"",color:"blue",caption:"VALUE",textcolor:"white",border:1}
	myChart.rows[2]={width:25,value:""+Sp+"",color:"green",caption:"SECURITY",textcolor:"white",border:1}
	myChart.rows[3]={width:25,value:""+Pp+"",color:"burgundy",caption:"PERFORMANCE",textcolor:"white",border:1}
	myChart.rows[4]={width:25,value:""+Cp+"",color:"teal",caption:"CONTROL",textcolor:"#FFFFFF",border:0}
	myChart.rows[5]={width:25,value:""+Lp+"",color:"orange",caption:"LOVE",textcolor:"#333333",border:1}
	myChart.rows[6]={width:25,value:""+Ap+"",color:"pink",caption:"AUTONOMY",textcolor:"#333333",border:1}
	myChart.rows[7]={width:25,value:""+Jp+"",color:"yellow",caption:"JUSTICE",textcolor:"#333333",border:1}
	myChart.rows[8]={width:25,value:""+Bp+"",color:"brown",caption:"SHARING",textcolor:"#FFFFFF",border:1}
	myChart.rows[9]={width:25,value:""+Op+"",color:"black",caption:"OTHERS",textcolor:"#FFFFFF",border:1}
	myChart.rows[10]={width:25,value:""+SVp+"",color:"gray",caption:"PRINCIPLES",textcolor:"#FFFFFF",border:1}
	myChart.draw();
document.write("\
	<tr><td><p>This belief inventory is only a guide.  It is designed to assist you in identifying some of your underlying beliefs\
	and not for judging them, or yourself. This inventory shows you how you see the world, as a product of your experiences. \
	The results are niether good, nor bad.</p></td></tr></table></div>")

}

