<!--
function Get_Results(){
	var z = document.frm;
	var score = 0;
 
	score = score + addScore(z.q1);
	score = score + addScore(z.q2);
	score = score + addScore(z.q3);
	score = score + addScore(z.q4);
	score = score + addScore(z.q5);
	score = score + addScore(z.q6);
	score = score + addScore(z.q7);
	
 
	//alert(score);
	if(score>=0 && score<=11){
		result("Your score is: "+score+"\n(0-11 points): Your First Date IQ is, well, at a DATING CHALLENGED level.  A lot of reading up on dating is recommended before you attempt going out on a first date if you don't want your first date to be your last.", "DATING CHALLENGED IQ");
	}else if(score>=12 && score<=20){
		result("Your score is: "+score+"\n(12-20 points) Your First Date IQ is AVERAGE - you need to work on your dating skills and undergo sensitivity training before dating. ", "AVERAGE IQ");
	}else if(score>=21 && score<=29){
		result("Your score is: "+score+"\n(21-29 points) Your First Date IQ is HIGH - but you need to brush up a little on your interpersonal skills.  Remember to think about the other person and increase your sensitivity to others' needs. Keep the old adage 'do unto other' in mind and you'll be fine on your first date.", "HIGH IQ");
	}else if(score>=30 && score<=50){
		result("Your score is: "+score+"\n(32-50 points) Congratulations!  Your First Date IQ is at the certified GENIUS level. You are socially aware, personable and sensitive to others.  You'll do well on your first date and all dates thereafter.  Go for it!", "GENIUS");
	}else
 
	return false;
}
 
function addScore(q){
	for(i=0; i<5; i++){
		if(q[i].checked==true){
			//alert("="+q[i].value);
			return q[i].value * 1;
		}
	}
	alert("Please answer all questions in order to receive accurate results...");
}
 
function result(msg, name, pic){
	var newWin = window.open("", "", "width=550, height=100");
	newWin.document.open();
	newWin.document.write('<head><title>'+name+'</title></head><table border><tr><td></td><td>'+msg+'</td></tr></table>');
}
//-->
  
