<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);
   c.stringTable("FwResources");
   c.stringTable("DevResources");
   String jsRetMethod = "histDataReturnedNS";
   if(session.getAttribute("DeviceType").equals("browser"))
   {
      jsRetMethod = "histDataReturnedIE";
   }
%>
<HTML>
<%--<BODY onLoad="parent.<%= jsRetMethod %>('<%= c.var("controlName") %>', '<%= c.var("callBack") %>', [<% c.set("i", "0");    while (c.lt(c.var("i"), c.var("Results.Count"))) { %>'<%= c.toTag(c.toScript(c.var("Results."+c.var("i")+ ".name"))) %>'<% if (c.lt(c.var("i"), (c.minus(c.var("Results.Count"), "1")))) { %>, <% }    c.inc("i");    } %>], [<% c.set("i", "0");    while (c.lt(c.var("i"), c.var("Results.Count"))) { %>'<%= c.var("Results."+c.var("i")+ ".type") %>'<% if (c.lt(c.var("i"), (c.minus(c.var("Results.Count"), "1")))) { %>, <% }    c.inc("i");    } %>], '<%= c.getModulesUrl() + "', 'images/" + c.string("Button.CancelSmall.image")  + "', 'images/" + c.string("Button.ClearHistorySmall.image") %>', '<%= c.string("History.title") %>')">--%>

<BODY onLoad="parent.<%= jsRetMethod %>('<%= c.var("controlName") %>',
                                        '<%= c.var("callBack") %>',
                                        [<%
                                           int resultsCount = Integer.parseInt(c.var("Results.Count"));
                                           for(int i=0; i < resultsCount; i++)
                                           {
                                              %>'<%= c.toTag(c.toScript(c.var("Results." + i + ".name"))) %>'<%
                                              if(i < resultsCount - 1)
                                              {
                                                %>, <%
                                              }
                                           }
                                         %>], [<%
                                           for(int i=0; i < resultsCount; i++)
                                           {
                                              %>'<%= c.toTag(c.toScript(c.var("Results." + i + ".type"))) %>'<%
                                              if(i < resultsCount - 1)
                                              {
                                                %>, <%
                                              }
                                           }
                                         %>],
                                         '<%= c.getModulesUrl() + "', 'images/" + c.string("Button.CancelSmall.image")  + "', 'images/" + c.string("Button.ClearHistorySmall.image") %>', '<%= c.string("History.title") %>')">
</BODY>
</HTML>
