// JavaScript Document//var total = 0;
//function scoreQ() {
//for(var i=0; i<5; ++i;) {
//if (document.forms[0].q1[i].checked == true) {
//total += i;
//window.alert("1");
		//}
	//}
//}
/*var obj = null;
function urb(objectID) {
window.alert("");
//document.column2.scrollTo(0,0);
var obj = top.document.getElementById(objectID);
obj.style.top = 2000 + 'px';
} */
function scrollPageTo(x,y) {
	document.body.scrollLeft = x;
	document.body.scrollTop = y;
	return;
}
var total = 0;
function scoreQ(pik) {
if (pik == 'a')
total += 1;
if (pik == 'b')
total += 2;
if (pik == 'c')
total += 3;
if (pik == 'd')
total += 4;
if (pik == 'e')
total += 5;
}
var display = "";
function displayScore(total) {
//scrollPageTo(0,0);
if (total <= 40)
{display = ("<h3 style='background-color:#ffff66; padding: 6px; width:400px'>You're total score is " + total + " you are within the normal range!</h3>");
var object = document.getElementById('show'); 
object.innerHTML = '&nbsp;&nbsp;&nbsp;<img src = "happy.gif" alt = "happy" width="102 height="102 border="0" style="float:right" />' + display + '<br /><br /><br /><a name="end" id="end"></a>';
location.href = "#end"; 
//window.self.scrollTo(100,500);
}
if (total > 40)
{display = ("<h3 style='color:#ffffff; background-color:#ff0000; padding: 6px; width:400px'>You're total score is " + total + " you are above the normal range!</h3>");
object = document.getElementById('show');
object.innerHTML = '&nbsp;&nbsp;&nbsp;<img src = "mad.gif" alt = "mad" width="102 height="102 border="0" style="float:right" />' + display + '<br /><br /><br /><a name="end2" id="end"></a>';
location.href = "#end2"; 
}
}
function clearTotal() {
total = 0;
} 

