function campusResidency(){
   
    var hasErrors='';
	var messageCounter=0;
	
	if(!(document.getElementById('c_resident_no').checked) && !(document.getElementById('c_resident_yes').checked))
	{
	   hasErrors= hasErrors + 'From Section 1: \n \n Please specify if you will live on campus as a resident student \n';
         }
    
	if(!(document.getElementById('athletics_yes').checked) && !(document.getElementById('athletics_no').checked))
	{
	   hasErrors= hasErrors + 'From Section 1: \n \n Please specify whether you will participate in Intercollegiate Athletics \n \n \n';
         }
   
   
   
    if( (document.getElementById('c_resident_yes').checked) || (document.getElementById('athletics_yes').checked) )
	{
	  	  
	  var Insurer=document.getElementById('Insurer');
	  var Subscriber_Name=document.getElementById('Subscriber_Name');
	  var Policy_number=document.getElementById('Policy_number');
	  var Group_number=document.getElementById('Group_number');
	  
	  var insurance_co_address=document.getElementById('insurance_co_address');
	  var insurance_co_city=document.getElementById('insurance_co_city');
	  var insurance_co_state=document.getElementById('insurance_co_state');
	  var insurance_co_zip_code=document.getElementById('insurance_co_zip_code');
	  
	  var primary_care_physician=document.getElementById('primary_care_physician');
	  var primary_care_address=document.getElementById('primary_care_address');
	  var primary_care_city=document.getElementById('primary_care_city');
	  var primary_care_state=document.getElementById('primary_care_state');
	  var primary_care_zip_code=document.getElementById('primary_care_zip_code');
	  
	  var pcp_phone=document.getElementById('pcp_phone');
	  var pcp_fax_number=document.getElementById('pcp_fax_number');

	  var prescription_yes=document.getElementById('prescription_yes');
	  var prescription_no=document.getElementById('prescription_no');
	  
	  var pre_authorize_yes=document.getElementById('pre_authorize_yes');
	  var pre_authorize_no=document.getElementById('pre_authorize_no');
	  
           document.getElementById('health_message').style.color="#003693";
	  
	  if(Insurer.value==''){
		messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
	    hasErrors= hasErrors + 'Please specify Insurer \n';
	  }	
	  if(Subscriber_Name.value==''){
		messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
	  	hasErrors= hasErrors + 'Please specify Subscriber Name \n';
	  }	
	  if(Policy_number.value==''){
    	messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
	  	hasErrors= hasErrors + 'Please specify Policy Number \n';
	  }	
	  if(Group_number.value==''){
		messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
	  	hasErrors= hasErrors + 'Please specify Group Number \n';
	  }	
	  
	  
	 if(insurance_co_address.value==''){
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
		hasErrors= hasErrors + 'Please specify Insurance Address \n';
	  }	
	 if(insurance_co_city.value==''){
	 
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
		hasErrors= hasErrors + 'Please specify Insurance City \n';
	 }	
	 if(insurance_co_state.value==''){
	 
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
		 hasErrors= hasErrors + 'Please specify Insurance State \n';
	 }	
     if(insurance_co_zip_code.value==''){
	 
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
		
		hasErrors= hasErrors + 'Please specify Insurance Zip Code \n';
	 }	

  
	 if(primary_care_physician.value==''){
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
	   
		hasErrors= hasErrors + 'Please specify Primary Care Physician \n';
	 }	
	 if(primary_care_address.value==''){
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';
	 
		 hasErrors= hasErrors + 'Please specify Primary Care Address \n';
	 }	
	 if(primary_care_city.value==''){
	 	messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';

		 hasErrors= hasErrors + 'Please specify Primary Care City \n';
	 }	
	 if(primary_care_state.value==''){
		 hasErrors= hasErrors + 'Please specify Primary Care State \n';
	 }	
	if(primary_care_zip_code.value==''){
	
	    messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';

		 hasErrors= hasErrors + 'Please specify Primary Care Zip Code \n';
	 }	
	 
	 
	if(pcp_phone.value==''){
	
		messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';

		 hasErrors= hasErrors + 'Please specify PCP Phone Number \n';
	 }	
	if(pcp_fax_number.value==''){
	
		messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';

		 hasErrors= hasErrors + 'Please specify PCP Fax Number \n';
	 }	
	 
	 
	if( !(pre_authorize_yes.checked) && !(pre_authorize_no.checked) ){
	
		messageCounter=messageCounter+1;
		if(messageCounter==1)
		hasErrors = hasErrors + 'From Section 4: \n \n';

		 hasErrors= hasErrors + 'Please specify Pre Authorization for medical treatment \n';
	 }	

	  	  
	} 
    

	if(hasErrors!=''){
		alert(hasErrors);
		return false;
	}
	else{
	return true;
    }
      
}

