Javascripts won't validate--and aren't supposed to. Validation tools just aren't sophisticated enough to tell the difference between a well formed javascript and bad code.
Anyway, here is the code for a jump menu that really zings...thought you might like to add it to your arsenal of code snippets.
You can tell the javascript to open the link in a new window or not with a simple change to the hyperlink:
<option value="new|your_page1.html">Your page 1---Opens a new Window</option>
<option value="|your_page2.html">Your page 2---No new Window</option>
There is even a way to control the size and toolbars of the new window (if you choose to have the jump link open a new window):
window.open(targetedURL,targetedWindow,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=700,height=400');
<script type="text/javascript" language="JavaScript">
<!--www.texaswebdevelopers.com
function TWDddredirect(twdNav) {
splitItUp = twdNav.options[twdNav.selectedIndex].value.split("|");
targetedWindow = splitItUp[0];
targetedURL = splitItUp[1];
if (targetedWindow!=='') {
window.open(targetedURL,targetedWindow,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=700,height=400');
twdNav.selectedIndex = 0;
} else {
window.open(targetedURL,'_top')
}
}
//-->
</script>
<form action="../">
<select onchange="TWDddredirect(this)">
<option>-- Select a Discussion --</option>
<option value="MSOutlookDiscussion|http://www.microsoft.com/office/community/en-us/default.mspx?pg=1&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.outlook.general&fltr">MS Outlook Discussion---Opens a new Window</option>
<option value="|http://www.microsoft.com/windowsserver2003/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.inetserver.iis.smtp_nntp">Discussions in SMTP & NNTP---No new Window</option>
</select>
</form>