function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

function openWindow(theURL,winName,features, height, width) {
var popupwidth  = width;
var popupheight = height;
var left = Math.round(((screen.width) / 2)-popupwidth/2);
var top = Math.round(((screen.height) / 2)-popupheight/2) - 20;

features = (features=='')?'width=' + popupwidth + ',height=' + popupheight + ',left=' + left + ',top=' + top:features + ',' + 'width=' + popupwidth + ',height=' + popupheight + ',left=' + left + ',top=' + top;

MM_openBrWindow(theURL,winName,features);
}