// generic popup window...
function popUp(URL, name, Width, Height, Left, Top) {
    popwin=open(URL,name,'width=' + Width + ',height=' + Height + ',left=' + Left + ',top=' + Top + ',status=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
    popwin.focus();
	if (popwin.opener == null) popwin.opener = self; // we can use opener in popUp JS functions
}

// generic popup window...
function openViewlet(URL, Width, Height ) {
    popwin=open(URL,'Viewlet','width=' + Width + ',height=' + Height + ',left=100,top=100,status=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
    popwin.focus();
	if (popwin.opener == null) popwin.opener = self; // we can use opener in popUp JS functions
}
// medium popup window...
function popWin(URL, name) {
 popwin=open(URL,name,'width=400,height=400,left=200,top=150,status=no,location=no,toolbar=no,menubar=yes,resizable=yes,scrollbars=yes');
 popwin.focus();
 if (popwin.opener == null) popwin.opener = self; // we can use opener in popUp JS functions
}

// large popup window...
function popWin1(URL, name) {
 popwin=open(URL,name,'width=640,height=400,left=100,top=100,status=no,location=no,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes');
 popwin.focus();
 if (popwin.opener == null) popwin.opener = self; // we can use opener in popUp JS functions
}
// small popup window...
function popWin2(URL, name) {
 popwin=open(URL,name,'width=300,height=150,left=200,top=150,status=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
 popwin.focus();
 if (popwin.opener == null) popwin.opener = self; // we can use opener in popUp JS functions
}

