function stdWndAttr() {
    // Add menubar and toolbar back in becuase otherwise has problem dealing with embedded docs like Excel (in IE), and managing child links in popup docs.
    return "scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes,status=no";
}

function openHelpWindow(theURL) 
{

  hWnd = window.open('' + theURL,'dcbiohelpview','scrollbars=yes,resizable=yes,width=400,height=400' );

    if (hWnd !== null) hWnd.focus();

}


function openBrWindow(theURL) 
{ 
     // Add menubar and toolbar back in becuase otherwise has problem dealing with embedded docs like Excel (in IE), and managing child links in popup docs.
     hWnd = window.open(theURL, "DocumentView", stdWndAttr() + ",width=500,height=500");
     if (hWnd != null) hWnd.focus();

}

function wndSizing(wndHeight, wndWidth) {
     /* Added code to support centering.
       This code doesnt properly support  multiple monitors
     TODO Future :Want to support positioning next to the control that invoked this script in the future */
     var myLeft = (screen.availWidth - wndWidth) / 2;
     var myTop = (screen.availHeight - wndHeight) / 2;
     return "left=" + myLeft + ",top=" + myTop + ",width=" + wndWidth + ",height=" + wndHeight;
}

function gotoUrl(sPath)
{
    window.location = sPath;
}
