Use variable value to get value stored in other variable
<p>I am trying to simplify some of the bookmarklets that I have created over the past few days and make them easier for people to use.  One of my bookmarklets changes the selected option in a form select field.  I would like to able to write it as:</p>

<p>javascript:(function(){setSelect('yourMom'); ...boringStuffThatThey'llMessUp ...})();
function setSelect(selectThis) {moreBoringStuff}</p>

<p>where "yourMom" is one of the select options that they can choose from on the web page.  In the HTML, however, 'yourMom' has an integer value.  My thought was to do something like:</p>

<p>function setSelect(selectThis) {yourMom=1;yourSister=2;yourGirlFriend=3; ... stuff ...
{if(thisSelect.options[i].value==(?)selectThis){... moreStuff ...}}}</p>

<p>Which leaves me needing to know what I need to put in place of the (?)selectThis so that it points to the value stored in yourMom.</p>

<p>I hope that makes sense to someone out there.</p>

<p>Thanks for the help.</p>

<p>edit:</p>

<p>the HTML looks something like this:</p>

<pre><code>&lt;select name="whoDoILikeMost" tabindex="2" class="dropdown"&gt;
  &lt;option value="1" selected="selected"&gt;yourMom&lt;/option&gt;
  &lt;option value="2"&gt;yourSister&lt;/option&gt;
  &lt;option value="3"&gt;yourGirlFriend&lt;/option&gt;
 &lt;/select&gt;
</code></pre>
