<%@  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"); 
   c.stringTable("BaseResources"); %>
<HTML>
<HEAD>
   <LINK rel="stylesheet" href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>" type="text/css">
   <jsp:include page='<%= c.getPath("dev/XmlScripts_inc.jsp") %>' flush="true" />
   <jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
   <jsp:include page='<%= c.getPath("dev/ValidateIntegerScripts_inc.jsp") %>' flush="true" />

    <SCRIPT LANGUAGE="JavaScript">
	function onInit()
	{
		if( document.forms[0].choice.length != 0 )
		{
			document.forms[0].choice.options[0].selected = true;
		}

		document.forms[0].choice.focus();
	}

	function onExit()
	{

            if(parentIsOpen(opener.document.auxClassForm))
            {
                //set the auxClassName
                indx = document.forms[0].choice.selectedIndex;
                opener.document.auxClassForm.className.value = document.auxClassForm.choice.options[indx].text;

                // set the next state
                opener.document.auxClassForm.nextState.value = "doRemoveObject";

                // set the merge to be the opener again with the added class
                opener.document.auxClassForm.merge.value = "fw.ExtendMultipleObjects";
				
				if(confirm("<%= c.toScript(c.string("ExtendObjectDelete")) %> " + opener.document.auxClassForm.className.value + "?") )
            	{
                opener.document.auxClassForm.submit();
                window.close();
                }
            }
	}

    </SCRIPT>
</HEAD>


<BODY bgcolor="#FFFFFF" TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" onload="onInit();">
<FORM name=auxClassForm method=post>

   <!---- Shared Form Code ---->

    <% c.set("TaskHeader.title", c.string("ExtendObjectTaskDisplayName")); %>
    <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" /><BR>

    <table border="0" bgcolor="#FFFFFF" cellpadding="3" cellspacing="0">

    <TR>
        <TD>
        <font face="Trebuchet MS,Helvetica,Arial">
            <%= c.toDisplay(c.string("ExtendClassAvailAuxCls")) %>
        </font>
        </TD>
    </TR>

    <TR>
        <TD>
            <select style="width:300" name=choice size=10>
            	<% c.set("i", "0"); 
	               while (c.lt(c.var("i"), c.var("auxClass.count"))) { %>
	                <option value="<%= c.var("auxClass."+c.var("i")) %>"><%= c.var("auxClass."+c.var("i")) %></option>
            		<% c.inc("i"); 
            	   } %>
            </select>
        </TD>
    </TR>

    <TR>
        <TD>
        </TD>
    </TR>

    </TABLE>

   <BR>
<a href="javascript: onExit();"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0></A>&nbsp;
<a href="javascript: window.close();"><IMG name="Cancel" alt="<%= c.string("Button.Cancel.alt") %>" title="<%= c.string("Button.Cancel.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Cancel.image") %>" border=0></a>
   <HR color="#6B8899" size="2">


</form>
</BODY>
</HTML>