/*
Library ID :	LBJS00
Library Name :	JavaScript Itemserver
Description :	This library provides a set of Javascripts functions/classes that imitates
  an ItemServer like behaviour.
Library Location:	JavaScript: /document-root/scripts
Programmed by:  Audie Cortez Mortel
*/
<!-- Hiding from non JS compatible Browsers
function openWin(url, width, height) {
  if (url.indexOf("javascript:") == 0) {
    js_str = url.substring(11,url.length);
    eval(js_str);
  } else {
    ileft = (screen.width - width) / 2;
    itop = (screen.height - height) / 2;
    sProp = "width=" + width + ",height=" + height + ",left=" + ileft + ",top=" + itop + "toolbar=yes,scrollbars=no,status=no,resizable=yes";
    modal_win = open(url, "", sProp);
    modal_win.focus();
  }
}
function openWinContent(url, width, height,name) {
  if (url.indexOf("javascript:") == 0) {
    js_str = url.substring(11,url.length);
    eval(js_str);
  } else {
    ileft = (screen.width - width) / 2;
    itop = (screen.height - height) / 2;
    sProp = "width=" + width + ",height=" + height + ",left=" + ileft + ",top=" + itop + "toolbar=yes,scrollbars=yes,status=no,resizable=yes";
    modal_win = open(url, name, sProp);
    modal_win.focus();
  }
}
function openWinName(url, width, height,name) {
  if (url.indexOf("javascript:") == 0) {
    js_str = url.substring(11,url.length);
    eval(js_str);
  } else {
    ileft = (screen.width - width) / 2;
    itop = (screen.height - height) / 2;
    sProp = "width=" + width + ",height=" + height + ",left=" + ileft + ",top=" + itop + "toolbar=yes,scrollbars=no,status=no,resizable=yes";
    modal_win = open(url, name, sProp);
    modal_win.focus();
  }
}
//-->
