function CheckRequiredFields_360() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.talent.cat1))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat2))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat3))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat4))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat5))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat6))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat7))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat8))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat9))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat10))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat11))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat12))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat13))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat14))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat15))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat16))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat17))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat18))
	{ errormessage += "\n\nOops, you forgot a question."; }  
if(NoneWithCheck(document.talent.cat19))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat20))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat21))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat22))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat23))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat24))
	{ errormessage += "\n\nOops, you forgot a question."; }
if(NoneWithCheck(document.talent.cat25))
	{ errormessage += "\n\nOops, you forgot a question."; }


// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}


function catWindow() {
	catWindow =window.open("view_comments.php", "Catwin", "width =500, height=450, scrollbars=yes")
	}
	
	function categoryWindow() {
	catWindow =window.open("categories.php", "Categwin", "width =600, height=450, scrollbars=yes")
	}
	
	function CheckRequiredFields() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.na.current1))
	{ errormessage += "\n\nOops, you forgot to score statement 1 in the current column."; }
if(NoneWithCheck(document.na.need1))
	{ errormessage += "\n\nOops, you forgot to score statement 1 in the need column."; }
if(NoneWithCheck(document.na.current2))
	{ errormessage += "\n\nOops, you forgot to score statement 2 in the current column."; }
if(NoneWithCheck(document.na.need2))
	{ errormessage += "\n\nOops, you forgot to score statement 2 in the current need."; }
if(NoneWithCheck(document.na.current3))
	{ errormessage += "\n\nOops, you forgot to score statement 3 in the current column."; }
if(NoneWithCheck(document.na.need3))
	{ errormessage += "\n\nOops, you forgot to score statement 3 in the need column."; }
if(NoneWithCheck(document.na.current4))
	{ errormessage += "\n\nOops, you forgot to score statement 4 in the current column."; }
if(NoneWithCheck(document.na.need4))
	{ errormessage += "\n\nOops, you forgot to score statement 4 in the need column."; }
if(NoneWithCheck(document.na.current5))
	{ errormessage += "\n\nOops, you forgot to score statement 5 in the current column."; }
if(NoneWithCheck(document.na.need5))
	{ errormessage += "\n\nOops, you forgot to score statement 5 in the need column."; }



// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}


function ValidateQuiz_4() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }




// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

function ValidateQuiz_5() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }
if(NoneWithCheck(document.quiz.resp5))
	{ errormessage += "\n\nOops, you forgot to answer question 5."; }




// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

function ValidateQuiz_6() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }
if(NoneWithCheck(document.quiz.resp5))
	{ errormessage += "\n\nOops, you forgot to answer question 5."; }
if(NoneWithCheck(document.quiz.resp6))
	{ errormessage += "\n\nOops, you forgot to answer question 6."; }




// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

function ValidateQuiz_7() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }
if(NoneWithCheck(document.quiz.resp5))
	{ errormessage += "\n\nOops, you forgot to answer question 5."; }
if(NoneWithCheck(document.quiz.resp6))
	{ errormessage += "\n\nOops, you forgot to answer question 6."; }
if(NoneWithCheck(document.quiz.resp7))
	{ errormessage += "\n\nOops, you forgot to answer question 7."; }





// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}


function ValidateQuiz_8() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }
if(NoneWithCheck(document.quiz.resp5))
	{ errormessage += "\n\nOops, you forgot to answer question 5."; }
if(NoneWithCheck(document.quiz.resp6))
	{ errormessage += "\n\nOops, you forgot to answer question 6."; }
if(NoneWithCheck(document.quiz.resp7))
	{ errormessage += "\n\nOops, you forgot to answer question 7."; }
if(NoneWithCheck(document.quiz.resp8))
	{ errormessage += "\n\nOops, you forgot to answer question 8."; }





// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

function ValidateQuiz_9() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }
if(NoneWithCheck(document.quiz.resp5))
	{ errormessage += "\n\nOops, you forgot to answer question 5."; }
if(NoneWithCheck(document.quiz.resp6))
	{ errormessage += "\n\nOops, you forgot to answer question 6."; }
if(NoneWithCheck(document.quiz.resp7))
	{ errormessage += "\n\nOops, you forgot to answer question 7."; }
if(NoneWithCheck(document.quiz.resp8))
	{ errormessage += "\n\nOops, you forgot to answer question 8."; }
if(NoneWithCheck(document.quiz.resp9))
	{ errormessage += "\n\nOops, you forgot to answer question 9."; }





// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}


function ValidateQuiz_10() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.quiz.resp1))
	{ errormessage += "\n\nOops, you forgot to answer question 1."; }
if(NoneWithCheck(document.quiz.resp2))
	{ errormessage += "\n\nOops, you forgot to answer question 2."; }
if(NoneWithCheck(document.quiz.resp3))
	{ errormessage += "\n\nOops, you forgot to answer question 3."; }
if(NoneWithCheck(document.quiz.resp4))
	{ errormessage += "\n\nOops, you forgot to answer question 4."; }
if(NoneWithCheck(document.quiz.resp5))
	{ errormessage += "\n\nOops, you forgot to answer question 5."; }
if(NoneWithCheck(document.quiz.resp6))
	{ errormessage += "\n\nOops, you forgot to answer question 6."; }
if(NoneWithCheck(document.quiz.resp7))
	{ errormessage += "\n\nOops, you forgot to answer question 7."; }
if(NoneWithCheck(document.quiz.resp8))
	{ errormessage += "\n\nOops, you forgot to answer question 8."; }
if(NoneWithCheck(document.quiz.resp9))
	{ errormessage += "\n\nOops, you forgot to answer question 9."; }
if(NoneWithCheck(document.quiz.resp10))
	{ errormessage += "\n\nOops, you forgot to answer question 10."; }





// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

	
<!-- 360/step4half.php -->	
	function checkform()
{
	
	var demo1 = document.demo.dem_num1;
	if(parseInt(demo1)!=demo1-0)
	{
		return false;
		alert("One or more of the values you entered are not a number.  Please type in the number of people you would like to send E-mails to who fit this demographic.")
	}
	
	if (isInteger(document.demo.dem_num2.value))
	{
		
	} else {
		return false;
		alert("One or more of the values you entered are not a number.  Please type in the number of people you would like to send E-mails to who fit this demographic.")
	}
	
	if (isInteger(document.demo.dem_num3.value))
	{
		
	} else {
		return false;
		alert("One or more of the values you entered are not a number.  Please type in the number of people you would like to send E-mails to who fit this demographic.")
	}
	// If the script gets this far through all of your fields
	// without problems, it's ok and you can submit the form

	return true;
}


function check_360_4()
{
   if (document.demo.dem_num1.value >= 1 && document.demo.dem_num2.value >= 1 && document.demo.dem_num3.value >= 1){
        return true;
    }
    else{
       alert("The value you entered is not valid.  Please choose the number of people that will be assessing you for each demographic!")
       return false;
    }
        
}


function CheckRequiredFields_oh() {
var errormessage = new String();
// Put field checks below this point.

if(NoneWithCheck(document.talent.score_1))
	{ errormessage += "\n\nOops, you missed statement 1."; }
if(NoneWithCheck(document.talent.score_2))
	{ errormessage += "\n\nOops, you missed statement 2."; }
if(NoneWithCheck(document.talent.score_3))
	{ errormessage += "\n\nOops, you missed statement 3."; }
if(NoneWithCheck(document.talent.score_4))
	{ errormessage += "\n\nOops, you missed statement 4."; }
if(NoneWithCheck(document.talent.score_5))
	{ errormessage += "\n\nOops, you missed statement 5."; }
if(NoneWithCheck(document.talent.score_6))
	{ errormessage += "\n\nOops, you missed statement 6."; }
if(NoneWithCheck(document.talent.score_7))
	{ errormessage += "\n\nOops, you missed statement 7."; }
if(NoneWithCheck(document.talent.score_8))
	{ errormessage += "\n\nOops, you missed statement 8."; }
if(NoneWithCheck(document.talent.score_9))
	{ errormessage += "\n\nOops, you missed statement 9."; }
if(NoneWithCheck(document.talent.score_10))
	{ errormessage += "\n\nOops, you missed statement 10."; }
if(NoneWithCheck(document.talent.score_11))
	{ errormessage += "\n\nOops, you missed statement 11."; }
if(NoneWithCheck(document.talent.score_12))
	{ errormessage += "\n\nOops, you missed statement 12."; }
if(NoneWithCheck(document.talent.score_13))
	{ errormessage += "\n\nOops, you missed statement 13."; }
if(NoneWithCheck(document.talent.score_14))
	{ errormessage += "\n\nOops, you missed statement 14."; }
if(NoneWithCheck(document.talent.score_15))
	{ errormessage += "\n\nOops, you missed statement 15."; }
if(NoneWithCheck(document.talent.score_16))
	{ errormessage += "\n\nOops, you missed statement 16."; }
if(NoneWithCheck(document.talent.score_17))
	{ errormessage += "\n\nOops, you missed statement 17."; }
if(NoneWithCheck(document.talent.score_18))
	{ errormessage += "\n\nOops, you missed statement 18."; }  
if(NoneWithCheck(document.talent.score_19))
	{ errormessage += "\n\nOops, you missed statement 19."; }
if(NoneWithCheck(document.talent.score_20))
	{ errormessage += "\n\nOops, you missed statement 20."; }
if(NoneWithCheck(document.talent.score_21))
	{ errormessage += "\n\nOops, you missed statement 21."; }
if(NoneWithCheck(document.talent.score_22))
	{ errormessage += "\n\nOops, you missed statement 22."; }
if(NoneWithCheck(document.talent.score_23))
	{ errormessage += "\n\nOops, you missed statement 23."; }
if(NoneWithCheck(document.talent.score_24))
	{ errormessage += "\n\nOops, you missed statement 24."; }
if(NoneWithCheck(document.talent.score_25))
	{ errormessage += "\n\nOops, you missed statement 25."; }
if(NoneWithCheck(document.talent.score_26))
	{ errormessage += "\n\nOops, you missed statement 26."; }
if(NoneWithCheck(document.talent.score_27))
	{ errormessage += "\n\nOops, you missed statement 27."; }
if(NoneWithCheck(document.talent.score_28))
	{ errormessage += "\n\nOops, you missed statement 28."; }
if(NoneWithCheck(document.talent.score_29))
	{ errormessage += "\n\nOops, you missed statement 29."; }
if(NoneWithCheck(document.talent.score_30))
	{ errormessage += "\n\nOops, you missed statement 30."; }
if(NoneWithCheck(document.talent.score_31))
	{ errormessage += "\n\nOops, you missed statement 31."; }
if(NoneWithCheck(document.talent.score_32))
	{ errormessage += "\n\nOops, you missed statement 32."; }
if(NoneWithCheck(document.talent.score_33))
	{ errormessage += "\n\nOops, you missed statement 33."; }
if(NoneWithCheck(document.talent.score_34))
	{ errormessage += "\n\nOops, you missed statement 34."; }
if(NoneWithCheck(document.talent.score_35))
	{ errormessage += "\n\nOops, you missed statement 35."; }
if(NoneWithCheck(document.talent.score_36))
	{ errormessage += "\n\nOops, you missed statement 36."; }
if(NoneWithCheck(document.talent.score_37))
	{ errormessage += "\n\nOops, you missed statement 37."; }
if(NoneWithCheck(document.talent.score_38))
	{ errormessage += "\n\nOops, you missed statement 38."; }
if(NoneWithCheck(document.talent.score_39))
	{ errormessage += "\n\nOops, you missed statement 39."; }
if(NoneWithCheck(document.talent.score_40))
	{ errormessage += "\n\nOops, you missed statement 40."; }
if(NoneWithCheck(document.talent.score_41))
	{ errormessage += "\n\nOops, you missed statement 41."; }
if(NoneWithCheck(document.talent.score_42))
	{ errormessage += "\n\nOops, you missed statement 42."; }
if(NoneWithCheck(document.talent.score_43))
	{ errormessage += "\n\nOops, you missed statement 43."; }
if(NoneWithCheck(document.talent.score_44))
	{ errormessage += "\n\nOops, you missed statement 44."; }
if(NoneWithCheck(document.talent.score_45))
	{ errormessage += "\n\nOops, you missed statement 45."; }



// Put field checks above this point.
if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

	
	
function validateDemo(){

if(document.demo.location.selectedIndex==0)
{
alert("Please select your location.");
document.demo.location.focus();
return false;
}
return true;
} 



		
		function checkAnswers() {


//-----------prefer section 1-----------------
		
		var prefer1 = document.ci.prefer1.value;  
		var prefer2 = document.ci.prefer2.value;
		var prefer3 = document.ci.prefer3.value;
		var prefer4 = document.ci.prefer4.value;
		
	
		
if (prefer1 == prefer2 || prefer1 == prefer3 || prefer1 == prefer4 || prefer2 == prefer3 || prefer3 == prefer4 || prefer4 == prefer2 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 1 in the prefered column");
return false; //cancel submission
}

if (prefer1 == '' || prefer2 == '' || prefer3 == '' || prefer4 == '') {
alert("Oops, you missed a field at section 1 in the prefered column");
return false; //cancel submission
}


// validate answers
isNum = /^[1-4]$/ ;	

  if( isNum.test(prefer1)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer2)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer3)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer4)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the perfered column ");
	return false; //cancel submission
  }

//-----------------section 1 existing----------------

		var exist1 = document.ci.exist1.value;
		var exist2 = document.ci.exist2.value;
		var exist3 = document.ci.exist3.value;
		var exist4 = document.ci.exist4.value;
		
		if (exist1 == exist2 || exist1 == exist3 || exist1 == exist4 || exist2 == exist3 || exist3 == exist4 || exist4 == exist2 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 1 in the existing column");
return false; //cancel submission
}

if (exist1 == '' || exist2 == '' || exist3 == '' || exist4 == '') {
alert("Oops, you missed a field at section 1 in the existing column");
return false; //cancel submission
}


if( isNum.test(exist1)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist2)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist3)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist4)) {
   
  } else {
  
   alert("You entered an invalid character at section 1 in the existing column ");
	return false; //cancel submission
  }


//---------------------section 2 prefered-------------------

		var prefer5 = document.ci.prefer5.value;
		var prefer6 = document.ci.prefer6.value;
		var prefer7 = document.ci.prefer7.value;
		var prefer8 = document.ci.prefer8.value;
		
	
		
		if (prefer5 == prefer6 || prefer5 == prefer7 || prefer5 == prefer8 || prefer6 == prefer7 || prefer7 == prefer8 || prefer8 == prefer6 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 2 in the prefered column");
return false; //cancel submission
}

if (prefer5 == '' || prefer6 == '' || prefer7 == '' || prefer8 == '') {
alert("Oops, you missed an field at section 2 in the prefered column");
return false; //cancel submission
}


if( isNum.test(prefer5)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer6)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer7)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer8)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the prefered column ");
	return false; //cancel submission
  }
  
  
  //-----------statements 2 existing--------------

		var exist5 = document.ci.exist5.value;
		var exist6 = document.ci.exist6.value;
		var exist7 = document.ci.exist7.value;
		var exist8 = document.ci.exist8.value;
		
		if (exist5 == exist6 || exist5 == exist7 || exist5 == exist8 || exist6 == exist7 || exist7 == exist8 || exist8 == exist6 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 2 in the existing column");
return false; //cancel submission
}

if (exist5 == '' || exist6 == '' || exist7 == '' || exist8 == '') {
alert("Oops, you missed a field at section 2 in the existing column.");
return false; //cancel submission
}
// validate 1-4
if( isNum.test(exist5)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist6)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist7)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist8)) {
   
  } else {
  
   alert("You entered an invalid character at section 2 in the existing column ");
	return false; //cancel submission
  }

// ---------------Section 3 prefered--------------------


		var prefer9 = document.ci.prefer9.value;
		var prefer10 = document.ci.prefer10.value;
		var prefer11 = document.ci.prefer11.value;
		var prefer12 = document.ci.prefer12.value;
		
	
		
		if (prefer9 == prefer10 || prefer9 == prefer11 || prefer9 == prefer12 || prefer10 == prefer11 || prefer11 == prefer12 || prefer12 == prefer10 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 3 in the prefered column");
return false; //cancel submission
}

if (prefer9 == '' || prefer10 == '' || prefer11 == '' || prefer12 == '') {
alert("Oops, you missed a field at section 3 in the prefered column.");
return false; //cancel submission
}

if( isNum.test(prefer9)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer10)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer11)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer12)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the prefered column ");
	return false; //cancel submission
  }
  
  
  
// ---------------Section 3 exist--------------------


		var exist9 = document.ci.exist9.value;
		var exist10 = document.ci.exist10.value;
		var exist11 = document.ci.exist11.value;
		var exist12 = document.ci.exist12.value;
		
	
		
		if (exist9 == exist10 || exist9 == exist11 || exist9 == exist12 || exist10 == exist11 || exist11 == exist12 || exist12 == exist10 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 3 in the existing column.");
return false; //cancel submission
}

if (exist9 == '' || exist10 == '' || exist11 == '' || exist12 == '') {
alert("Oops, you missed a field at section 3 in the existing column.");
return false; //cancel submission
}

if( isNum.test(exist9)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist10)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist11)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist12)) {
   
  } else {
  
   alert("You entered an invalid character at section 3 in the existing column ");
	return false; //cancel submission
  }
  
  
  
  // -------------Section 4 prefered-------------
  
		var prefer13 = document.ci.prefer13.value;
		var prefer14 = document.ci.prefer14.value;
		var prefer15 = document.ci.prefer15.value;
		var prefer16 = document.ci.prefer16.value;
		
	
		
		if (prefer13 == prefer14 || prefer13 == prefer15 || prefer13 == prefer16 || prefer14 == prefer15 || prefer15 == prefer16 || prefer16 == prefer14 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 4 in the prefered column.");
return false; //cancel submission
}

if (prefer13 == '' || prefer14 == '' || prefer15 == '' || prefer16 == '') {
alert("Oops, you missed an answer");
return false; //cancel submission
}

if( isNum.test(prefer13)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer14)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer15)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer16)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the prefered column ");
	return false; //cancel submission
  }


	//------Section 4 existing----------
	
	
	
	
		var exist13 = document.ci.exist13.value;
		var exist14 = document.ci.exist14.value;
		var exist15 = document.ci.exist15.value;
		var exist16 = document.ci.exist16.value;
		
		if (exist13 == exist14 || exist13 == exist15 || exist13 == exist16 || exist14 == exist15 || exist15 == exist16 || exist16 == exist14 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 4 in the existing column.");
return false; //cancel submission
}

if (exist13 == '' || exist14 == '' || exist15 == '' || exist16 == '') {
alert("Oops, you missed an answer");
return false; //cancel submission
}

//validate 

if( isNum.test(exist13)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist14)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist15)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist16)) {
   
  } else {
  
   alert("You entered an invalid character at section 4 in the existing column ");
	return false; //cancel submission
  }
  
  
  // -------------Section 5 prefered-------------
  
		var prefer17 = document.ci.prefer17.value;  
		var prefer18 = document.ci.prefer18.value;
		var prefer19 = document.ci.prefer19.value;
		var prefer20 = document.ci.prefer20.value;
		
	
		
		if (prefer17 == prefer18 || prefer17 == prefer19 || prefer17 == prefer20 || prefer18 == prefer19 || prefer19 == prefer20 || prefer20 == prefer18 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 5 in the prefered column.");
return false; //cancel submission
}


if( isNum.test(prefer17)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer18)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer19)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer20)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the prefered column ");
	return false; //cancel submission
  }



  
  
  
  	//------Section 5 existing----------
	
	
	
	
		var exist17 = document.ci.exist17.value;
		var exist18 = document.ci.exist18.value;
		var exist19 = document.ci.exist19.value;
		var exist20 = document.ci.exist20.value;
		
		if (exist17 == exist18 || exist17 == exist19 || exist17 == exist20 || exist18 == exist19 || exist19 == exist20 || exist20 == exist18 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 5 in the existing column.");
return false; //cancel submission
}



//validate 

if( isNum.test(exist17)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist18)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist19)) {
   
  } else {
  
   alert("You entered an invalid character at section 5 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist20)) {
   
  } else {
  
   alert("You entered an invalid character or a blank field at section 5 in the existing column ");
	return false; //cancel submission
  }

}


	function checkAnswers2() {


//-----------prefer section 6-----------------
		
		var prefer21 = document.ci.prefer21.value;  
		var prefer22 = document.ci.prefer22.value;
		var prefer23 = document.ci.prefer23.value;
		var prefer24 = document.ci.prefer24.value;
		
	
		
if (prefer21 == prefer22 || prefer21 == prefer23 || prefer21 == prefer24 || prefer22 == prefer23 || prefer23 == prefer24 || prefer24 == prefer22 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 6 in the prefered column.");
return false; //cancel submission
}

if (prefer21 == '' || prefer22 == '' || prefer23 == '' || prefer24 == '') {
alert("Oops, you missed a field at section 6 in the prefered column");
return false; //cancel submission
}


// validate answers
isNum = /^[1-4]$/ ;	

  if( isNum.test(prefer21)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer22)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer23)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer24)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }

//-----------------section 6 existing----------------

		var exist21 = document.ci.exist21.value;
		var exist22 = document.ci.exist22.value;
		var exist23 = document.ci.exist23.value;
		var exist24 = document.ci.exist24.value;
		
		if (exist21 == exist22 || exist21 == exist23 || exist21 == exist24 || exist22 == exist23 || exist23 == exist24 || exist24 == exist22 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 6 in the existing column.");
return false; //cancel submission
}

if (exist21 == '' || exist22 == '' || exist23 == '' || exist24 == '') {
alert("Oops, you missed a field at section 6 in the existing column");
return false; //cancel submission
}


if( isNum.test(exist21)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist22)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist23)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist24)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the existing column ");
	return false; //cancel submission
  }


//-----------prefer section 7-----------------
		
		var prefer25 = document.ci.prefer25.value;  
		var prefer26 = document.ci.prefer26.value;
		var prefer27 = document.ci.prefer27.value;
		var prefer28 = document.ci.prefer28.value;
		
	
		
if (prefer25 == prefer26 || prefer25 == prefer27 || prefer25 == prefer28 || prefer26 == prefer27 || prefer27 == prefer28 || prefer28 == prefer26 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 7 in the prefered column.");
return false; //cancel submission
}

if (prefer25 == '' || prefer26 == '' || prefer27 == '' || prefer28 == '') {
alert("Oops, you missed a field at section 6 in the prefered column");
return false; //cancel submission
}


// validate answers
isNum = /^[1-4]$/ ;	

  if( isNum.test(prefer25)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer26)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer27)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer28)) {
   
  } else {
  
   alert("You entered an invalid character at section 6 in the perfered column ");
	return false; //cancel submission
  }

  
  //-----------statements 7 existing--------------

		var exist25 = document.ci.exist25.value;
		var exist26 = document.ci.exist26.value;
		var exist27 = document.ci.exist27.value;
		var exist28 = document.ci.exist28.value;
		
		if (exist25 == exist26 || exist25 == exist27 || exist25 == exist28 || exist26 == exist27 || exist27 == exist28 || exist28 == exist26 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 7 in the existing column.");
return false; //cancel submission
}

if (exist25 == '' || exist26 == '' || exist27 == '' || exist28 == '') {
alert("Oops, you missed a field at section 7 in the existing column.");
return false; //cancel submission
}
// validate 1-4
if( isNum.test(exist25)) {
   
  } else {
  
   alert("You entered an invalid character at section 7 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist26)) {
   
  } else {
  
   alert("You entered an invalid character at section 7 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist27)) {
   
  } else {
  
   alert("You entered an invalid character at section 7 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist28)) {
   
  } else {
  
   alert("You entered an invalid character at section 7 in the existing column ");
	return false; //cancel submission
  }

// ---------------Section 8 prefered--------------------


		var prefer29 = document.ci.prefer29.value;
		var prefer30 = document.ci.prefer30.value;
		var prefer31 = document.ci.prefer31.value;
		var prefer32 = document.ci.prefer32.value;
		
	
		
		if (prefer29 == prefer30 || prefer29 == prefer31 || prefer29 == prefer32 || prefer30 == prefer31 || prefer31 == prefer32 || prefer32 == prefer30 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 8 in the prefered column.");
return false; //cancel submission
}

if (prefer29 == '' || prefer30 == '' || prefer31 == '' || prefer32 == '') {
alert("Oops, you missed a field at section 8 in the prefered column.");
return false; //cancel submission
}

if( isNum.test(prefer29)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer30)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer31)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer32)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the prefered column ");
	return false; //cancel submission
  }
  
  
  
//-----------statements 8 existing--------------

		var exist29 = document.ci.exist29.value;
		var exist30 = document.ci.exist30.value;
		var exist31 = document.ci.exist31.value;
		var exist32 = document.ci.exist32.value;
		
		if (exist29 == exist30 || exist29 == exist31 || exist29 == exist32 || exist30 == exist31 || exist31 == exist32 || exist32 == exist30 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 8 in the existing column.");
return false; //cancel submission
}

if (exist29 == '' || exist30 == '' || exist31 == '' || exist32 == '') {
alert("Oops, you missed a field at section 8 in the existing column.");
return false; //cancel submission
}
// validate 1-4
if( isNum.test(exist29)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist30)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist31)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist32)) {
   
  } else {
  
   alert("You entered an invalid character at section 8 in the existing column ");
	return false; //cancel submission
  }

  
  
  
  // -------------Section 9 prefered-------------
  
		var prefer33 = document.ci.prefer33.value;
		var prefer34 = document.ci.prefer34.value;
		var prefer35 = document.ci.prefer35.value;
		var prefer36 = document.ci.prefer36.value;
		
	
		
		if (prefer33 == prefer34 || prefer33 == prefer35 || prefer33 == prefer36 || prefer34 == prefer35 || prefer35 == prefer36 || prefer36 == prefer34 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 9 in the prefered column.");
return false; //cancel submission
}

if (prefer33 == '' || prefer34 == '' || prefer35 == '' || prefer36 == '') {
alert("Oops, you missed a field in section 9");
return false; //cancel submission
}

if( isNum.test(prefer33)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer34)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer35)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer36)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the prefered column ");
	return false; //cancel submission
  }


	//------Section 9 existing----------
	
	
	
	
		var exist33 = document.ci.exist33.value;
		var exist34 = document.ci.exist34.value;
		var exist35 = document.ci.exist35.value;
		var exist36 = document.ci.exist36.value;
		
		if (exist33 == exist34 || exist33 == exist35 || exist33 == exist36 || exist34 == exist35 || exist35 == exist36 || exist36 == exist34 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 9 in the existing column.");
return false; //cancel submission
}

if (exist33 == '' || exist34 == '' || exist35 == '' || exist36 == '') {
alert("Oops, you missed an answer");
return false; //cancel submission
}

//validate 

if( isNum.test(exist33)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist34)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist35)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist36)) {
   
  } else {
  
   alert("You entered an invalid character at section 9 in the existing column ");
	return false; //cancel submission
  }
  
  
  // -------------Section 10 prefered-------------
  
		var prefer37 = document.ci.prefer37.value;  
		var prefer38 = document.ci.prefer38.value;
		var prefer39 = document.ci.prefer39.value;
		var prefer40 = document.ci.prefer40.value;
		
	
		
		if (prefer37 == prefer38 || prefer37 == prefer39 || prefer37 == prefer40 || prefer38 == prefer39 || prefer39 == prefer40 || prefer40 == prefer38 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 10 in the prefered column.");
return false; //cancel submission
}


if( isNum.test(prefer37)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer38)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer39)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer40)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the prefered column ");
	return false; //cancel submission
  }



  
  
  
  	//------Section 10 existing----------
	
	
	
	
		var exist37 = document.ci.exist37.value;
		var exist38 = document.ci.exist38.value;
		var exist39 = document.ci.exist39.value;
		var exist40 = document.ci.exist40.value;
		
		if (exist37 == exist38 || exist37 == exist39 || exist37 == exist40 || exist38 == exist39 || exist39 == exist40 || exist40 == exist38 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 10 in the existing column.");
return false; //cancel submission
}



//validate 

if( isNum.test(exist37)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist38)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist39)) {
   
  } else {
  
   alert("You entered an invalid character at section 10 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist40)) {
   
  } else {
  
   alert("You entered an invalid character or a blank field at section 10 in the existing column ");
	return false; //cancel submission
  }

}



		
function checkAnswers3() {


//-----------prefer section 11-----------------
		
		var prefer41 = document.ci.prefer41.value;  
		var prefer42 = document.ci.prefer42.value;
		var prefer43 = document.ci.prefer43.value;
		var prefer44 = document.ci.prefer44.value;
		
	
		
if (prefer41 == prefer42 || prefer41 == prefer43 || prefer41 == prefer44 || prefer42 == prefer43 || prefer43 == prefer44 || prefer44 == prefer42 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 11 in the prefered column.");
return false; //cancel submission
}

if (prefer41 == '' || prefer42 == '' || prefer43 == '' || prefer44 == '') {
alert("Oops, you missed a field at section 11 in the prefered column");
return false; //cancel submission
}


// validate answers
isNum = /^[1-4]$/ ;	

  if( isNum.test(prefer41)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer42)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer43)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the perfered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer44)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the perfered column ");
	return false; //cancel submission
  }

//-----------------section 11 existing----------------

		var exist41 = document.ci.exist41.value;
		var exist42 = document.ci.exist42.value;
		var exist43 = document.ci.exist43.value;
		var exist44 = document.ci.exist44.value;
		
		if (exist41 == exist42 || exist41 == exist43 || exist41 == exist44 || exist42 == exist43 || exist43 == exist44 || exist44 == exist42 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 11 in the existing column.");
return false; //cancel submission
}

if (exist41 == '' || exist42 == '' || exist43 == '' || exist44 == '') {
alert("Oops, you missed a field at section 11 in the existing column");
return false; //cancel submission
}


if( isNum.test(exist41)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist42)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist43)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist44)) {
   
  } else {
  
   alert("You entered an invalid character at section 11 in the existing column ");
	return false; //cancel submission
  }


//---------------------section 12 prefered-------------------

		var prefer45 = document.ci.prefer45.value;
		var prefer46 = document.ci.prefer46.value;
		var prefer47 = document.ci.prefer47.value;
		var prefer48 = document.ci.prefer48.value;
		
	
		
		if (prefer45 == prefer46 || prefer45 == prefer47 || prefer45 == prefer48 || prefer46 == prefer47 || prefer47 == prefer48 || prefer48 == prefer46 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 12 in the prefered column.");
return false; //cancel submission
}

if (prefer45 == '' || prefer46 == '' || prefer47 == '' || prefer48 == '') {
alert("Oops, you missed an field at section 12 in the prefered column");
return false; //cancel submission
}


if( isNum.test(prefer45)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer46)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer47)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer48)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the prefered column ");
	return false; //cancel submission
  }
  
  
  //-----------statements 12 existing--------------

		var exist45 = document.ci.exist45.value;
		var exist46 = document.ci.exist46.value;
		var exist47 = document.ci.exist47.value;
		var exist48 = document.ci.exist48.value;
		
		if (exist45 == exist46 || exist45 == exist47 || exist45 == exist48 || exist46 == exist47 || exist47 == exist48 || exist48 == exist46 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 12 in the existing column.");
return false; //cancel submission
}

if (exist45 == '' || exist46 == '' || exist47 == '' || exist48 == '') {
alert("Oops, you missed a field at section 12 in the existing column.");
return false; //cancel submission
}
// validate 1-4
if( isNum.test(exist45)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist46)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist47)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist48)) {
   
  } else {
  
   alert("You entered an invalid character at section 12 in the existing column ");
	return false; //cancel submission
  }

// ---------------Section 13 prefered--------------------


		var prefer49 = document.ci.prefer49.value;
		var prefer50 = document.ci.prefer50.value;
		var prefer51 = document.ci.prefer51.value;
		var prefer52 = document.ci.prefer52.value;
		
	
		
		if (prefer49 == prefer50 || prefer49 == prefer51 || prefer49 == prefer52 || prefer50 == prefer51 || prefer51 == prefer52 || prefer52 == prefer50 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 13 in the prefered column.");
return false; //cancel submission
}

if (prefer49 == '' || prefer50 == '' || prefer51 == '' || prefer52 == '') {
alert("Oops, you missed a field at section 13 in the prefered column.");
return false; //cancel submission
}

if( isNum.test(prefer49)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer50)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer51)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer52)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the prefered column ");
	return false; //cancel submission
  }
  
  
  
// ---------------Section 13 exist--------------------


		var exist49 = document.ci.exist49.value;
		var exist50 = document.ci.exist50.value;
		var exist51 = document.ci.exist51.value;
		var exist52 = document.ci.exist52.value;
		
	
		
		if (exist49 == exist50 || exist49 == exist51 || exist49 == exist52 || exist50 == exist51 || exist51 == exist52 || exist52 == exist50 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 13 in the existing column.");
return false; //cancel submission
}

if (exist49 == '' || exist50 == '' || exist51 == '' || exist52 == '') {
alert("Oops, you missed a field at section 13 in the prefered column.");
return false; //cancel submission
}

if( isNum.test(exist49)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist50)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist51)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist52)) {
   
  } else {
  
   alert("You entered an invalid character at section 13 in the existing column ");
	return false; //cancel submission
  }
  
  
  
  // -------------Section 14 prefered-------------
  
		var prefer53 = document.ci.prefer53.value;
		var prefer54 = document.ci.prefer54.value;
		var prefer55 = document.ci.prefer55.value;
		var prefer56 = document.ci.prefer56.value;
		
	
		
		if (prefer53 == prefer54 || prefer53 == prefer55 || prefer53 == prefer56 || prefer54 == prefer55 || prefer55 == prefer56 || prefer56 == prefer54 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 14 in the prefered column");
return false; //cancel submission
}

if (prefer53 == '' || prefer54 == '' || prefer55 == '' || prefer56 == '') {
alert("Oops, you missed a field in section 14");
return false; //cancel submission
}

if( isNum.test(prefer53)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer54)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer55)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer56)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the prefered column ");
	return false; //cancel submission
  }


	//------Section 14 existing----------
	
	
	
	
		var exist53 = document.ci.exist53.value;
		var exist54 = document.ci.exist54.value;
		var exist55 = document.ci.exist55.value;
		var exist56 = document.ci.exist56.value;
		
		if (exist53 == exist54 || exist53 == exist55 || exist53 == exist56 || exist54 == exist55 || exist55 == exist56 || exist56 == exist54 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 14 in the existing column.");
return false; //cancel submission
}

if (exist53 == '' || exist54 == '' || exist55 == '' || exist56 == '') {
alert("Oops, you missed a field in section 14");
return false; //cancel submission
}

//validate 

if( isNum.test(exist53)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist54)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist55)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist56)) {
   
  } else {
  
   alert("You entered an invalid character at section 14 in the existing column ");
	return false; //cancel submission
  }
  
  
  // -------------Section 15 prefered-------------
  
		var prefer57 = document.ci.prefer57.value;  
		var prefer58 = document.ci.prefer58.value;
		var prefer59 = document.ci.prefer59.value;
		var prefer60 = document.ci.prefer60.value;
		
	
		
		if (prefer57 == prefer58 || prefer57 == prefer59 || prefer57 == prefer60 || prefer58 == prefer59 || prefer59 == prefer60 || prefer60 == prefer58 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 15 in the prefered column.");
return false; //cancel submission
}


if( isNum.test(prefer57)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer58)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer59)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the prefered column ");
	return false; //cancel submission
  }
  
  if( isNum.test(prefer60)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the prefered column ");
	return false; //cancel submission
  }



  
  
  
  	//------Section 15 existing----------
	
	
	
	
		var exist57 = document.ci.exist57.value;
		var exist58 = document.ci.exist58.value;
		var exist59 = document.ci.exist59.value;
		var exist60 = document.ci.exist60.value;
		
		if (exist57 == exist58 || exist57 == exist59 || exist57 == exist60 || exist58 == exist59 || exist59 == exist60 || exist60 == exist58 ) {
alert("please do not duplicate the rating keys. For instance there should be one 4 one 3 one 2 and one 1 in each Statement in both the preferred and existing column.  Please check section 15 in the existing column.");
return false; //cancel submission
}



//validate 

if( isNum.test(exist57)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist58)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist59)) {
   
  } else {
  
   alert("You entered an invalid character at section 15 in the existing column ");
	return false; //cancel submission
  }
  
  if( isNum.test(exist60)) {
   
  } else {
  
   alert("You entered an invalid character or a blank field at section 15 in the existing column ");
	return false; //cancel submission
  }

}
		
		



		
