<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.emframe.dev.eMFrameUtils,
                                                                             java.util.Iterator,
                                                                             java.util.Map,
                                                                             java.util.Set,
                                                                             java.util.ArrayList" %>
<HTML>
   <HEAD>
   
   <script type="text/javascript">
   
   function isFirefoxThree()
   {
   		var flag=false;
   		if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
   		{ //test for firefox x.x
 			var ffversion=new Number(RegExp.$1) 
 			if (ffversion>=3)
 			flag=true
 		}
 		return flag;	
 				
   
   }
   
   function checkToSubmitOnLoad()
   {
   		
   		if(!isFirefoxThree())
   		{
   			document.HandleRepeatForm.submit()
   		}
   }	
   
   function checkToSubmitOnUnLoad()
   {
   		
   		if(isFirefoxThree())
   		{
   			document.HandleRepeatForm.submit()
   		}
   
   }
   
	   
   </script>
   </HEAD>
   <BODY onLoad="checkToSubmitOnLoad();" onunload="checkToSubmitOnUnLoad();">
      <form name="HandleRepeatForm" method=post action=webacc>
         <%
            Map repeatParams = (Map) request.getAttribute("repeatParams");
            Set keys = repeatParams.keySet();
            for(Iterator i = keys.iterator(); i.hasNext();)
            {
               String key = (String) i.next();
               String[] array = (String[]) repeatParams.get(key);
               if(array != null)
               {
                  for(int j = 0; j < array.length; j++)
                  {
                     String value = array[j];
                     %><input type=hidden name="<%= key %>" value="<%= value %>">
                     <%
                  }
               }
            }
         %>
         <input type=hidden name="returnID" value="<%= request.getParameter("realTaskId") %>"/>
      </form>
   </BODY>
</HTML>
