My navigation menu throughout all my pages is called from a page called menu.php which in turn calls the javascript from the mm_menu.js page that i mentioned in my previous thread post.

My query is that when i click a sub menu link it opens in the same window. I need to know whether I can have it open in a new window.

I have tried other altenatives such as window.open and window="new" but not sure why it won't work. I could be changing the wrong bits or putting it in the wrong place i'm not sure.

below is an example taken from my menu.php page.

can anyone help.

kind regards

<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0830142400_0) return;
window.mm_menu_0830142400_0 = new Menu("root",127,23,"",12,"#000000","#FFFFFF","#CCCCCC","#000084","left","top",0,0,1000,-5,7,true,false,true,0,true,true);
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-bsb.jpg>","location='/racing-british-superbikes.php'");
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-wsb.jpg>","location='/racing-wsb.php'");
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-gp500.jpg>","location='/racing-gp500.php'");
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-road-racing.jpg>","location='/racing-road-racing.php'");
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-super-moto.jpg>","location='/racing-supermoto.php'");
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-motox.jpg>","location='/racing-motox.php'");
mm_menu_0830142400_0.addMenuItem("<img src=/images/menu/menu-item-list-monsta-moto-racing.jpg>","location='/racing-monsta-moto.php'");
mm_menu_0830142400_0.hideOnMouseOut=true;
mm_menu_0830142400_0.bgColor='#555555';
mm_menu_0830142400_0.menuBorder=0;
mm_menu_0830142400_0.menuLiteBgColor='#FFFFFF';
mm_menu_0830142400_0.menuBorderBgColor='#777777';
window.mm_menu_0830143243_0 = new Menu("root",127,23,"",12,"#000000","#FFFFFF","#CCCCCC","#000084","left","top",0,0,1000,-5,7,true,false,true,0,true,true);
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-bsb.jpg>","location='/gallery-bsb.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-wsb.jpg>","location='/gallery-wsb.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-gp500.jpg>","location='/gallery-gp500.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-road-racing.jpg>","location='/gallery-road-racing.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-grid-girls.jpg>","location='/gallery-grid-girls.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-super-moto.jpg>","location='/gallery-super-moto.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-motox.jpg>","location='/gallery-moto-x.php'");
mm_menu_0830143243_0.addMenuItem("<img src=/images/menu/menu-item-list-monsta-moto-gallery.jpg>","location='/gallery-monsta-moto.php'");
mm_menu_0830143243_0.hideOnMouseOut=true;
mm_menu_0830143243_0.bgColor='#555555';
mm_menu_0830143243_0.menuBorder=1;
mm_menu_0830143243_0.menuLiteBgColor='#FFFFFF';
mm_menu_0830143243_0.menuBorderBgColor='#777777';


AND SO ON AND SO ON for all the buttons across and then the bottom of the code in the page is this (repeated for all buttons)

mm_menu_0830153955_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
<script language="JavaScript" src="/mm_menu.js"></script>
</head>
<body>
<script language="JavaScript1.2">mmLoadMenus();</script>
<img src="/images/main/menu-item-blank.jpg" width="1" height="23"><img src="/images/main/menu-item-blank-grey.jpg" width="6" height="23" border="0"><a href="/index.php"><img src="/images/main/menu-item-home.jpg" alt="Home" name="Home" width="96" height="23" border="0"></a><img src="/images/main/menu-item-blank-grey.jpg" width="6" height="23" border="0"><img src="/images/main/menu-item-blank.jpg" width="1" height="23"><a href="#" onMouseOver="MM_showMenu(window.mm_menu_0830142400_0,0,23,null,'Racing1')" onMouseOut="MM_startTimeout();"><img src="/images/main/menu-item-blank-grey.jpg" name="Racing1" width="6" height="23" border="0" id="Racing1"><img src="/images/main/menu-item-racing.jpg" alt="Racing" name="Racing" width="96" height="23" border="0" id="Racing"></a><img src="/images/main/menu-item-blank-grey.jpg" width="6" height="23" border="0"><img src="/images/main/menu-item-blank.jpg" width="1" height="23"><a href="#" onMouseOver="MM_showMenu(window.mm_menu_0830143243_0,0,23,null,'Galleries1')" onMouseOut="MM_startTimeout();"><img src="/images/main/menu-item-blank-grey.jpg" name="Galleries1" width="6" height="23" border="0" id="Galleries1"><img src="/images/main/menu-item-galleries.jpg" alt="Galleries" name="Galleries" width="96" height="23" border="0" id="Galleries"></a><img src="/images/main/menu-item-blank-grey.jpg" width="6" height="23" border="0"><img src="/images/main/menu-item-blank.jpg" width="1" height="23"><a href="javascript:;" onMouseOver="MM_showMenu(window.mm_menu_0830151101_0,0,23,null,'Classifieds1')" onMouseOut="MM_startTimeout();"><img src="/images/main/menu-item-blank-grey.jpg" name="Classifieds1" width="6" height="23" border="0" id="Classifieds1"><img src="/images/main/menu-item-classifieds.jpg" alt="Classifieds" name="Classifieds" width="96" height="23" border="0" id="Classifieds"></a><img src="/images/main/menu-item-blank-grey.jpg" width="6" height="23" border="0"><img src="/images/main/menu-item-blank.jpg" width="1" height="23">