anchor.diff:  				clearTimeout(defTimeout);
   				setAdvanceSessionTimeout(timeOut);
   			}
  -			
  +
   //			if (lastRefreshTime <= pageLoadTime)
   //			{
   //				lastRefreshTime = new Date().getTime();
  
positive.code: 			String tempMsg = ApplicationProperties.getValue("app.session.advanceWarning");
  			Object[] args = new Object[] {"" + advanceTime};
  			String advanceTimeoutMesg = MessageFormat.format(tempMsg,args);
  			
  			timeOut = -1;
  				
  			if(request.getSession().getAttribute(Constants.SESSION_DATA) != null) //if user is logged in
  			{
  				//timeOut = request.getSession().getMaxInactiveInterval();
  
negative.code: 				}
  			}
  		}
  
  		function setAdvanceSessionTimeout(ptimeOut)
  		{
  
  			if(ptimeOut > 0)
  			{
  				var time = (ptimeOut - (advanceTime*60)) * 1000;
  				warnTimeout = setTimeout('warnBeforeSessionExpiry()', time); //if session timeout, then redirect to Home page
  			}
  		}
  
  
  		function sendToHomePage()
  		{
  				<%
  				   Object obj = request.getSession().getAttribute(Constants.SESSION_DATA);
  				   if(obj != null)
  				   {
  				%>
  				   var timeoutMessage = "<%= ApplicationProperties.getValue("app.session.timeout") %>";
  				   alert(timeoutMessage);
  
  				   window.location.href = "Logout.do";
  				<%
  				   }
  				%>
  		}
  
  		function detectApplicationUsageActivity()
  