im in the middle of adding a new nav bar and it wont work now this is in a game witch calls the links with a ?tru=<?=$tru?> in it to call to what round its at a normal link would be something like this options.php?tru=<?=$tru?> but this just sends me back to the login page for the round now in the .js file its says the links rigt but still not working any one have any ideas would be great ive includes te .js file document.write('<STYLE type="text/css">'); document.write('#menuspan961 { position:absolute; width:334px; }'); document.write('#menutable961 { border-width: 1px; border-color: #808080; border-style:solid}'); document.write('td.menucell961 { padding:2px; padding-left:4px; padding-right:4px; background:#0F0F0F; border:0px solid #030507; text-align:LEFT; }'); document.write('#submenutable961 { background: #9EB5E2; border-width: 1px; border-color: #808080; border-style:solid}'); document.write('td.topcell961 {text-decoration:none; color:#FFFF00; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal; text-align:LEFT; }'); document.write('a.topitem961 {text-decoration:none; color:#FFFF00; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal; } '); document.write('a.topitem961:hover {text-decoration:none; color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}'); document.write('a.subitem961 {text-decoration:none; color:#F4F4F4; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal; } '); document.write('a.subitem961:hover {text-decoration:none; color:#FFFF00; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal; }'); document.write('P.MN961 {margin:0px; color:#FFFF00; font-weight: 700; font-family: Verdana; font-size:12px; font-style:normal; }'); document.write('P.SMN961 {text-decoration:none; color:#F4F4F4; font-weight: 700; font-family: Verdana; font-size:12px; font-style:normal; margin:0px; }'); document.write('#submenu961_0 { position:absolute; left:167px; top:20px; visibility:hidden; }'); document.write('</style>'); var thisbrowser961 var hidetimer961 = null; if(document.layers){ thisbrowser961='NN4'; } if(document.all){ thisbrowser961='IE'; } if(!document.all && document.getElementById){ thisbrowser961='NN6'; } function showmenu961(menuname) { if(thisbrowser961=='NN4') document.layers[menuname].visibility = 'visible'; if(thisbrowser961=='IE') document.all[menuname].style.visibility = 'visible'; if(thisbrowser961=='NN6') document.getElementById(menuname).style.visibility = 'visible'; if(hidetimer961) clearTimeout(hidetimer961);} function timermenu961() { if(hidetimer961) clearTimeout(hidetimer961);hidetimer961 = setTimeout("hideall961();",1000); } function hidemenu961(menuname) { if(thisbrowser961=='NN4') document.layers[menuname].visibility = 'hidden'; if(thisbrowser961=='IE') document.all[menuname].style.visibility = 'hidden'; if(thisbrowser961=='NN6') document.getElementById(menuname).style.visibility = 'hidden'; } function hilite961(menuitem) { if(typeof(currentpage961)!='undefined' && menuitem==currentpage961) return; if(thisbrowser961=='IE') document.all[menuitem].style.backgroundColor = '#0F0F00'; if(thisbrowser961=='NN6') document.getElementById(menuitem).style.backgroundColor = '#0F0F00'; if(hidetimer961) clearTimeout(hidetimer961);} function unhilite961(menuitem) { if(typeof(currentpage961)!='undefined' && menuitem==currentpage961) return; if(thisbrowser961=='IE') document.all[menuitem].style.backgroundColor = '#0F0F0F'; if(thisbrowser961=='NN6') document.getElementById(menuitem).style. backgroundColor = '#0F0F0F'; if(hidetimer961) clearTimeout(hidetimer961);hidetimer961 = setTimeout("hideall961();",1000); } function hideall961() { hidemenu961('submenu961_0'); } function openmenu961(menuname) { showmenu961(menuname); if(menuname!='submenu961_0') hidemenu961('submenu961_0'); } document.write('<table width=334 cellspacing=0 border=0 cellpadding=0>'); document.write('<tr><td align=left valign=top>'); document.write('<span id="menuspan961">'); document.write('<table width=334 id="menutable961" cellspacing=0 cellpadding=1 >'); document.write('<tr>'); document.write('<td class="topcell961" align=LEFT width=83 height=20 bgcolor=#0F0F0F onMouseOver="hideall961()">') document.write('<table cellspacing=0 cellpadding=0 border=0><tr><td>'); document.write('<a href="index.php?tru=<?=$tru?>" target="" title="" class="topitem961"> Home</a>'); document.write('</td><td><p class="SMN961"> </p></td></tr></table>'); document.write('</td>'); document.write('<td class="topcell961" align=LEFT width=83 height=20 bgcolor=#0F0F0F onMouseOver="hideall961()">') document.write('<table cellspacing=0 cellpadding=0 border=0><tr><td>'); document.write('<a href="options.php?tru=<?=$tru?>" target="" title="" class="topitem961">MyProfile</a>'); document.write('</td><td><p class="SMN961"> </p></td></tr></table>'); document.write('</td>'); document.write('<td class="topcell961" align=LEFT width=83 height=20 bgcolor=#0F0F0F onMouseOver="openmenu961(\'submenu961_0\')" onMouseOut="timermenu961();">') document.write('<table cellspacing=0 cellpadding=0 border=0><tr><td>'); document.write('<a href="" target="_self" title="" class="topitem961">Ranks</a>'); document.write('</td><td><p class="SMN961"><font face="webdings" color=#FFFF00>6</font></p></td></tr></table>'); document.write('</td>'); document.write('<td class="topcell961" align=LEFT width=83 height=20 bgcolor=#0F0F0F onMouseOver="hideall961()">') document.write('<table cellspacing=0 cellpadding=0 border=0><tr><td>'); document.write('<a href="" target="_self" title="" class="topitem961">Help</a>'); document.write('</td><td><p class="SMN961"> </p></td></tr></table>'); document.write('</td>'); document.write('</tr>'); document.write('</table><p>'); document.write('<div id="submenu961_0">'); document.write('<table id="submenutable961" width=150 cellspacing=0>'); document.write('<tr>'); document.write('<td align=LEFT class="menucell961" height=20 id="s961_0_0" onMouseOver="hilite961(\'s961_0_0\')" onMouseOut="unhilite961(\'s961_0_0\')">'); document.write('<table cellspacing=0 cellpadding=0 border=0 width="100%"><tr><td width="90%" align=LEFT>'); document.write('<a href="ranks.php?tru=<?=$tru?>" target="" title="" class="subitem961" >City Ranks</a>') ;document.write('</td><td><p class="SMN961"> </p></td></tr></table>'); document.write('</td>'); document.write('</tr>'); document.write('<tr>'); document.write('<td align=LEFT class="menucell961" height=20 id="s961_0_1" onMouseOver="hilite961(\'s961_0_1\')" onMouseOut="unhilite961(\'s961_0_1\')">'); document.write('<table cellspacing=0 cellpadding=0 border=0 width="100%"><tr><td width="90%" align=LEFT>'); document.write('<a href="granks.php?tru=<?=$tru?>" target="" title="" class="subitem961" >Global Ranks</a>') ;document.write('</td><td><p class="SMN961"> </p></td></tr></table>'); document.write('</td>'); document.write('</tr>'); document.write('<tr>'); document.write('<td align=LEFT class="menucell961" height=20 id="s961_0_2" onMouseOver="hilite961(\'s961_0_2\')" onMouseOut="unhilite961(\'s961_0_2\')">'); document.write('<table cellspacing=0 cellpadding=0 border=0 width="100%"><tr><td width="90%" align=LEFT>'); document.write('<a href="cranks.php?tru=<?=$tru?>" target="" title="" class="subitem961" >Family Ranks</a>') ;document.write('</td><td><p class="SMN961"> </p></td></tr></table>'); document.write('</td>'); document.write('</tr>'); document.write('</table></div>'); document.write('</span></td></tr></table>'); PHP: