
	
	<!-- //
	
	/************************************************/
	/* generated validation script */
	/************************************************/
	
	function isValidEmail(str) {return (str.indexOf('.') > 2) && (str.indexOf('@') > 0);}
	
	function val_submit(){
		
		var error = 0;
			
	
		// Validate Closed Question 01		
		var len = document.mainform.fl_01.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_01[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 01 has not been answered."); var error = 1;
				document.mainform.fl_01[0].focus();
			}
		}		
	
		// Validate Closed Question 03		
		var len = document.mainform.fl_03.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_03[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 03 has not been answered."); var error = 1;
				document.mainform.fl_03[0].focus();
			}
		}
			// Validate Open Question 04
			var emailvalid = isValidEmail(document.mainform.fl_04_cmt.value);			
			if(emailvalid == false && error == 0){
				alert("Question: 04: please enter a valid email address.");
				document.mainform.fl_04_cmt.focus();
				var error = 1;
			}		
	
		// Validate Select Question 05 + Comments
		if(document.mainform.fl_05.value=="" && error == 0){
			if(document.mainform.fl_05_cmt.value==""){
				alert("Question: 05 has not been answered.");
				document.mainform.fl_05.focus();
				var error = 1;
			}	
		}		
	
		// Validate Closed Question 06 + Comments		
		var len = document.mainform.fl_06.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_06[i].checked) {check = 1;}}				
			if(document.mainform.fl_06_cmt.value=="" && check == 0){
				alert("Question: 06 has not been answered."); var error = 1;
				document.mainform.fl_06[0].focus();
			}
		}		
	
		// Validate Closed Question 07 + Comments		
		var len = document.mainform.fl_07.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_07[i].checked) {check = 1;}}				
			if(document.mainform.fl_07_cmt.value=="" && check == 0){
				alert("Question: 07 has not been answered."); var error = 1;
				document.mainform.fl_07[0].focus();
			}
		}		
	
		// Validate Closed Question 08		
		var len = document.mainform.fl_08.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_08[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 08 has not been answered."); var error = 1;
				document.mainform.fl_08[0].focus();
			}
		}		
	
		// Validate Closed Question 09		
		var len = document.mainform.fl_09.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_09[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 09 has not been answered."); var error = 1;
				document.mainform.fl_09[0].focus();
			}
		}		
	
		// Validate Closed Question 10		
		var len = document.mainform.fl_10.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_10[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 10 has not been answered."); var error = 1;
				document.mainform.fl_10[0].focus();
			}
		}		
	
		// Validate Closed Question 11		
		var len = document.mainform.fl_11.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_11[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 11 has not been answered."); var error = 1;
				document.mainform.fl_11[0].focus();
			}
		}		
	
		// Validate Closed Question 12 + Comments		
		var len = document.mainform.fl_12.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_12[i].checked) {check = 1;}}				
			if(document.mainform.fl_12_cmt.value=="" && check == 0){
				alert("Question: 12 has not been answered."); var error = 1;
				document.mainform.fl_12[0].focus();
			}
		}		
	
		// Validate Closed Question 13		
		var len = document.mainform.fl_13.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_13[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 13 has not been answered."); var error = 1;
				document.mainform.fl_13[0].focus();
			}
		}		
	
		// Validate Closed Question 14		
		var len = document.mainform.fl_14.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_14[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 14 has not been answered."); var error = 1;
				document.mainform.fl_14[0].focus();
			}
		}		
	
		// Validate Closed Question 15		
		var len = document.mainform.fl_15.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_15[i].checked) {check = 1;}}				
			if(check==0){
				alert("Question: 15 has not been answered."); var error = 1;
				document.mainform.fl_15[0].focus();
			}
		}		
	
		// Validate Closed Question 16 + Comments		
		var len = document.mainform.fl_16.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_16[i].checked) {check = 1;}}				
			if(document.mainform.fl_16_cmt.value=="" && check == 0){
				alert("Question: 16 has not been answered."); var error = 1;
				document.mainform.fl_16[0].focus();
			}
		}		
	
		// Validate Closed Question 17 + Comments		
		var len = document.mainform.fl_17.length;
		if(error == 0){
			var check = 0;				
			for (i=0;i<len;i++) {if (document.mainform.fl_17[i].checked) {check = 1;}}				
			if(document.mainform.fl_17_cmt.value=="" && check == 0){
				alert("Question: 17 has not been answered."); var error = 1;
				document.mainform.fl_17[0].focus();
			}
		}
	
		if(error==0){
			document.mainform.submit();
		}
	}	
	// -->		
	