<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" 
     import="com.novell.webaccess.common.JSPConduit2, com.novell.emframe.dev.eMFrameUtils,
             com.novell.emframe.dev.eMFrameFactory,  com.novell.emframe.dev.MContext" %>
<%   JSPConduit2 c = JSPConduit2.getJSPConduit(request);
     c.stringTable("DevResources"); %>

<!-- BEGIN Browser OSScripts.inc -->
<script>
   window.osWidth=<%= c.string("OS.Browser.WindowWidth") %>;
   window.osHeight=<%= c.string("OS.Browser.WindowHeight") %>;
   window.osQueryColumnWidth=<%= c.string("OS.Browser.QueryColumnWidth") %>;
   window.UserContext='';
   
<% MContext context = eMFrameFactory.getMContext(request);
   if (context!=null)
   { %>
<%    String sTmp = context.getPersistentData("OSPrefs","OS.WindowWidth"); %>
      window.osWidth = <%= ((sTmp!=null)?sTmp:c.string("OS.Browser.WindowWidth")) %>;
   
<%    sTmp = context.getPersistentData("OSPrefs","OS.WindowHeight"); %>
      window.osHeight = <%= ((sTmp!=null)?sTmp:c.string("OS.Browser.WindowHeight")) %>;
   
<%    sTmp = context.getPersistentData("OSPrefs","OS.QueryColumnWidth"); %>
      window.osQueryColumnWidth = <%= ((sTmp!=null)?sTmp:c.string("OS.Browser.QueryColumnWidth")) %>;
<% } %>
</script>

<script language="JavaScript" src="<%= c.getModulesUrl() %>/dev/javascripts/OSBrowserScripts.js"></script>
<jsp:include page='<%= c.getPath("dev/XmlScripts_inc.jsp") %>' flush="true" />
<script language="JavaScript" src="<%= c.getModulesUrl() %>/dev/javascripts/QueryScripts.js"></script>
<SCRIPT language="JavaScript" src="<%= c.getModulesUrl() %>/dev/javascripts/exchanger.js"></SCRIPT>
<script language="JavaScript" src="<%= c.getModulesUrl() %>/fw/javascripts/AnchorPosition.js"></script>
<script language="JavaScript" src="<%= c.getModulesUrl() %>/fw/javascripts/HistoryScripts.js"></script>

<!-- clear local variables used in os.inc-->
<jsp:include page='<%= c.getPath("dev/ClearFlags_inc.jsp") %>' flush="true" />

<%--REMINDJSP: Is this the right thing to do here, removeAttributes?--%>
<% request.removeAttribute("OS.Results");
   request.removeAttribute("OS.AnchorDocState"); %>
<!-- END Browser OSScripts.inc -->
