Index: trunk/admin/include/mainscript.php =================================================================== diff -u -N -r34 -r36 --- trunk/admin/include/mainscript.php (.../mainscript.php) (revision 34) +++ trunk/admin/include/mainscript.php (.../mainscript.php) (revision 36) @@ -409,19 +409,23 @@ return false; } -function CreatePopup(window_name, url) +function CreatePopup(window_name, url, width, height) { // creates a popup window & returns it - if(url == null) url = ''; - return window.open(url,window_name,'width=750,height=400,status=yes,resizable=yes,menubar=no,scrollbars=yes,toolbar=no'); + if(url == null && typeof(url) == 'undefined' ) url = ''; + if(width == null && typeof(width) == 'undefined' ) width = 750; + if(height == null && typeof(height) == 'undefined' ) height = 400; + + + return window.open(url,window_name,'width='+width+',height='+height+',status=yes,resizable=yes,menubar=no,scrollbars=yes,toolbar=no'); } function ShowHelp(section) { var frm = document.getElementById('help_form'); frm.section.value = section; frm.method = 'POST'; - CreatePopup('HelpPopup'); + CreatePopup('HelpPopup','$rootURL$admin/help/blank.html', null, 600); frm.target = 'HelpPopup'; frm.submit(); }