var isNav4, isIE4
var range = ""
var styleObj = ""
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName.indexOf("Microsoft") != -1){
		isIE4 = true
		range = "all."
		styleObj = ".style"
	}
	else {
		isNav4 = true	
	}
}

function checkRadio(){
		for ( grp=0; grp<required_radio.length; grp++){
			c = 0
			radioGrp= eval("document.questions." + required_radio[grp])
	  		for (i=0; i<radioGrp.length; i++){
	     		if (radioGrp[i].checked == 1){   
		  		 c = 1;
		 		} 
	  		}
			if (c == 0){
				return false;
			}	
	  	}
	return true;	
}

function checkText(){	
		for ( i=0; i<required_text.length; i++){
		   q = eval("document.questions." + required_text[i])
		   if (q.value == ""){
				return false;
			}
		}
	return true;
}

function check(){
	 if (!checkText() || !checkRadio()){	
		 alert("All fields with an asterisk must be completed.");
		 return false;	
	 }
	 else{	 		
		return true;
	}
}

function markLink(linkName){
	if (parseInt(navigator.appVersion) >= 4) {
	theLink = eval("document."+range+linkName+styleObj)
	theLink.color = "#009966"
	theLink.textDecoration = "underline"
	}	
	
} 	

function unmarkLink(linkName){
	if (parseInt(navigator.appVersion) >= 4 ) {
		theLink = eval("document."+range+linkName+styleObj)
		theLink.color = "#003399"
		theLink.textDecoration = "none"
	}	
	
} 			