Código HTML:
function combo(){
var indice=document.forma_adicionar_beneficiario.f_benregimen.selectedIndex;
if(indice==1) regimen1();
if(indice==2) regimen2();
}
function regimen1(){
var d=document.forma_adicionar_beneficiario;
sub0=new Option("Seleccionar","0","defauldSelected");
sub1=new Option("Uno","1");
sub2=new Option("Dos","2");
sub3=new Option("Tres","3");
d.f_catestr.options[0]=sub0;
d.f_catestr.options[1]=sub1;
d.f_catestr.options[2]=sub2;
d.f_catestr.options[3]=sub3;
}
function regimen2(){
var d=document.forma_adicionar_beneficiario;
limpiarOdenar(d.f_catestr)
sub0=new Option("Seleccionar","0","defauldSelected");
sub1=new Option("A","A");
sub2=new Option("B","B");
d.f_catestr.options[0]=sub0;
d.f_catestr.options[1]=sub1;
d.f_catestr.options[2]=sub2;
}
<SELECT NAME="f_benregimen" class="campos" onchange="combo()">
<OPTION VALUE= "0">Seleccionar</OPTION>
<OPTION VALUE= "1">Contributivo</OPTION>
<OPTION VALUE= "2">Subsidiado</OPTION>
</SELECT>
<SELECT NAME="f_catestr" class="campos">
</SELECT> gracias

