function popWin(sUrl,iWidth,iHeight,sWindow) {
    var iLeftPos = Math.round((screen.width-iWidth)/2);
    var iTopPos = Math.round((screen.height-iHeight)/2);
    popwin = window.open(sUrl,sWindow,'width='+iWidth+', height='+iHeight+',top='+iTopPos+',left='+iLeftPos+',scrollbars=0');
}
