var ctrlTiposIdentificacion = null;


  function cargarTiposIdentificacion(ctrlDest) {
     var url = "/pesca_recreativa/data/getTipoIdentificacion";
     ctrlTiposIdentificacion = document.getElementById(ctrlDest);
     requestPaises = new Json.Remote(url, {
        onComplete: function(jsonObj) {
            recibeTiposIdentificacion(jsonObj.tipos);
        }
    }).send();
  }
  
  function recibeTiposIdentificacion(tipos) {
	     if(ctrlTiposIdentificacion){
	    	ctrlTiposIdentificacion.options[0] = new Option("Seleccione un Tipo","0");
	    	for(var i=1;i<=tipos.length;i++){
                j = i -1;
		     	var optTemp = new Option(tipos[j].descripcion,tipos[j].id);
		     	ctrlTiposIdentificacion.options[i] = optTemp;
	    	}
	     }
  } 


