// selecter is the form name, statelink is the select name.
// to reuse this script, change selecter and statelink
// made possible by Jean R. Moreau, Jr., (with assistance form Rick Petrino) Please, no applause.

function isFilled1(){ 
 //check for user browser type, either netscape4.x or other
 
 if ((navigator.appName  == "Netscape")	&& (parseFloat(navigator.appVersion) >= 4 && 		parseFloat(navigator.appVersion) < 5))	{
			
			browser = "netscape4x";				
		}
		else {
			browser = "allother"	
		}

//if netscape4.x, use this syntax to write special characters to the textbox
	
	if (browser == "netscape4x") {
	
	for (var i = 0;  i < document.BODY.document.quiz.elements.length;  i++) {	
		if (document.BODY.document.quiz.elements[i].value =="") {
			alert("Please fill in the chart completely." )
			location = "p2_tetra.html"
			break
		} else{
		location = "p3_answer.html"
		break
		}
	}		
	

	}
	
//all other browsers use this syntax to write special characters to the textbox

	else {
	
		for (var i = 0;  i < document.quiz.elements.length;  i++) {	
			if (document.quiz.elements[i].value =="") {
				alert("Please fill in the chart completely." )
			location = "p2_tetra.html"
				break
			} else{
		location = "p3_answer.html"
			break
			}
		}	
		 
	}
}
		