<html>
<head>
<title>DropDown Menu Navigator</title>
<script type="text/javascript">
function BackAndForth(objName,goDirection)
{
var selVal = (document.getElementById ? document.getElementById(objName) : document.all[objName]);
if(selVal == null)
return false;
var optLen = selVal.options.length;
var numSel = selVal.selectedIndex;
if(optLen > 0)
{
if(goDirection == 1)
{
if (optLen - numSel == 1)
{
selVal.selectedIndex = 0;
}
else
{
selVal.selectedIndex = numSel + 1;
}
}
else
{
if (numSel == 0)
{
selVal.selectedIndex = optLen - 1;
}
else
{
selVal.selectedIndex = numSel - 1;
}
}
}
}
</script>
</head>
<body>
<div style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<a href="javascript:void(0);" onclick="BackAndForth('Boroughs', 0);">« Previous</a>
<select id="Boroughs">
<option value="Manhattan">Manhattan</option>
<option value="Queens">Queens</option>
<option value="Brooklyn">Brooklyn</option>
<option value="Bronx">Bronx</option>
<option value="Staten Island">Staten Island</option>
</select>
<a href="javascript:void(0);" onclick="BackAndForth('Boroughs', 1);">Next »</>
</div>
</body>
</html>