function Window_Open(windowName, URL, targetName, windowWidth, windowHeight, windowFeatures) { str = 'width=' + windowWidth + ',height=' + windowHeight; str = str + ","; str = str + "left=" + (screen.width / 2 - windowWidth / 2) + ",top=" + (screen.height / 2 - windowHeight / 2 - 40); if (windowFeatures != null) str = str + ","; windowFeatures = str + windowFeatures; eval(windowName + "=window.open('" + URL + "','" + targetName + "','" + windowFeatures + "')"); }