function fncOpenWindow(strURL, strName, intWidth, intHeight, blnResizable, blnMenubar, blnToolbar, blnDirectories, blnLocation, blnScrollbars, blnStatus){ var strWindowFeatures = ""; if (blnMenubar) { strWindowFeatures += "menubar=yes"; }else{ strWindowFeatures += "menubar=no"; } if (blnToolbar) { strWindowFeatures += ",location=yes"; } else { strWindowFeatures += ",location=no"; } if (blnDirectories) { strWindowFeatures += ",toolbar=yes"; } else { strWindowFeatures += ",toolbar=no"; } if (blnLocation) { strWindowFeatures += ",directories=yes"; } else { strWindowFeatures += ",directories=no"; } if (blnScrollbars) { strWindowFeatures += ",scrollbars=yes"; } else { strWindowFeatures += ",scrollbars=no"; } if (blnStatus) { strWindowFeatures += ",status=yes"; } else { strWindowFeatures += ",status=no"; } if (blnResizable) { strWindowFeatures += ",resizable=yes"; } else { strWindowFeatures += ",resizable=no"; } if (intWidth != null) { if (intWidth > 0) { strWindowFeatures += ",width=" + intWidth; } } if (intHeight != null) { if (intHeight > 0) { strWindowFeatures += ",height=" + intHeight; } } winPopupWindow = window.open(strURL, strName, strWindowFeatures); } function openSmallWindow(strURL, strName) { fncOpenWindow(strURL, strName, 400, 600, false, false, false, false, false, true, true); }