<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="init" >
	<script type="text/javascript" src="{@SYS.JSP}/common/default.js?v={@SYS.BUILD_ID}" ><!-- --></script>
	<script type="text/javascript" src="{@SYS.JSP}/common/multiChoose.js?v={@SYS.BUILD_ID}" ><!-- --></script>
</og:head>

<body>

<og:equals val1="{@SYSTEM_ID}" nullCheck="true" notEquals="true">
	<og:localResource systemId="{@SYSTEM_ID}" />
</og:equals>

<og:equals val1="{@editor}" nullCheck="true" >
	<og:value command="SET" key="editor" value="MENU" />
</og:equals>

<form>
<table summary="layout">
<tr><td id="label"><og:requestValue lbl="{@name}" /></td><td></td><td></td>
	<td id="label">Select</td></tr>
<tr><td><og:column name="{@name}" addNoValue="false" td="false" editor="{@editor}" param="{@param}" optionAttributes="multiple='multiple' size='8'" id="listFrom" style="widtog:200px;" /></td>
<td>
<!-- ⇒ --><input type="button" value="\u21d2"  onClick="switchListOpts(listFrom, listTo, false)" /><br />
<!-- → --><input type="button" value="\u2192"  onClick="switchListOpts(listFrom, listTo, true)"  /><br />
<!-- ← --><input type="button" value="\u2190"  onClick="switchListOpts(listTo, listFrom, true)"  /><br />
<!-- × --><input type="button" value="\u00d7"  onClick="switchListOpts(listTo, listFrom, false)" />
</td>
<td>
<!-- ▲ --><input type="button" value="\u25b2"  onClick="moveListOpts(listTo, 3)" /><br />
<!-- △ --><input type="button" value="\u25b3"  onClick="moveListOpts(listTo, 1)" /><br />
<!-- ▽ --><input type="button" value="\u25bd"  onClick="moveListOpts(listTo, 2)" /><br />
<!-- ▼ --><input type="button" value="\u25bc"  onClick="moveListOpts(listTo, 4)" />
</td>
<td>
<select size="8" multiple="multiple" id="listTo" style="widtog:200px;">
</select></td>
</tr>
<tr><td></td><td></td><td></td>
<og:equals val1="{@separator}" nullCheck="true" >
	<og:value command="SET" key="separator" value="|" />
</og:equals>
<td>
	<og:text><button name="ok" onClick="makeCSV(listTo,window.opener.document.getElementById( window.name ),'{@separator}'); window.close();" >OK</button></og:text>
</td>
</tr>
</table>
</form>

<og:text>
<script type="text/javascript" >
	var listFrom = document.getElementById('listFrom');
	var listTo   = document.getElementById('listTo');

	var obj = window.opener.document.getElementById( window.name );
	if( obj != null ) {
		//initOpts( document.getElementById('listFrom'), document.getElementById('listTo'),obj.value,'{@separator}' );
		initOpts( listFrom, listTo,obj.value,'{@separator}' );
	}
	else {
		window.close();
	}
</script>
</og:text>

</body>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
