var pwidth = 550; //width of popup window
var pheight = 350; //height of popup window
var pleft = screen.availWidth - pwidth - 10; // left position of popup windows (accounting for chrome)
var ptop = Math.round(screen.availHeight / 2) - Math.round(pheight / 2) - 30; // top position of popup windows (accounting for chrome and task bar)

function popupWin(key,code)
 {
 var url = "scripts/publish/press_more.asp?key=" + key + "&code=" + code;
 var props = 'width=' + pwidth + ',height=' + pheight + ',left=' + pleft + ',top=' + ptop + ',resizable=no,status=no,scrollbars=yes';
 var popUp = window.open(url, 'popup',props);
 popUp.focus();
 }
