/////////////////////////////////////
//Copyright Joanne S E Smith       //
//Internet Health Library 2000     //
//All Rights Reserved              //
//e-mail: jsesmith@hotmail.com      //
//                                 //
//Simple Report Generator          //
//                                 //
/////////////////////////////////////

function analyze(){
	result1=0;
	result2=0;
	result3=0;
for (a=0;a<52;a=a+3){
		if (document.stress.elements[a].checked) result1++
		};
for (a=1;a<53;a=a+3){
		if (document.stress.elements[a].checked) result2++
		};
for (a=2;a<54;a=a+3){
		if (document.stress.elements[a].checked) result3++
		};

if (result1==result2&&result2==result3){
	location="stress-risk-moderate.htm"
	}
	else{
			if (result1>=result2) {
			if (result1>result3) {
			if (result1==result2) location="stress-risk-moderate.htm"
			else location="stress-risk-low.htm"
			}
			};
			if (result2>=result3) {
			if (result2>result1) {
			if (result2==result3) location="stress-risk-high.htm"
			else location="stress-risk-moderate.htm"
			}
			};
			if (result3>=result1) {
			if (result3>result2) {
			if (result3==result1) location="stress-risk-moderate.htm"
			else location="stress-risk-high.htm"
			}
			};
	};


}
