	<!--
	//###############################################
	// Shows the user the definition
	function def(w, d) {
		alert(w + "\n" + d);
	}
	
	//###############################################
	// Generic function for setting values in boxes
	function num(thebox,value) 
	{
		var theline;
		theline = "document.score." + thebox + ".value = '" + value + "'";
		eval(theline); }
	
	//###############################################
	// Verify the form before submitting
	function check() {
		var v1, v2, v3, v4, errmsg
		v1 = document.score.txt1.value
		v2 = document.score.txt2.value
		v3 = document.score.txt3.value
		v4 = document.score.txt4.value
		errmsg = ''
		
		//==========================
		// Checks for blank answers, sets error message
		if (v1 < '1') {
		errmsg = errmsg + 'The first value is blank\n' }
		if (v2 < '1') {
		errmsg = errmsg + 'The second value is blank\n' }
		if (v3 < '1') {
		errmsg = errmsg + 'The third value is blank\n' }
		if (v4 < '1') {
		errmsg = errmsg + 'The fourth value is blank\n' }
		
		//============================
		// Check for duplicate answers that are not blank
		if (v1 == v2 && v1 > '0') {
			errmsg = errmsg + 'The first and second values are the same.\n' }
		if (v1 == v3 && v1 > '0') {
			errmsg = errmsg + 'The first and third values are the same.\n' }
		if (v1 == v4 && v1 > '0') {
			errmsg = errmsg + 'The first and fourth values are the same.\n' }
		if (v2 == v3 && v2 > '0') {
			errmsg = errmsg + 'The second and third values are the same.\n'}
		if (v2 == v4 && v2 > '0') {
			errmsg = errmsg + 'The second and fourth values are the same.\n'}
		if (v3 == v4 && v3 > '0') {
			errmsg = errmsg + 'The third and fourth values are the same.\n'}
	
	
		//==========================
		// Alerts the user if any errors detected
		if (errmsg > '') {
		errmsg = 'There were some errors in this form:\n\n' + errmsg + '\nPlease correct these errors and\nresubmit.';
		alert(errmsg); }
		
		//==========================
		// If no error found, then the form is submitted
		if (errmsg == '')
			{ document.score.submit() }
	}
	
	//###############################################
	// Resets the form
	function clr() {
		document.score.txt1.value = '';
		document.score.txt2.value = '';
		document.score.txt3.value = '';
		document.score.txt4.value = ''; }
	//-->
