Works great - thank you!
you know also, why in product.tpl the script is out with <!-- ??
Code:
{literal}
<SCRIPT language=JavaScript1.2>
<!--
var store_language='{/literal}{$store_language}{literal}';
function product_option(name_of_option)
{
{/literal}
for(i=0; i<{php}echo count($product_options) {/php}; i++)
if (document.orderform[i].name.search(name_of_option) != -1)
return document.orderform[i];
return -1;
{literal}
}
function FormValidation()
{
{/literal}
{if $javascript_code}
{$javascript_code}
{else}
return true;
{/if}
{literal}
}
-->
</SCRIPT>
{/literal}