Попробовал сделать так:
function ChangeType(bType,Type)
{
var min_cost_1000 = new Array();
var min_cost_click = new Array();
var text_min_cost = '<?= GetMessage("ADVNET_MIN_COST")?>: ';
var curr_min_cost = '<?= str_replace("#", "", $arResult["CURRENCY"]["FORMAT_STRING"])?>';
<?foreach ($arResult["TYPES"] as $sid => $arType):?>
min_cost_1000['<?= $sid?>'] = '<?= number_format($arType["COST_1000"], 2)?>';
min_cost_click['<?= $sid?>'] = '<?= number_format($arType["COST_CLICK"], 2)?>';
<?endforeach;?>
document.getElementById('COST_PER_1000_MIN').innerHTML = '';
document.getElementById('COST_PER_CLICK_MIN').innerHTML = '';
document.getElementById('TR_BANNER').style.display = '';
document.getElementById('TR_CONTEXT').style.display = '';
if (bType.value != '' && Type.value == 'context' || Type.value == 'context2')
{
document.getElementById('COST_PER_1000_MIN').innerHTML = text_min_cost + min_cost_1000[bType.value] + curr_min_cost;
document.getElementById('COST_PER_CLICK_MIN').innerHTML = text_min_cost + min_cost_click[bType.value] + curr_min_cost;
document.getElementById('TR_BANNER').style.display = 'none';
}
if (bType.value != '' && Type.value != 'context' || Type.value != 'context2')
{
document.getElementById('COST_PER_1000_MIN').innerHTML = text_min_cost + min_cost_1000[bType.value] + curr_min_cost;
document.getElementById('COST_PER_CLICK_MIN').innerHTML = text_min_cost + min_cost_click[bType.value] + curr_min_cost;
document.getElementById('TR_CONTEXT').style.display = 'none';
}
}
Но к сожалению не увенчалось успехом