diff --git a/www/menu.php3 b/www/menu.php3 index 3606f53b52185951eaa80c01db61588ac8ef316e..1dd1427d9c355c051e3cabd7809c414640c51115 100644 --- a/www/menu.php3 +++ b/www/menu.php3 @@ -847,14 +847,20 @@ function PAGEERROR($msg) { # # Sub Page/Menu Stuff # -function WRITESUBMENUBUTTON($text, $link) { +function WRITESUBMENUBUTTON($text, $link, $target = "") { + # + # Optional 'target' agument, so that we can pop up new windows + # + if ($target) { + $targettext = "target='$target'"; + } echo "<!-- Table row for button $text --> <tr> <td valign=center align=left nowrap> <b> - <a class=sidebarbutton href='$link'>$text</a>\n"; + <a class=sidebarbutton href='$link' $targettext>$text</a>\n"; echo " </b> </td>