anchor.diff:    	$('input').change(function() {
       	dataChanged = true;
   	});
  +  	
  +  	
     });
     
   	function toggleCalendarCheckbox(postCheckbox){
  
positive.code: 									<h:outputText value="#{msgs.mainEditHeaderInCalendar}"/>
  									<f:verbatim>
  										<br/>
  										<input type="checkbox" onchange="$('.calendarBox').not(':disabled').attr('checked', this.checked);"/>
  									</f:verbatim>
  								</h:panelGroup>
  							</f:facet>
  							<h:selectBooleanCheckbox styleClass="calendarBox" value="#{eachEntry.entry.linkCalendar}" title="#{msgs.selectThisCheckBoxCal}" disabled="#{!eachEntry.posted}" onchange="checkStartEndDates(this)"/>
  						</h:column>
  						<h:column rendered="#{! SyllabusTool.displayNoEntryMsg}">
  							<f:facet name="header">
  
negative.code: 		}else{
  			return deleteClick();
  		}
  	}
  	
  	function toggleAllCalendarOptions(toggleCheckbox){
  		$('.calendarBox').each(function(){
  			if(toggleCheckbox.checked){
  				//make sure that the post option is checked otherwise don't check it:
  				if($(this).parent().parent().find(".postBox:checked").length == 1){
  					this.checked = true;
  				}
  			}else{
  				this.checked = false;
  			}
  		});
  	}
  
  	function toggleAllPostOptions(toggleCheckbox){
  		$('.postBox').each(function(){
  			if(toggleCheckbox.checked){
  				this.checked = true;
  			}else{
  				this.checked = false;
  				//make sure calendar option is unchecked
  				$(this).parent().parent().find(".calendarBox").removeAttr("checked");
  			}
  		});
  	}
   </script>
  <div>
  