<script language="javascript"><!--
alert ( 'The following code only works if there is an alert here. WTF?' );
var sec_menu = document.getElementById( 'secondary' );
for ( i = 0; i < sec_menu.options.length; i++ ) {
if ( sec_menu.options[i].text == '(% secondary_selected %)' ){
sec_menu.options.selectedIndex = i;
secondary_changed();
}
}
alert( 'Likewise this code. WTFF?' );
var ter_menu = document.getElementById( 'tertiary' );
for ( i = 0; i < ter_menu.options.length; i++ ) {
if ( ter_menu.options[i].text == '(% tertiary_selected %)' ){
ter_menu.options.selectedIndex = i;
}
}
// -->
</script>