Hi I have got a few scripts that I am trying to get to work but I don't know much about it, I'm just trying to peice it all together.

This first part is so that I can open a program from the drop down menu. It is a whole page, but thought it might be easier this way.

<html>
<head>
<title>test1</title>
<script language="javascript">
function RunProgram(progName){
var objWSH = new ActiveXObject("WScript.Shell");
var retval = objWSH.Run(progName,1,false);
}
</script>
<script>
function jmp(where) {
var st = where.menu.options[where.menu.selectedIndex].value;
if (st.substr(-3,3) == "exe")
RunProgram(st);
else
location = st;
}
</script>
</head>
<body bgcolor="#FFFFFF">
<div id="Layer2" style="position:absolute; width:200px; height:68px; z-index:2; left: 64px; top: 23px">
<table width="151" border="0" cellspacing="0" cellpadding="0" align="left">
<tr align="center" valign="middle">
<td width="145">
<form name="jump">
<select name="menu">
<option selected>applications....</option>
<option value="javascript:RunProgram('C:\\Progra~1\\Window~1\\wmplayer.exe')">Media
Player</option>
</select>
<div id="Layer1" style="position:absolute; width:52px; height:34px; z-index:1; left: 144px; top: 2px">
<input type="image" onClick="jmp(this.form)" value="GO" name="button" src="images/go.gif">
</div>
</form>
</td>
</tr>
</table>
</div>

</body>
</html>

//--------- That works fine and this next page also works fine---------\\

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function RunProgram(progName){
var objWSH = new ActiveXObject("WScript.Shell");
var retval = objWSH.Run(progName,1,false);
}
</script>
<script>
function jmp(where) {
var st = where.menu.options[where.menu.selectedIndex].value;
if (st.substr(-3,3) == "exe")
RunProgram(st);
else
location = st;
}
</script>
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
<form action="dummy" method="post"><select name="choice" size="1">
<option>CHOOSE A LINK</option>
<option value="testfile:///e|/absolu~3/cahoot/mainpa~2.htm*_blank">test</option>
</select><input TYPE="button" VALUE="GO!" onClick="jump(this.form)"></form>
</body>
</html>

I am trying to have the 2 menus on the same page, the first page menu will be for opening programs from my desktop and next to that will be the menu from the second page just to open other pages on my computer in a new window.

I think I can see that it is to do with having this var st = where.menu.options[where.menu.selectedIndex].value; in two different scripts but I can figure out what part of what script needs to go.

Can anyone peice the two together in one page? Thanks to anyone that can help