//<![CDATA[

var questionCnt = 14; //the number of questions

function displayResult() { 
var yes = 0; 
var no = 0; 
var nothing = 0;



for(var i=1; i<=questionCnt; i++) {


if(document.getElementById("q"+i+"-yes").checked) { 


yes++;


}else if(document.getElementById("q"+i+"-no").checked) {



no++


}else{



nothing++;


}

}



if(nothing > 0) { 

alert("Please answer either yes or no to ALL the questions.");

}else if(yes <= 4) { 

document.getElementById("test-result").innerHTML ="You answered 'Yes' to a total of "+yes+" questions. A reasonable amount of stress is healthy because it keeps us challenged and motivated. Your score indicates that your stress levels are not very high so you must be a Brookdale regular! The more you visit us, the lower your stress levels will be. Hans Seyle, the worlds' foremost researcher on stress, says we all need to take small breaks more often. \n\nPlease use our online booking form to make an enquiry or contact us on the details listed at the bottom of this page.";


document.getElementById("test-result").className = "show";

}else{


document.getElementById("test-result").innerHTML ="You answered 'Yes' to a total of "+yes+" questions. If these symptoms or a combination of symptoms are a pattern in your daily life, you are experiencing stress and positive action should be taken or you could spiral downward into burnout. At Brookdale we give you practical tools for managing stress so make time to rest and recuperate with us soon. The 12 day 'Great Escape' is a wonderful way to recharge but even our 3 day 'Catch a breath' will make a noticeable difference to how you feel. \n\nPlease use our online booking form to make an enquiry or contact us on the details listed at the bottom of this page.";


document.getElementById("test-result").className = "show";

}



return false;
}
//]]> 