anchor.diff:             errorNb++;
            }
            switch(errorNb) {
  -         	case 0 :
  -           		result = true;
  -       			break;
  -         	case 1 :
  -           		errorMsg = "<%=resources.getString("GML.ThisFormContains")%> 1 <%=resources.getString("GML.error")%> : \n" + errorMsg;
  -           		window.alert(errorMsg);
  -           		result = false;
  -       			break;
  -         	default :
  -           		errorMsg = "<%=resources.getString("GML.ThisFormContains")%> " + errorNb + " <%=resources.getString("GML.errors")%> :\n" + errorMsg;
  -           		window.alert(errorMsg);
  -           		result = false;
  -           		break;
  +          case 0 :
  +              result = true;
  +            break;
  +          case 1 :
  +              errorMsg = "<%=resources.getString("GML.ThisFormContains")%> 1 <%=resources.getString("GML.error")%> : \n" + errorMsg;
  +              window.alert(errorMsg);
  +              result = false;
  +            break;
  +          default :
  +              errorMsg = "<%=resources.getString("GML.ThisFormContains")%> " + errorNb + " <%=resources.getString("GML.errors")%> :\n" + errorMsg;
  +              window.alert(errorMsg);
  +              result = false;
  +              break;
            }
            return result;
       }
       
       $(function() {
           $("#refuseDialog").dialog({
  -    		autoOpen: false,
  -    		resizable: false,
  -    		modal: true,
  -    		height: "auto",
  -    		width: 500,
  -    		buttons: {
  -    			"<fmt:message key="GML.ok"/>": function() {
  -    				var message = $("#txtMessage").val();
  -    				document.listDelegatedNews.action = "RefuseDelegatedNews";
  -    			    document.listDelegatedNews.RefuseReasonText.value = message;
  -    			    document.listDelegatedNews.submit();
  -    			},
  -    			"<fmt:message key="GML.cancel" />": function() {
  -    				$(this).dialog("close");
  -    			}
  -    		}
  -    	});
  +        autoOpen: false,
  +        resizable: false,
  +        modal: true,
  +        height: "auto",
  +        width: 500,
  +        buttons: {
  +          "<fmt:message key="GML.ok"/>": function() {
  +            var message = $("#txtMessage").val();
  +            document.listDelegatedNews.action = "RefuseDelegatedNews";
  +              document.listDelegatedNews.RefuseReasonText.value = message;
  +              document.listDelegatedNews.submit();
  +          },
  +          "<fmt:message key="GML.cancel" />": function() {
  +            $(this).dialog("close");
  +          }
  +        }
  +      });
           
           $("#datesDialog").dialog({
  -    		autoOpen: false,
  -    		resizable: false,
  -    		modal: true,
  -    		height: "auto",
  -    		width: 500,
  -    		buttons: {
  -    			"<fmt:message key="GML.ok"/>": function() {
  -    				var beginDate = $("#datesDialog #BeginDate").val();
  -    				var beginHour = $("#datesDialog #BeginHour").val();
  -    				var endDate = $("#datesDialog #EndDate").val();
  -    				var endHour = $("#datesDialog #EndHour").val();
  -    				if (areDatesCorrect(beginDate, beginHour, endDate, endHour, '<%=resources.getLanguage()%>')) {
  -	    				document.listDelegatedNews.action = "UpdateDateDelegatedNews";
  -	    				document.listDelegatedNews.BeginDate.value = beginDate;
  -	    				document.listDelegatedNews.BeginHour.value = beginHour;
  -	    				document.listDelegatedNews.EndDate.value = endDate;
  -	    				document.listDelegatedNews.EndHour.value = endHour;
  -	    				document.listDelegatedNews.submit();
  -    				}
  -    			},
  -    			"<fmt:message key="GML.cancel" />": function() {
  -    				$(this).dialog("close");
  -    			}
  -    		}
  -    	});
  +        autoOpen: false,
  +        resizable: false,
  +        modal: true,
  +        height: "auto",
  +        width: 500,
  +        buttons: {
  +          "<fmt:message key="GML.ok"/>": function() {
  +            var beginDate = $("#datesDialog #BeginDate").val();
  +            var beginHour = $("#datesDialog #BeginHour").val();
  +            var endDate = $("#datesDialog #EndDate").val();
  +            var endHour = $("#datesDialog #EndHour").val();
  +            if (areDatesCorrect(beginDate, beginHour, endDate, endHour, '<%=resources.getLanguage()%>')) {
  +              document.listDelegatedNews.action = "UpdateDateDelegatedNews";
  +              document.listDelegatedNews.BeginDate.value = beginDate;
  +              document.listDelegatedNews.BeginHour.value = beginHour;
  +              document.listDelegatedNews.EndDate.value = endDate;
  +              document.listDelegatedNews.EndHour.value = endHour;
  +              document.listDelegatedNews.submit();
  +            }
  +          },
  +          "<fmt:message key="GML.cancel" />": function() {
  +            $(this).dialog("close");
  +          }
  +        }
  +      });
       });
       
       var listDelegatedNewsJSON = ${listNewsJSON};
       
       $(document).ready(function() {
           $('#newsList tbody').bind('sortupdate', function(event, ui) {
  -        	  var updatedDelegatedNews = new Array(); //tableau de DelegatedNewsEntity réordonnés sérialisés en JSON
  +            var updatedDelegatedNews = new Array(); //tableau de DelegatedNewsEntity réordonnés sérialisés en JSON
               var data = $('#newsList tbody').sortable('toArray'); //tableau de valeurs delegatedNews_{pubId} réordonnés
               var pubId;
               for (var i=0; i<data.length; i++)
  
positive.code:            errorNb++;
           }
           if (!isWhitespace(endDate)) {
          	 if (!isDateOK(endDate, language)) {
              	errorMsg+="  - '<fmt:message key="delegatednews.visibilityEndDate"/>' <fmt:message key="GML.MustContainsCorrectDate"/>\n";
               	errorNb++;
             	} else {
              	if (!isWhitespace(beginDate) && !isWhitespace(endDate)) {
            			if (beginDateOK && !isDate1AfterDate2(endDate, beginDate, language)) {
                  		errorMsg+="  - '<fmt:message key="delegatednews.visibilityEndDate"/>' <fmt:message key="GML.MustContainsPostOrEqualDateTo"/> "+beginDate+"\n";
                  		errorNb++;
                		}
              	} else {
                		if (isWhitespace(beginDate) && !isWhitespace(endDate)) {
              			if (!isFuture(endDate, language)) {
                    			errorMsg+="  - '<fmt:message key="delegatednews.visibilityEndDate"/>' <fmt:message key="GML.MustContainsPostDate"/>\n";
                    			errorNb++;
                  		}
                		}
              	}
             }
           }
           if (!checkHour(endHour))
  
negative.code: <c:set var="listNewsJSON" value="${requestScope.ListNewsJSON}"/>
    
  <%
    List<DelegatedNews> listNews = (List<DelegatedNews>) request.getAttribute("ListNews"); //List<DelegatedNews>
  %>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  