// Open a pop up window
function openWindow( url, name, w, h) {
    popupWin = window.open( 
                 url,
                 name,
                 'width=' + w +
                 ',height=' + h +
                 ',left=20,top=20,screenX=20,screenY=20,scrollbars=yes,resizable=yes' 
    );
    popupWin.focus()
}

function popPost( nntp ) {
  openWindow ( 'postform.xsp?nntp=' +
                 nntp,
               'POSTFORM', 
               700, 500
                );
}

function popReply( nntp, msgid ) {
  openWindow ( 'replyform.xsp?nntp=' +
                 nntp + '&msgid=' + msgid,
               'REPLYFORM', 
               700, 500
                );
}

function popComment( feature ) {
  openWindow ( '/apps/comments/commentpopupform.xsp?url=' +
                 escape(window.location.href) + 
                 '&feature=' + 
                 escape(feature), 
               'COMMENT', 
               700, 500
                );
}

function popCreate() {
  openWindow ( '/apps/discussions/createform.xsp',
               'CREATE', 
               700, 500
             );
}

function popChat() {
  openWindow ( '/apps/chat/chat.xsp', 
               'CHAT', 
               700, 500
             );
}



