Help with jump menu

Hi guys, First time poster here.

I have a 20+articles on my clients website:

Iv’e been told that i have to do away with the frames. Each page is to hold it’s own navigation to the other pages.

As well as there being the 20+ static pages on the server i also have a backup database of all these articles as well. I thought i would use the database side to create a jump menu to nav between the pages rather than hand coding each page, plus there comes the problem when pages are added or deleted.

Here is what i have so far.

<script type="text/JavaScript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
if (restore) selObj.selectedIndex=0;
<form id="form1" name="form1" method="get" action="">
$result = mysql_query("select arTitle from scArticles");
if ($result) 
echo "<SELECT NAME='arTitle' onchange=\"MM_jumpMenu('parent',this,0)\">";
while ($myrow = mysql_fetch_array($result))
	 echo "<OPTION VALUE=\"".$myrow["arTitle"].".htm\">" . $myrow["arTitle"]." </OPTION> ";
echo "</SELECT>";

It works so far.

The problem that i am having is when the selected page loads. How do i set the menu to display the current page being viewed.

I know where i need to put the code, just dont know what to put.

echo "<SELECT NAME='arTitle' onchange=\"MM_jumpMenu('parent',this,0)\">";
"<SELECT NAME='current page' onchange=\"MM_jumpMenu('parent',this,0)\">";

Any help very much appreciated.