Hello guys!

I have this:

Code:
<script language="JavaScript" type="text/JavaScript">
var lst_pais = new Array();
var lst_prov = new Array();

lst_pais[0] = {id: 0, name: 'Seleccionar', lst_prov: new Array()};
[pais1;block=begin]lst_pais[[pais1.id]] = {id: [pais1.id], name: '[pais1.pais;htmlconv=esc]', lst_prov: new Array()};
[pais1;block=end]

lst_pais[0].lst_prov[0]= {id: 0, name: 'Seleccionar', lst_ciu: new Array()};
[prov1;block=begin]lst_pais[[prov1.id_pais]].lst_prov[[prov1.id]] = {id: [prov1.id], name: '[prov1.provincia;htmlconv=esc]', lst_ciu: new Array()};
[prov1;block=end]

lst_pais[0].lst_prov[0].lst_ciu[0] = {id: 0, name: ''};
[ciudad;block=begin]lst_pais[[ciudad.id_pais]].lst_prov[[ciudad.id_provincia]].lst_ciu[[ciudad.id]] = {id: [ciudad.id], name: '[ciudad.ciudad;htmlconv=esc]'};
[ciudad;block=end]


function limpiar_Provincias() {
// Erase all items but the first
var lst_dst = document.getElementById('frm1').elements.id_provincia;
for (i=lst_dst.options.length-1;i>0;i--) {
lst_dst.options[i] = null;
}
}

function limpiar_Ciudades() {
var lst_dst = document.getElementById('frm1').elements.id_ciudad;
// Erase all items but the first
for (i=lst_dst.options.length-1;i>0;i--) {
lst_dst.options[i] = null;
}
}


function f_Pais_Change() {
var pais_id = document.getElementById('frm1').elements.id_pais.value;
var lst_src = lst_pais[pais_id].lst_prov;
var lst_dst = document.getElementById('frm1').elements.id_provincia;
var i = 0;
//Limpio 
limpiar_Ciudades();
limpiar_Provincias();
// Insert new items
for (i in lst_src) {
lst_dst.options[lst_dst.options.length] = new Option(lst_src[i].name,lst_src[i].id);
}
}

function f_Provincia_Change() {
var pais_id = document.getElementById('frm1').elements.id_pais.value;
var provincia_id = document.getElementById('frm1').elements.id_provincia.value;
var lst_src = lst_pais[pais_id].lst_prov[provincia_id].lst_ciu;
var lst_dst = document.getElementById('frm1').elements.id_ciudad;
var i = 0;
//Limpio
limpiar_Ciudades();
// Insert new items
for (i in lst_src) {
lst_dst.options[lst_dst.options.length] = new Option(lst_src[i].name,lst_src[i].id);
}
}

</script>

<select class="input" name="id_pais" id="id_pais" onChange="f_Pais_Change();">
          <option value="0">Seleccionar</option>
          <option value="[pais2.id]">[pais2.pais;block=option]</option>
</select>

<select class="input" name="id_provincia" id="id_provincia" onChange="f_Provincia_Change();">
            <option value="0">Seleccionar</option>
</select>

<select class="input" name="id_ciudad" id="id_ciudad">
          <option value="0">Seleccionar</option>
</select>
when I select the second "select" there isnīt working function "limpiar_Ciudades()", and Iīd like to know when is it selected ("Seleccionar") it turns it disabled.

Important: i don't want use Remote Scripting, because, i working with templates then its most dificult to adapt this script.

Thanks a lot!

Ignacio Giri.