<!--
//   Name:  TaskLaunchingExampleClientSideTemplate.jsp
//
//   Copyright (c) 1997-2004 Novell, Inc.  All Rights Reserved.
//
//   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.
//   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT
//   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK.
//   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A
//   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS
//   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET,
//   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S
//   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S
//   CUSTOMERS WITH RESPECT TO THIS CODE.
-->

<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" 
		import="com.novell.emframe.dev.eMFrameUtils" %>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>

<iman:stringtable bundle="DevResources"/>
<iman:stringtable bundle="FwResources"/>
<iman:stringtable bundle="com.company.plugins.iManagerCodeExamplesResources"/>
   

<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <LINK rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">
   <iman:eMFrameScripts/>
   <script>
   function updateParent()
   {
      opener.document.forms[0].secondTextValue.value=document.forms[0].textValue.value;

      var date = new Date();
      window.location = "frameservice?NPService=fw.LaunchService&NPAction=Return&returnID=<c:out value="${taskId}"/>&unique=" + date.getTime();
   }
   </script>
</HEAD>

<BODY>
   <form>
   <iman:string key="TaskLaunchingExample.TemplatePrompt"/>:
   <br/>
   <input type="text" name="textValue" size="15" value="<c:out value="${secondTextValue}"/>">
   </form>
   <iman:bar/>
   <iman:button key="OK" type="input" onClick="updateParent()"/>
   <iman:cancelBtn/>
</BODY>
</HTML>
