Variable UI_JSLIB <<EOJSLIB
<script language="JavaScript">
<!--
function open_help(url) {
 if(url == undefined) 
  url = '[area href="[either]@_UI_HELP_URL_@[or]@_UI_BASE_@/help[/either]" form="topic=[scratch help_name]"]';
 opts="top=0,left=0,scrollbars,status=no,menubar=no,location=yes,toolbar=no,resizable=yes,fullsize=no,width=__UI_HELP_WIDTH__,height=__UI_HELP_HEIGHT__";
 window.open(url, 'Help', opts);
}
function checkAll(form,what,uncheck) {
 var i, n, check;
 n = form.elements[what].length;
 if (!n) {
  if (uncheck == 1) {
   form.elements[ what ].checked=false;
  } else {
   form.elements[ what ].checked=true;
  }
 } else {
   var checkval;
   if (uncheck == 1) { checkval=false; } else { checkval=true; }
   for (i=0; i < n; i++) {
    check = form.elements[ what ][ i ];
    check.checked = checkval;
   }
 }
}
function addItem(selector, receptor, joiner, replace) {
 if (replace) {
  receptor.value = selector[selector.selectedIndex].value;
  return true;
 }
 if (!joiner) { joiner = " "; } else { joiner = "\n"; }
 if (receptor.value != '') receptor.value = receptor.value + joiner;
 if (selector[selector.selectedIndex].value != null) {
  receptor.value = receptor.value + selector[selector.selectedIndex].value;
 } else {
  if (selector[selector.selectedIndex].text != null) {
   receptor.value = receptor.value + selector[selector.selectedIndex].text;
  }
 }
 return true;
}
//-->
</script>
EOJSLIB
