// JavaScript Document
function CalcNow()
{var LeftTotal = 0;
var RightTotal = 0;
var i = 0;
	while (i <= 19)	
{		if (document.Survey.elements[i].checked)
{			var checkboxValue = document.Survey.elements[i].value;
			if (checkboxValue == 1)
				{LeftTotal = LeftTotal + 1;}
			if (checkboxValue == -1)
				{RightTotal = RightTotal + 1;}
			}
		var i = i + 1;	}
document.Survey.LeftTotal.value = LeftTotal;
document.Survey.RightTotal.value = RightTotal;

{if (LeftTotal > RightTotal)
	{document.Survey.Answer.value="Your score indicates that you will probably be successful in taking a distance learning course.";}
else if (LeftTotal < RightTotal)
	{document.Survey.Answer.value="Distance learning may not be the most effective way for you to learn.";}
else
	{document.Survey.Answer.value="You are right on the border. You may be successful...but be forewarned!";}
}



}
