anchor.diff:  	}
   
   	for (value in enabledIds) {
  -		document.getElementById(enabledIds[value]).style.display="";
  +		document.getElementById(enabledIds[value]).style.display="inline";
   	}
   	for (value in disabledIds) {
   		document.getElementById(disabledIds[value]).style.display="none";
  
positive.code: <%
  	}
  %>
  <form id="editForm" action="admin/sched-outages/editoutage.jsp" method="post">
  
  <input type="hidden" name="formSubmission" value="<%=true%>" />
  
  <h2>Editing Outage: <%= theOutage.getName() %></h2>
  
  
negative.code: 		//It can be tidied up later -- of course, it's been what, almost 3 years?  "later" means 2.0 + rewrite  ;)
  		//First, process any changes to the editable inputs
  
  		//Now handle any buttons that were clicked.  There should be only one
  		//If there is more than one, we use the first and ignore the rest.
  		if (request.getParameter("saveButton") != null) {
  			//Save was clicked - save 
  
  			//Process the notifications status.  NB: we keep an in-memory copy initially, and only save when the save button is clicked
  			if ("on".equals(request.getParameter("notifications"))) {
  				//Want to turn it on.
  				enabledOutages.add("notifications");
  			} else {
  				//Want to turn off (missing, or set to something other than "on")
  				enabledOutages.remove("notifications");
  			}
  
  			for (org.opennms.netmgt.config.poller.Package thisKey : pollingOutages.keySet()) {
  				String name = "polling-" + thisKey.getName();
  				System.out.println("Checking " + name);
  				if ("on".equals(request.getParameter(name))) {
  					System.out.println(" is on - adding to enabledOutages");
  					enabledOutages.add(name);
  				} else {
  					enabledOutages.remove(name);
  				}
  			}
  
  			for (org.opennms.netmgt.config.threshd.Package thisKey : thresholdOutages.keySet()) {
  				String name = "threshold-" + thisKey.getName();
  				System.out.println("Checking " + name);
  				if ("on".equals(request.getParameter(name))) {
  					enabledOutages.add(name);
  				} else {
  					enabledOutages.remove(name);
  				}
  			}
  
  			for (org.opennms.netmgt.config.collectd.Package thisKey : collectionOutages.keySet()) {
  				String name = "collect-" + thisKey.getName();
  				System.out.println("Checking " + name);
  				if ("on".equals(request.getParameter(name))) {
  					enabledOutages.add(name);
  				} else {
  					enabledOutages.remove(name);
  				}
  			}
  
  			//Check if the outage is a new one, or an edited old one
  			String origname = (String) request.getSession().getAttribute("opennms.editoutage.origname");
  