anchor.diff:  <![endif]-->
   
   <script type="text/javascript">
  -// Bill Dortch, hIdaho Design
  -// (bdortch@netw.com)
   function getCookieVal (offset) {
   	var endstr = document.cookie.indexOf (";", offset);
       if (endstr == -1)
  
positive.code: <%@ page import="com.stratelia.webactiv.kmelia.KmeliaSecurity"%>
  
  <%
  HttpSession 			httpSession		= request.getSession();
  //System.out.println("SessionId = "+httpSession.getId());
  String 					redirection 	= (String) httpSession.getValue("gotoNew");
  //System.out.println("redirection = "+redirection);
  ResourceLocator 		mesLook		= new ResourceLocator("com.silverpeas.lookSilverpeasV5.multilang.lookBundle", "fr");
  ResourceLocator authenticationBundle = new ResourceLocator("com.silverpeas.authentication.multilang.authentication", "");
  
  String errorCode = request.getParameter("ErrorCode");
  if (errorCode == null || errorCode.equals("null"))
  	errorCode = "";
  
  String componentId 	= (String) httpSession.getValue("RedirectToComponentId");
  String spaceId 		= (String) httpSession.getValue("RedirectToSpaceId");
  
  boolean isAnonymousAccessAuthorized = false;
  if (redirection == null && componentId == null && spaceId == null)
  
negative.code: 			if (isAnonymousAccessAuthorized && redirection != null && componentId.startsWith("kmelia"))
  			{
  				String objectId = KmeliaHelper.extractObjectIdFromURL(redirection);
  				String objectType = KmeliaHelper.extractObjectTypeFromURL(redirection);
  				if ("Publication".equals(objectType))
  				{
  