function popuppi(dest,lev,kork) {
var iMyWidth;
var iMyHeight;
//half the screen width minus half the new window width (plus 5 pixel borders).
iMyWidth = (window.screen.width/2) - (lev/2 + 10);
//half the screen height minus half the new window height (plus title and status bars).
iMyHeight = (window.screen.height/2) - (kork/2 + 50);
//Open the window.
var win2 = window.open(dest,"Window2","left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,window=no,resizable=no,scrolling=no,copyhistory=no,width=" + lev + ",height=" + kork);
win2.focus();
}
