sure, you could create a function to look up the price
<script type="text/javascript">
function getPrice(option) {
var thePrice;
switch (option) {
case '10':
thePrice = '1,00';
break;
case '15':
thePrice = '2,00';
break;
case '20':
thePrice = '3,00';
break;
case '25':
thePrice = '4,00';
break;
case '30':
thePrice = '5,00';
break;
case '35':
thePrice = '6,00';
break;
case '40':
thePrice = '7,00';
break;
case '45':
thePrice = '8,00';
break;
case '50':
thePrice = '9,00';
break;
case '55':
thePrice = '10,00';
break;
default:
thePrice = '2,00';
}
return thePrice;
}
</script>
the change the onchange script to:
onchange="document.getElementById('cmPrice').innerHTML = getPrice(document.FrogStyling_1_ATC_<%=rsDetail.Fields("ProductID").value%>.FrogStyling_1_Size_Add[document.FrogStyling_1_ATC_<%=rsDetail.Fields("ProductID").value%>.FrogStyling_1_Size_Add.selectedIndex].value)"