anchor.diff:  		var widthFull = $(window).width()*0.99;
   		var width = $(window).width()*0.90;
   		var height = 0;
  +		var current = null;
   		$.ajaxSetup({timeout: <%= conf.getAjaxTimeout() %>});
       
  -		
  -		window.open("/ui-fw/script/empty.jsp", "taskform");
  -		
  -		if($.browser.msie){
  -		     height = $(window).height() - 130;
  -		  }else{
  -		     height = $(window).height() - 130;
  -		  }
  -		var height2 = height - 80;
  -		var needResize = false;
  -		
  -		$(window).resize(function() {
  -			if(navigator.appName != "Microsoft Internet Explorer") {
  -			
  -			var loc = window.frames['taskform'].location;
  -			 try {
  -			  if(loc.toString().indexOf("empty.jsp")>0) {
  -			    location.href=location.href;
  -			  } else {
  -			    needResize = true;
  -			  }
  -			 } catch(err) {
  -			    return;
  -			 }
  -		  }
  -		});
  -
  -		function preProcess(data) {
  -    		$("rows row", data).each(function () {
  -                var elem = $(this);
  -                var str = $.string(elem.text()).stripTags().strip().str
  -
  -                // This has a friend in flexigrid.js (line 456)
  -                if($("#caseFilter").attr("checked")) {                
  -                  if(str.indexOf($("#filter").val())==-1)  
  -                   elem.attr("flexi","ignore");
  -                 }
  -                else {
  -                  if(str.toLowerCase().indexOf($("#filter").val().toLowerCase())==-1) {
  -                   elem.attr("flexi","ignore"); 
  -                  }
  -                }
  -				        
  -		    });
  -			return data;
  -		}
  -
  +		/*********************************************************************
  +		Section to handle resizing of window, and recompute table size and
  +		display area
  +		**********************************************************************/
  +		
  +		/*
  +		Find the browser window size, and adapt to IE
  +		*/
  +    if($.browser.msie){
  +      height = $(window).height() - 130;
  +    }else{
  +      height = $(window).height() - 130;
  +    }
  +    var height2 = height - 80;
  +    var needResize = false;
  +		
  +		/*
  +		Resize the application when the window is reloaded
  +		*/
  +    $(window).resize(function() {
  +      if(navigator.appName != "Microsoft Internet Explorer") {
  +        var loc = window.frames['taskform'].location;
  +        try {
  +          if(loc.toString().indexOf("empty.jsp")>0) {
  +            location.href=location.href;
  +          } else {
  +            needResize = true;
  +          }
  +        } catch(err) {
  +          return;
  +        }
  +      }
  +    });
  +
  +   /*********************************************************************
  +   Method to preprocess the data loaded in flexigrid.
  +   The reason is we want to be able to hide some lines depending on the search fields.
  +   
  +   **********************************************************************/
  +   
  +   /*
  +   Do preprocessing of the loaded items in the flexigrid table
  +    This has a friend in flexigrid.js (line 456)
  +   */
  +   function preProcess(data) {
  +     $("rows row", data).each(function () {
  +       var elem = $(this);
  +       var str = $.string(elem.text()).stripTags().strip().str
  +
  +       if($("#caseFilter").attr("checked")) {                
  +         if(str.indexOf($("#filter").val())==-1) {
  +           elem.attr("flexi","ignore");
  +         }
  +       }
  +       else {
  +         if(str.toLowerCase().indexOf($("#filter").val().toLowerCase())==-1) {
  +           elem.attr("flexi","ignore"); 
  +         }
  +       }
  +     });
  +     return data;
  +    }
  +
  +    /*
  +    Completely clear the content of the frame, where the forms are usually loaded
  +    */
   		function clearFrame() {
       	var loc = window.frames['taskform'].location;
       	try {
  
positive.code: 		buttons : [{name: '<fmt:message key="org_intalio_uifw_toolbar_button_delete"/>', bclass: 'delete', onpress : deleteTask}], 
  		<%} %>
  		colModel : [
  		{display: '<fmt:message key="com_intalio_bpms_workflow_taskHolder_description"/>', name : '_description', width : width*0.6, sortable : true, align: 'left'},
  		{display: '<fmt:message key="com_intalio_bpms_workflow_taskHolder_creationDateTime"/>', name : '_creationDate', width : width*0.4, sortable : true, align: 'left'}
  		]},p));
  		
  		var current = null;
  
  		// visible == hide all
  		function refresh(visible) {
  		if(needResize) {
  		  location.href=location.href;
  		}
  		if(visible==false){
  			t1.parent().parent().hide(speed);
  			t2.parent().parent().hide(speed);
  			t3.parent().parent().hide(speed);
  			current==null;
  		}
  		else {
  		if(current==null) {
  			t1.parent().parent().hide(speed);
  			t2.parent().parent().hide(speed);
  			t3.parent().parent().hide(speed);
  		}
  		else if(current=='tabTasks') {
  			t1.flexReload();
  			t1.parent().parent().show(speed);
  			t2.parent().parent().hide(speed);
  			t3.parent().parent().hide(speed);
  		}
  		else if(current=='tabNotif') {
  			t2.flexReload();
  		    t1.parent().parent().hide(speed);
  			t3.parent().parent().hide(speed);
  			t2.parent().parent().show(speed);
  		}
  		else if(current=='tabPipa') {
  			t3.flexReload();
  			t1.parent().parent().hide(speed);
  			t2.parent().parent().hide(speed);
  			t3.parent().parent().show(speed);
  		}
  		}
  
  		}
  
          $("html").mousemove(function(e){
              resetTimer();
          });
  	    
  
  		//
  		// change tab on click, refresh frame, refresh task list
  		//
  		$('#tabnav li a').click(function(){
              resetTimer();
  			clearFrame();
  			$("#filter").val("");
  			if(current==null)  {
  				$(".intro").each(function(){ $(this).hide();});
  				$("#filterdiv").show();
  			}
  			current = $(this).attr("id");
  			refresh(true);
  		});
  
  		// not supported by IE
  		$("#filter").change(function() {
  			refresh(true);
  		});
  		$("#filterbutt").click(function() {
  			refresh(true);
  		});
  
  		$('#taskform').load(function(){
  			
  			var loc = window.frames['taskform'].location;
  			try {
  			  if(loc == "about:blank") return;
  			} catch(err) {
  			  $('#taskform').animate({height:height},speed);
  		    refresh(false);
  			  return;
  			}
  			
  			var elo = $('html', window.frames['taskform'].document);
  			
  			var visible = $('#taskform').height() != 0;
  			if(visible) {
       			// TODO: let's find a clever way of checking for content independent of the form manager
  	    		var content = (loc.toString().indexOf('type=PATask')!=-1) || (elo.html().substring(0,6).toLowerCase() == '<head>' && elo.html().length > 700);
  			  if(!content) {
       			clearFrame();
  				  refresh(true);
  			  } else {
  			    $('#taskform').animate({height:height},speed);
  				  refresh(false);
  			  }
  			}
  			
        $('#taskform').contents().mousemove(function(e){ resetTimer();});
        $("#taskform").contents().keypress(function (e){ resetTimer();});
  	
  		});
  		
  		$.jcorners("#intro",{radius:20});
  		$("#filterdiv").hide();
  		$("#reassignDialog").hide();
  		$("#updateDialog").hide();
  		$("#connectionLost").hide();
  		
  		var timeout = <c:out value="${refreshTime}"/> * 1000;
  		if(timeout == null || timeout < 1000) timeout = 1000;
  		
  		$.timer(timeout,function(timer) {
  		  // don't refresh if showing a dialog
  		  if ($("#reassignDialog").is(":visible")) return; 
  		  if ($("#sessionExpired").is(":visible")) return; 
  		  if ($("#connectionLost").is(":visible")) return; 
  		  
  		  ping(timer);
  		  
        if(current=='tabTasks') t1.flexReload();
        if(current=='tabNotif') t2.flexReload();
        if(current=='tabPipa')  t3.flexReload();
  		});
  		
  		function ping(timer) {
  		   var xhrReq = $.ajax({
  					 type: "HEAD",
  					 url: "/ui-fw/images/spacer.gif",
  					 error: function() {
  					    $("#connectionLost").dialog('open');
  					    timer.stop();
  					 }
  				});
  		}
  		
  		$("#tabTasks").click();
  		
  		});
  
  </script>
  
negative.code: <%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
  <%@page import="org.intalio.tempo.uiframework.Configuration"%>
  <%@page import="org.intalio.tempo.security.ws.TokenClient"%>
  <script type="text/javascript">
  
  	$(document).ready(function(){ 
      /*********************************************************************
      Load the dynamic JSP code that contains variables defined on the server 
      **********************************************************************/
      <% 
      Configuration conf = Configuration.getInstance();
      String tokenService = conf.getTokenClient().getEndpoint();
      boolean useToolbar = conf.isUseToolbarIcons().booleanValue();
      %>
      
      /*********************************************************************
      Load the javascript variables on the client
      **********************************************************************/
  		var speed = "fast";
  		var currentUser = '<%= ((String)request.getAttribute("currentUser")).replace("\\", "\\\\")%>';
  		var tokenService = '<%= tokenService %>';
  