// JavaScript Document




/////////////////////////////////////////////
// Auditory Test

function auditorytest(){
 var xax = [document.forms.form11.q_1, document.forms.form11.q_2, document.forms.form11.q_3, document.forms.form11.q_4,document.forms.form11.q_5,document.forms.form11.q_6,document.forms.form11.q_7,document.forms.form11.q_8,document.forms.form11.q_9,document.forms.form11.q_10];
 var sum, grp, x, y;
 var acc = Array(3);
 var ans = ""

 sum = 0;
 for(x = 0; x < 3; x++){
  acc[x] = 0;
  for(y = 0; y < xax.length; y++){
   grp = xax[y];
   if(grp[x].checked){
    sum = sum + 1;
    acc[x] = acc[x] + 1;
   };
  };
 };
 //alert('True: ' + acc[0] + ', False: ' + acc[1] + ', Unsure: ' + acc[2] + ', TOTAL: ' + sum);
		 	var chkansa=acc[0];

			var chkansb=acc[1];

			var chkansc=acc[2];

			//strval="<br>If you answered mostly A’s you created a house of STRAW. <br> If you answered mostly B’s you created a house of TWIGS.<br>If you answered mostly C’s you created a house of STONE.<br><br>For more detailed assessment and further discussion about the Straw, Twigs, and Stone assessment, <a href='contactus.html' class='bottomlinks'>Contact Us</a>.<br> Create a home that invites celebration! Make an appointment today!";
			

			document.getElementById("chkansa").innerHTML =  chkansa;
			document.getElementById("chkansb").innerHTML =  chkansb;
			document.getElementById("chkansc").innerHTML =  chkansc;
   //ans=acc[0]+"  True  "+acc[1]+"  False  "+acc[2]+"  Unsure  <br><br>Would it surprise you to discover that none of these statements are true? Listen to the Audio test again. <a href='contactus.html' class='bottomlinks'>Contact Us</a> for the Authentic Story!";
  //alert(ans);
  document.getElementById("audioanswer").innerHTML =  ans;
};

////////////////////////////////////////////
// Time Travel
function timetravel(){
	
 var xax = [document.forms.frmtime.q_1, document.forms.frmtime.q_2, document.forms.frmtime.q_3, document.forms.frmtime.q_4,document.forms.frmtime.q_5,document.forms.frmtime.q_6,document.forms.frmtime.q_7,document.forms.frmtime.q_8,document.forms.frmtime.q_9,document.forms.frmtime.q_10];
 var sum, grp, x, y;
 var acc = Array(2);

 sum = 0;
 for(x = 0; x < 2; x++){
  acc[x] = 0;
  for(y = 0; y < xax.length; y++){
   grp = xax[y];
   if(grp[x].checked){
    sum = sum + 1;
    acc[x] = acc[x] + 1;
   };
  };
 };
// alert('True: ' + acc[0] + ', False: ' + acc[1] + ', TOTAL: ' + sum);
 
   			chkansatime=acc[0];
			chkansbtime=acc[1];
			
			
			

			document.getElementById("chkansa").innerHTML =  chkansatime;
			document.getElementById("chkansb").innerHTML =  chkansbtime;
			
};

/////////////////////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////////////////////
// Unicorn
function unicorn(){
	
 var xax = [document.forms.frmunicorn.q_1, document.forms.frmunicorn.q_2, document.forms.frmunicorn.q_3, document.forms.frmunicorn.q_4,document.forms.frmunicorn.q_5,document.forms.frmunicorn.q_6,document.forms.frmunicorn.q_7,document.forms.frmunicorn.q_8,document.forms.frmunicorn.q_9,document.forms.frmunicorn.q_10];
 var sum, grp, x, y;
 var acc = Array(2);

 sum = 0;
 for(x = 0; x < 2; x++){
  acc[x] = 0;
  for(y = 0; y < xax.length; y++){
   grp = xax[y];
   if(grp[x].checked){
    sum = sum + 1;
    acc[x] = acc[x] + 1;
   };
  };
 };
// alert('True: ' + acc[0] + ', False: ' + acc[1] + ', TOTAL: ' + sum);
 
  			chkansaunicorn=acc[0];
			chkansbunicorn=acc[1];
			
			
			

			document.getElementById("chkansa").innerHTML =  chkansaunicorn;
			document.getElementById("chkansb").innerHTML =  chkansbunicorn;
};


//////////////////////////////////////////////////////////////////////////////////////////
//Perenting

function parenting(){
	
 var xax = [document.forms.frmperenting.q_1, document.forms.frmperenting.q_2, document.forms.frmperenting.q_3, document.forms.frmperenting.q_4,document.forms.frmperenting.q_5,document.forms.frmperenting.q_6,document.forms.frmperenting.q_7,document.forms.frmperenting.q_8,document.forms.frmperenting.q_9,document.forms.frmperenting.q_10];
 var sum, grp, x, y;
 var acc = Array(2);

 sum = 0;
 for(x = 0; x < 2; x++){
  acc[x] = 0;
  for(y = 0; y < xax.length; y++){
   grp = xax[y];
   if(grp[x].checked){
    sum = sum + 1;
    acc[x] = acc[x] + 1;
   };
  };
 };
// alert('True: ' + acc[0] + ', False: ' + acc[1] + ', TOTAL: ' + sum);
 
 			chkansaperenting=acc[0];
			chkansbperenting=acc[1];
			
			
			

			document.getElementById("chkansa").innerHTML =  chkansaperenting;
			document.getElementById("chkansb").innerHTML =  chkansbperenting;
};

//////////////////////////////////////////////////////////////////////////////////////////
/// Baggage

function baggage()
{
  var _f=document.frmbegger;
  var _m="";
  var _obj=null;
  var m1=0;
  var m2=0;
  var m3=0;
  var m4=0;
  var m5=0;
  var m6=0;
  var m7=0;
  var m8=0;
  var m9=0;
  var m10=0;
  
  var mavg=0;
  
  var ans="";
  
  _obj=_f.r1;
  for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	 _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	 m1 =_obj[i].value;
	 //alert(m2)
	 }
	 //alert ("Selected: ")
 
  _obj=_f.r2;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m2 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.r3;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m3 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

 _obj=_f.r4;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m4 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.r5;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m5 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r6;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m6 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r7;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m7 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

	  _obj=_f.r8;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m8 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r9;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m9 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r10;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m10 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	 
_m3 = (parseInt(m1)+parseInt(m2)+parseInt(m3)+parseInt(m4)+parseInt(m5)+parseInt(m6)+parseInt(m7)+parseInt(m8)+parseInt(m9)+parseInt(m10));
  //alert(_m3);
  if(_m3<=0)
	{
	alert('please select selection')	
	}else{
	
 
  mavg=(parseInt(_m3)/100*100)
  totalavg=mavg.toFixed(2)
 
  document.getElementById("total").innerHTML = totalavg;
  //document.getElementById("totalavg").innerHTML =  mavg;
 
	}
  //if(_f.r1[2].checked) alert("You have selected R1_C");
}
///////////////////////////////////////////////////////////////////////////////////////////////


function authenticity()
{
  var _f=document.frmauthenticity;
  var _m="";
  var _obj=null;
  var m1=0;
  var m2=0;
  var m3=0;
  var m4=0;
  var m5=0;
  var m6=0;
  var m7=0;
  var m8=0;
  var m9=0;
  var m10=0;
  
  var mavg=0;
  
  var ans="";
  
  _obj=_f.r1;
  for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	 _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	 m1 =_obj[i].value;
	 //alert(m2)
	 }
	 //alert ("Selected: ")
 
  _obj=_f.r2;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m2 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.r3;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m3 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

 _obj=_f.r4;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m4 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.r5;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m5 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r6;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m6 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r7;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m7 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

	  _obj=_f.r8;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m8 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r9;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m9 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r10;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m10 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	 
_m3 = (parseInt(m1)+parseInt(m2)+parseInt(m3)+parseInt(m4)+parseInt(m5)+parseInt(m6)+parseInt(m7)+parseInt(m8)+parseInt(m9)+parseInt(m10));
  //alert(_m3);
 
  avrage=(parseFloat(_m3/100)*100)
  //alert(mavg)
  mavg=avrage.toFixed(2);

  msg="";
  document.getElementById("total").innerHTML = mavg;
  //document.getElementById("totalavg").innerHTML =  mavg +"%";
 	
	
	


  //if(_f.r1[2].checked) alert("You have selected R1_C");
}
//////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////

function drivingtest(){
 var xax = [document.forms.frmdriving.r1, document.forms.frmdriving.r2, document.forms.frmdriving.r3, document.forms.frmdriving.r4,document.forms.frmdriving.r5,document.forms.frmdriving.r6,document.forms.frmdriving.r7,document.forms.frmdriving.r8,document.forms.frmdriving.r9,document.forms.frmdriving.r10];
 var sum, grp, x, y;
 var acc = Array(3);

 sum = 0;
 for(x = 0; x < 3; x++){
  acc[x] = 0;
  for(y = 0; y < xax.length; y++){
   grp = xax[y];
   if(grp[x].checked){
    sum = sum + 1;
    acc[x] = acc[x] + 1;
   };
  };
 };
 

//alert('A: ' + acc[0] + ', B: ' + acc[1] + ', C: ' + acc[2] + ',  TOTAL: ' + sum);
	 if(acc[0]<=0 && acc[1]<=0 && acc[2]<=0)
	 {
		alert ('Please Select Selection');	 
	 }else{
	 
			/*//alert('A');
			chktitle="Total the letters and assess your Perspective Vehicle: ";
			chkans=acc[0]+"  &nbsp;A's  ,"+acc[1]+"   &nbsp;B's   ,"+acc[2]+"   &nbsp;C's";
			strval="<br>If you answered mostly A’s you are in a baby carriage. <br> If you answered mostly B’s you are on a motorcycle.<br>If you answered mostly C’s you are in a comfortable car.<br><br>For more detailed assessment and further discussion about “what drives you”, <a href='contactus.html' class='bottomlinks'>contact us</a>.<br> Make an appointment today!";
			document.getElementById("ansdriving").innerHTML =  strval;
				document.getElementById("chkans").innerHTML =  chkans;
			document.getElementById("chktitle").innerHTML =  chktitle;*/
			chkansadriving=acc[0];
			chkansbdriving=acc[1];
			chkanscdriving=acc[2];
			//strval="<br>If you answered mostly A’s you created a house of STRAW. <br> If you answered mostly B’s you created a house of TWIGS.<br>If you answered mostly C’s you created a house of STONE.<br><br>For more detailed assessment and further discussion about the Straw, Twigs, and Stone assessment, <a href='contactus.html' class='bottomlinks'>Contact Us</a>.<br> Create a home that invites celebration! Make an appointment today!";
			

			document.getElementById("chkansa").innerHTML =  chkansadriving;
			document.getElementById("chkansb").innerHTML =  chkansbdriving;
			document.getElementById("chkansc").innerHTML =  chkanscdriving;
			
		}
		
		
	 

};




/////////////////////////////////////////////////////////////////////////////////////////////////




function sumauthentication(){
 var xax = [document.forms.frmauthen.r1, document.forms.frmauthen.r2, document.forms.frmauthen.r3, document.forms.frmauthen.r4,document.forms.frmauthen.r5,document.forms.frmauthen.r6,document.forms.frmauthen.r7,document.forms.frmauthen.r8,document.forms.frmauthen.r9,document.forms.frmauthen.r10];
 var sum, grp, x, y;
 var acc = Array(3);

 sum = 0;
 for(x = 0; x < 3; x++){
  acc[x] = 0;
  for(y = 0; y < xax.length; y++){
   grp = xax[y];
   if(grp[x].checked){
    sum = sum + 1;
    acc[x] = acc[x] + 1;
   };
  };
 };
 

//alert('A: ' + acc[0] + ', B: ' + acc[1] + ', C: ' + acc[2] + ',  TOTAL: ' + sum);
	  if (acc[0]<=0 && acc[1]<=0 && acc[2]<=0)
{
// If there were no selections made display an alert box 
alert("Please select a selections.")

}else{
	 
			//alert('A');
			//chktitle="Total the letters and assess your Perspective Vehicle: ";
			chkansaauthentic=acc[0];
			chkansbauthentic=acc[1];
			chkanscauthentic=acc[2];
			//strval="<br>If you answered mostly A’s you created a house of STRAW. <br> If you answered mostly B’s you created a house of TWIGS.<br>If you answered mostly C’s you created a house of STONE.<br><br>For more detailed assessment and further discussion about the Straw, Twigs, and Stone assessment, <a href='contactus.html' class='bottomlinks'>Contact Us</a>.<br> Create a home that invites celebration! Make an appointment today!";
			

			document.getElementById("chkansa").innerHTML =  chkansaauthentic;
			document.getElementById("chkansb").innerHTML =  chkansbauthentic;
			document.getElementById("chkansc").innerHTML =  chkanscauthentic;
	
		
}
};


//////////////////////////////////////////////////////////////////////////////////

function rockpaper()
{
	
  var _f=document.frmrockpaper;
  var _m="";
  var _obj=null;
  var m1=0;
  var m2=0;
  var m3=0;
  var m4=0;
  var m5=0;
  var m6=0;
  var m7=0;
  var m8=0;
  var m9=0;
  var m10=0;
  
  var mavg=0;
  
  var ans="";
  
  _obj=_f.r1;
  for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	 _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	 m1 =_obj[i].value;
	 //alert(m2)
	 }
	 //alert ("Selected: ")
 
  _obj=_f.r2;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m2 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.r3;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m3 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

 _obj=_f.r4;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m4 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.r5;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m5 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r6;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m6 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r7;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m7 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

	  _obj=_f.r8;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m8 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r9;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m9 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.r10;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _m+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  m10 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	 
_m3 = (parseInt(m1)+parseInt(m2)+parseInt(m3)+parseInt(m4)+parseInt(m5)+parseInt(m6)+parseInt(m7)+parseInt(m8)+parseInt(m9)+parseInt(m10));
  //alert(_m3);
/////////////////////////////////////////////////////////////////////
// Category A End


////////////////////////////////////////////////////////////////////////////
/// Category B Start
  var _fb=document.frmrockpaper;
  var _mb="";
  var _objb=null;
  var mb1=0;
  var mb2=0;
  var mb3=0;
  var mb4=0;
  var mb5=0;
  var mb6=0;
  var mb7=0;
  var mb8=0;
  var mb9=0;
  var mb10=0;
  
  var mavg_b=0;
  
  var ans="";
  
  _objb=_fb.ra1;
  for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	 _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	 mb1 =_objb[i].value;
	 //alert(m2)
	 }
	 //alert ("Selected: ")
 
  _objb=_fb.ra2;
   for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb2 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	  _objb=_fb.ra3;
   for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb3 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }

 _objb=_fb.ra4;
   for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb4 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	  _objb=_fb.ra5;
   	for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb5 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	   _objb=_fb.ra6;
   	for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb6 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	   _objb=_fb.ra7;
   	for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb7 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }

	  _objb=_fb.ra8;
   	for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb8 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	   _objb=_fb.ra9;
   	for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb9 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	   _objb=_fb.ra10;
   	for(var i=0;i<_objb.length;i++)
    if(_objb[i].checked)
	{
	  _mb+="Selected: "+_objb[i].name+"="+_objb[i].value+"\n";
	  mb10 =_objb[i].value
	  //alert(_objb[i].name+"="+_objb[i].value)
	 }
	 
	 
_mb3 = (parseInt(mb1)+parseInt(mb2)+parseInt(mb3)+parseInt(mb4)+parseInt(mb5)+parseInt(mb6)+parseInt(mb7)+parseInt(mb8)+parseInt(mb9)+parseInt(mb10));
  //alert(_mb3);
  ///////////////////////////////////////////////////////////////
  // Category B End 
  
 
 /////////////////////////////////////////////////////////////////
  /// Category C Start
    var _f=document.frmrockpaper;
  var _mc="";
  var _obj=null;
  var mc1=0;
  var mc2=0;
  var mc3=0;
  var mc4=0;
  var mc5=0;
  var mc6=0;
  var mc7=0;
  var mc8=0;
  var mc9=0;
  var mc10=0;
  
  var mavg_c=0;
  
  var ans="";
  
  _obj=_f.rb1;
  for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	 _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	 mc1 =_obj[i].value;
	 //alert(m2)
	 }
	 //alert ("Selected: ")
 
  _obj=_f.rb2;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc2 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.rb3;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc3 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

 _obj=_f.rb4;
   for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc4 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	  _obj=_f.rb5;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc5 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.rb6;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc6 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.rb7;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc7 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }

	  _obj=_f.rb8;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc8 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.rb9;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc9 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	   _obj=_f.rb10;
   	for(var i=0;i<_obj.length;i++)
    if(_obj[i].checked)
	{
	  _mc+="Selected: "+_obj[i].name+"="+_obj[i].value+"\n";
	  mc10 =_obj[i].value
	  //alert(_obj[i].name+"="+_obj[i].value)
	 }
	 
	 
_mc3 = (parseInt(mc1)+parseInt(mc2)+parseInt(mc3)+parseInt(mc4)+parseInt(mc5)+parseInt(mc6)+parseInt(mc7)+parseInt(mc8)+parseInt(mc9)+parseInt(mc10));
  //alert(_mc3);
  
  //Category C End
  ///////////////////////////////////////////////

   catavalue=_m3;
   catbvalue=_mb3;
   catcvalue=_mc3;
 
 //alert(catavalue);
 document.getElementById("cata").innerHTML =  catavalue;
  document.getElementById("catb").innerHTML =  catbvalue;
   document.getElementById("catc").innerHTML =  catcvalue;

  

}
///////////////////////////////

function disableSelection(element) {
    element.onselectstart = function() {
        return false;
    };
    element.unselectable = "on";
    element.style.MozUserSelect = "none";
    element.style.cursor = "default";
}

function onLoad() {
  disableSelection(document.getElementById("t1"));

}
//////////////////////////////////
