function openWindow(
	targetURL,
	windowName,
	top,left,width,height,
	withMenubar,
	withToolbar,
	withScrollbars,
	withStatusbar,
	withTitlebar,
	withHotkeys,
	isResizable,
	isAlwaysRaised,
	isDependent) {

  var retValue, strStyle;

  if ((withMenubar!='0') && (withMenubar!='1')) {
		withMenubar='0';
	};
	if ((withToolbar!='0') && (withToolbar!='1')) {
			withToolbar='0';
	};
	if ((withScrollbars!='0') && (withScrollbars!='1')) {
			withScrollbars='0';
	};
	if ((withStatusbar!='0') && (withStatusbar!='1')) {
			withStatusbar='0';
	};
	if ((withTitlebar!='0') && (withTitlebar!='1')) {
			withTitlebar='0';
	};
	if ((withHotkeys!='0') && (withHotkeys!='1')) {
			withHotkeys='0';
	};
	if ((isResizable!='0') && (isResizable!='1')) {
			isResizable='0';
	};
	if ((isAlwaysRaised!='0') && (isAlwaysRaised!='1')) {
			isAlwaysRaised='0';
	};
	if (((isDependent!='') && (isDependent!='dependent')) || (isDependent=='undefined')) {
			isDependent='dependent';
	};
  strStyle =
    'menubar=' + withMenubar +
    ',toolbar=' + withToolbar +
    ',scrollbars=' + withScrollbars +
    ',status=' + withStatusbar +
    ',width=' + width +
    ',height=' + height +
    ',top=' + top +
    ',left=' + left +
    ',titlebar=' + withTitlebar +
    ',resizable=' + isResizable +
    ',alwaysRaised=' + isAlwaysRaised +
    ',hotkeys=' + withHotkeys +
    ',' + isDependent;
  retValue = window.open(targetURL,windowName,strStyle);
  retValue.focus();
  return retValue;
}
