Ув.Юзеры подажалуйста помогите
Как через Javascript отключить (желательно во всех браузерах) переход назад . Вот код
<div align="center">
<?php
ob_start();
session_start();
include("config.php");
$rank_query = mssql_query("Select Name,LevelUpPoint,Strength,Dexterity,Vitality,Energy,Leadership,Class,cLevel,Resets,PkCount,PkLevel,MaxLife,MaxMana,Class,Money FROM Character WHERE AccountID='$username'");
for($i=0;$i < mssql_num_rows($rank_query);++$i)
{
$v=$i+1;
$row = mssql_fetch_row($rank_query);
$status = mssql_query("SELECT * FROM MEMB_STAT WHERE memb___id='$username'");
$status = mssql_fetch_array($status);
$status = $status['ConnectStat'];
if($status == "1")
{
$status = "<img src=images/Online.gif> <img src=images/Online11.gif>";
}
else
{
$status = "<img src=images/Offline.gif> <img src=images/Offline1.gif>";
}
//Class
if ($row['7'] == 0) { $row[7] = "Dark Wizard"; }
if ($row['7'] == 1) { $row[7] = "Soul Master"; }
if ($row['7'] == 2) { $row[7] = "Grand Master"; }
if ($row['7'] == 16) { $row[7] = "Dark Knight"; }
if ($row['7'] == 17) { $row[7] = "Blade Knight"; }
if ($row['7'] == 18) { $row[7] = "Blade Master"; }
if ($row['7'] == 19) { $row[7] = "Blade Master"; }
if ($row['7'] == 32) { $row[7] = "Elf"; }
if ($row['7'] == 33) { $row[7] = "Muse Elf"; }
if ($row['7'] == 34) { $row[7] = "High Elf"; }
if ($row['7'] == 48) { $row[7] = "Magic Gladiator"; }
if ($row['7'] == 49) { $row[7] = "Duel Master"; }
if ($row['7'] == 64) { $row[7] = "Dark Lord"; }
if ($row['7'] == 65) { $row[7] = "Lord Emperor"; }
if ($row['7'] == 80) { $row[7] = "Summoner"; }
if ($row['7'] == 81) { $row[7] = "Bloody Summoner"; }
if ($row['7'] == 82) { $row[7] = "Dimension Master"; }
if ($row['7'] == 83) { $row[7] = "Dimension Master"; }
//PK Level
if($row[11] == 1){ $row[11] ='<font color=#605ca8>Hero';}
if($row[11] == 2){ $row[11] ='<font color=#abcef8>Commoner';}
if($row[11] == 3){ $row[11] ='Normal';}
if($row[11] == 4){ $row[11] ='<font color=#fbaf5d>Against Murderer';}
if($row[11] == 5){ $row[11] ='<font color=#a0410d>Murderer';}
if($row[11] == 6){ $row[11] ='<font color=#c81118>Phonomania';}
//Class Pic
if($row['14'] == 0){ $pic ="<img src=images/dw.jpg width=170 height=215>"; }
if($row['14'] == 1){ $pic ="<img src=images/dw.jpg width=170 height=215>"; }
if($row['14'] == 2){ $pic ="<img src=images/dw.jpg width=170 height=215>"; }
if($row['14'] == 16){ $pic ='<img src=images/dk.jpg width=170 height=215>'; }
if($row['14'] == 17){ $pic ='<img src=images/dk.jpg width=170 height=215>'; }
if($row['14'] == 18){ $pic ='<img src=images/dk.jpg width=170 height=215>'; }
if($row['14'] == 19){ $pic ='<img src=images/dk.jpg width=170 height=215>'; }
if($row['14'] == 32){ $pic ='<img src=images/elf.jpg width=170 height=215>'; }
if($row['14'] == 33){ $pic ='<img src=images/elf.jpg width=170 height=215>'; }
if($row['14'] == 34){ $pic ='<img src=images/elf.jpg width=170 height=215>'; }
if($row['14'] == 48){ $pic ='<img src=images/mg.jpg width=170 height=215>'; }
if($row['14'] == 49){ $pic ='<img src=images/mg.jpg width=170 height=215>'; }
if($row['14'] == 64){ $pic ='<img src=images/dl.jpg width=170 height=215>'; }
if($row['14'] == 65){ $pic ='<img src=images/dl.jpg width=170 height=215>'; }
if($row['14'] == 80){ $pic ='<img src=images/sum.jpg width=170 height=215>'; }
if($row['14'] == 81){ $pic ='<img src=images/sum.jpg width=170 height=215>'; }
if($row['14'] == 82){ $pic ='<img src=images/sum.jpg width=170 height=215>'; }
if($row['14'] == 83){ $pic ='<img src=images/sum.jpg width=170 height=215>'; }
if ($row[8] >= $reslvl)
{
if($row[15] >= $rmoney)
{
$add = "<a href='?id=account_options&option=reset_character&character=$row[0]'><b><font color='#DDA943'>» Reset Char</font></b></a>";
}
else
{
$add = "No zen";
}
}
else
{
$add = "No Level";
}
if(is_int($v / 2))
{
echo "
<tr>
<td width='90%'>
<table width='500' cellspacing='1'><tbody>
<tr><td class='news-head' rowspan='15' width='50'>$pic <br><center><b><font color='#ff6600'>Level - Reset(s)</font></b><br><font color='#DDA943'>$row[8] - $row[9]</font></center>
<td class='news-head' align='center'>Name</td>
<td class='news-head' align='center'>Class</td>
<td class='news-head' align='center'>Level</td>
</tr><tr>
<td class='news-rest' align='center'>$row[0]</td>
<td class='news-rest' align='center'>$row[7]</td>
<td class='news-rest' align='center'>$row[8]</td>
</tr><tr>
<td class='news-head' align='center'>Reset(s)</td>
<td class='news-head' align='center'>Kill(s)</td>
<td class='news-head' align='center'>PK Level</td>
</tr><tr>
<td class='news-rest' align='center'>$row[9]</td>
<td class='news-rest' align='center'>$row[10]</td>
<td class='news-rest' align='center'>$row[11]</td>
</tr><tr>
<td class='news-head' align='center'>Strenght</td>
<td class='news-head' align='center'>Agility</td>
<td class='news-head' align='center'>Vitality</td>
</tr><tr>
<td class='news-rest' align='center'>$row[2]</td>
<td class='news-rest' align='center'>$row[3]</td>
<td class='news-rest' align='center'>$row[4]</td>
</tr><tr>
<td class='news-head' align='center'>Energy</td>
<td class='news-head' align='center'>Command</td>
<td class='news-head' align='center'>Status</td>
</tr><tr>
<td class='news-rest' align='center'>$row[5]</td>
<td class='news-rest' align='center'>$row[6]</td>
<td class='news-rest' align='center'>$status</td>
</tr><tr>
<td class='news-head' align='center'>Mana</td>
<td class='news-head' align='center'>Life</td>
<td class='news-head' align='center'><b><font color='#ff6600'>Option</font></b></td>
</tr><tr>
<td class='news-rest' align='center'>$row[13]</td>
<td class='news-rest' align='center'>$row[12]</td>
<td class='news-rest' align='center'>$add</td>
</tr>
</tbody></table></td>
</tr>";
}
else
{
echo "
<tr>
<td width='90%'>
<table width='500' cellspacing='1'><tbody>
<tr><td class='news-head' rowspan='15' width='50'>$pic <br><center><b><font color='#ff6600'>Level - Reset(s)</font></b><br><font color='#DDA943'>$row[8] - $row[9]</font></center>
<td class='news-head' align='center'>Name</td>
<td class='news-head' align='center'>Class</td>
<td class='news-head' align='center'>Level</td>
</tr><tr>
<td class='news-rest' align='center'>$row[0]</td>
<td class='news-rest' align='center'>$row[7]</td>
<td class='news-rest' align='center'>$row[8]</td>
</tr><tr>
<td class='news-head' align='center'>Reset(s)</td>
<td class='news-head' align='center'>Kill(s)</td>
<td class='news-head' align='center'>PK Level</td>
</tr><tr>
<td class='news-rest' align='center'>$row[9]</td>
<td class='news-rest' align='center'>$row[10]</td>
<td class='news-rest' align='center'>$row[11]</td>
</tr><tr>
<td class='news-head' align='center'>Strenght</td>
<td class='news-head' align='center'>Agility</td>
<td class='news-head' align='center'>Vitality</td>
</tr><tr>
<td class='news-rest' align='center'>$row[2]</td>
<td class='news-rest' align='center'>$row[3]</td>
<td class='news-rest' align='center'>$row[4]</td>
</tr><tr>
<td class='news-head' align='center'>Energy</td>
<td class='news-head' align='center'>Command</td>
<td class='news-head' align='center'>Status</td>
</tr><tr>
<td class='news-rest' align='center'>$row[5]</td>
<td class='news-rest' align='center'>$row[6]</td>
<td class='news-rest' align='center'>$status</td>
</tr><tr>
<td class='news-head' align='center'>Mana</td>
<td class='news-head' align='center'>Life</td>
<td class='news-head' align='center'><b><font color='#ff6600'>Option</font></b></td>
</tr><tr>
<td class='news-rest' align='center'>$row[13]</td>
<td class='news-rest' align='center'>$row[12]</td>
<td class='news-rest' align='center'>$add</td>
</tr>
</tbody></table></td>
</tr>";
}
}
?></div>