<%@  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("DevResources"); %>
<html>
<head>
	<LINK href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>" rel="styleSheet" type="text/css">
	<title>Add</title>
	<% if (c.var("mode").equals("dn")) { %>
      <jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
		<jsp:include page='<%= c.getPath("dev/OSScripts_inc.jsp") %>' flush="true" />
	<% } %>
	<script>
	function addAndClose()
	{
		top.opener.MVAdd('<%= c.var("control") %>',document.forms[0].o.value);
		window.close();
	}
	function onInit()
	{
		document.forms[0].o.focus();
	}
	
	<% if (c.var("mode").equals("dn")) { %>
	function addDN(controlName,results)
	{
		for(i=0;i<results.length;i++)
		{
			top.opener.MVAdd('<%= c.var("control") %>',results[i]);
			window.close();
		}
	}
	<% } %>

	</script>
</head>
<body onLoad="onInit();">
<% if (c.var("mode").equals("dn")) { 
	   c.set("OS.TypeFilter", c.var("filter")); 
	   c.set("OS.Control", "o"); 
	   c.set("OS.Mode", "browse"); 
	   c.set("OS.MultiSelect", "true"); 
   } %>

<form onSubmit="addAndClose();">
Enter a value to add:
<br>
<INPUT type=text name="o" size="<%= c.string("UI.textboxSize") %>" style="width:<%= c.string("UI.textboxPixel") %>">
<% if (c.var("mode").equals("dn")) { %><jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" /><% } %>
<br>
<a href="javascript:addAndClose();"><IMG name="Add" alt="<%= c.string("Button.Add.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Add.image") %>" border=0></a>

</form>
</body>

</html>
