<%@  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);

  /* **************************************************************************
%name: WizSimpleOSScript_js.jsp %
%version: 5 %
%date_modified: Mon Feb 24 09:56:01 2003 %
Copyright (c) 2002 Novell, Inc. All Rights Reserved.
THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL PROPRIETARY
AND TRADE SECRET INFORMATION OF NOVELL, INC. ACCESS TO THIS WORK IS
RESTRICTED TO (I) NOVELL, INC. EMPLOYEES WHO HAVE A NEED TO KNOW HOW
TO PERFORM TASKS WITHIN THE SCOPE OF THEIR ASSIGNMENTS AND (II)
ENTITIES OTHER THAN NOVELL, INC. WHO HAVE ENTERED INTO APPROPRIATE
LICENSE AGREEMENTS. NO PART OF THIS WORK MAY BE USED, PRACTICED,
PERFORMED COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED,
CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, RECAST, TRANSFORMED
OR ADAPTED WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE
OR EXPLOITATION OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE
PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
***************************************************************************  */


  /* --------------------------------------------------------------  */
  /* This file contains JavaScript to assist in running the eMFrame  */
  /* object selector in simple mode.                                 */
  /* --------------------------------------------------------------  */


  /* ---------------------------------------------------------------  */
  /* Called before an OS is run so that in simple mode, the wizard"s  */
  /* caption and navigation frames can be modified to reflect the     */
  /* search.                                                          */
  /* ---------------------------------------------------------------  */%>
function simpleIsOSAllowed()
{
	<%/* Are we running in simple mode?  */
	   if (session.getAttribute("DeviceType").equals("default")) {
		  /* Yes!  */%>
		var	aCaptionData;
		aCaptionData = new Array();
		aCaptionData["Wiz_Banner_Text"]   = parent.window.Wiz_BannerFrame.Wiz_BannerData["Wiz_Banner_Text"];
		aCaptionData["Wiz_Header_Size"]   = 1;
		aCaptionData["Wiz_Header_Big_0"]  = true;
		aCaptionData["Wiz_Header_Bold_0"] = true;
		aCaptionData["Wiz_Header_Icon_0"] = "dev/OS.gif";
		aCaptionData["Wiz_Header_Item_0"] = "<%= c.string("CfgWiz.SelectFromOS") %>";
		parent.window.Wiz_BannerFrame.updateCaption( aCaptionData );
		parent.window.Wiz_NavigationFrame.showDisabledButtons();
	<% }

	  /* We always return true and allow the OS to run.  */%>
	return( true );
} <%/* simpleIsOSAllowed  */



  /* -----------------------------------------------------------------  */
  /* Called when an OS returns so that in simple mode, returnFromOS     */
  /* gets called and we don"t have to HTT toggle the call in the form.  */
  /* -----------------------------------------------------------------  */%>
function simpleReturnFromOS()
{
	<%/* Are we running in simple mode?  */
	   if (session.getAttribute("DeviceType").equals("default")) { 
		  /* Yes!  Call returnFromOS.  */%>
		returnFromOS();
	<% } %>

} <%/* simpleReturnFromOS  */



						     /* * * * * * *  */
                             /* End of File  */
                             /* * * * * * *  */%>
