update a hidden field value based on country
<p>Here is the situation. 
A hidden field needs to be updated based on country selection (Denmark (DK), Germany (DE), Netherland (ML).
-If none of these countries is selected, set the hidden field to Regular
-If any of these is selected, set it to Double
-There is another checkbox called "Please contact me". If this is checked, set the hidden field to "Contact me".</p>

<p>I cannot modify the form codes so it must be done by javascript only. </p>

<pre><code>&lt;script type="text/javascript"&gt;
function updateEmail_Type(country) { 
    if(document.forms[0].dUSContactMe.checked == false){
        countryValue = C_country.options[C_country.selectedIndex].value;
        if (countryValue=="DE") { document.forms[0].hiddenOfferType.value="DS Double"; }
        if (countryValue=="DK") { document.forms[0].hiddenOfferType.value="DS Double"; }
        if (countryValue=="NL") { document.forms[0].hiddenOfferType.value="DS Double"; }
        if(countryValue!= "" &amp;&amp; countryValue!= "DE" &amp;&amp; countryValue!="DK" &amp;&amp; countryValue!="NL" &amp;&amp; countryValue!="other"){ document.forms[0].hiddenOfferType.value="DS Regular"; }
        if (countryValue=="other") { document.forms[0].hiddenOfferType.value="15.00"; }
    }
    else
    {
        document.forms[0].hiddenOfferType.value="DS Contact Me";
    }
}

&lt;/script&gt;
</code></pre>
