use somethnig like this as your javascript functino to open the popup window:
<SCRIPT LANGUAGE="JavaScript">
<!--
function popUp(URL, ID, level){
if (level == "superuser"){
win = window.open(URL, ID, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=620,height=400,left=10,top=10');
}else{
win = window.open(URL, ID, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=400,left=10,top=10');
}
-->
</SCRIPT>
then, simply pass the URL of the popup, along with the ID, or title bar name of the window, and the level (ie: superuser, or not). The if..else in the javascript function pops up a full window for superuser, or a restricted window for not.