function fp_ccb_gotourl(obj,urlbase,target,ajax){
	var valor=obj.options[obj.selectedIndex].value;
	if (valor.length<=0){
		return false;
	}
	
	var advertencia=fp_ccb_get_att_oporsel(obj,"fp_advertencia");
	/*
	var advertencia =obj.options[obj.selectedIndex].getAttribute("fp_advertencia");
	var advertenciafrom="";
	if (advertencia==null){
		if (obj.options[obj.selectedIndex].getAttribute("fp_noadvertencia")==null){
			if (advertencia =obj.getAttribute("fp_advertencia")){
				var advertenciafrom="select";	
			}
		}
	}else{
		var advertenciafrom="option";
		
	}
	*/
	var fp_advertenciaonlyifmod=fp_ccb_get_att_oporsel(obj,"fp_advertenciaonlyifmod");
		/*
	if (advertencia!=null){
		fp_advertenciaonlyifmod=fp_ccb_get_att_oporsel(obj,"fp_advertenciaonlyifmod");
		if (advertenciafrom=="option"){
			var fp_advertenciaonlyifmod=obj.options[obj.selectedIndex].getAttribute("fp_advertenciaonlyifmod")
		}else{
			var fp_advertenciaonlyifmod=obj.getAttribute("fp_advertenciaonlyifmod");
		}
	}
		*/
	if (fp_advertenciaonlyifmod){
		if (!fp_frmmodificado){
			advertencia=null;
		}
	}
	if (advertencia!=null){
		if (confirm(advertencia)) { 
			//return true;
		}else{
			obj.selectedIndex=fp_ccb_get_def_index(obj);
			return false;	
		}
	}
	var onselect =obj.options[obj.selectedIndex].getAttribute("fp_onselect");
	if (onselect!=null){
		eval(onselect);
		obj.selectedIndex=fp_ccb_get_def_index(obj);

	}else{
		var fp_urlfromval=fp_ccb_get_att_oporsel(obj,"fp_urlfromval");
		if (fp_urlfromval){
			var url=obj.options[obj.selectedIndex].value;
		}else{
			var url=urlbase + obj.options[obj.selectedIndex].value;
		}
		if (ajax){
			fp_cont_recargar_ajax(url);
		}else if (target){
			window.open(url,target);
		}else{
			window.location=url;	
		}
	}
	obj.selectedIndex=fp_ccb_get_def_index(obj);
	
}
function fp_ccb_get_def_index(obj){
	for (var i=0;i<obj.options.length;i++) {
		if (obj.options[i].defaultSelected) {
			return i;
		}
	}
	return 0;
}
function fp_ccb_get_att_oporsel(obj,att){
	var r;
	r=obj.options[obj.selectedIndex].getAttribute(att);
	if (r!=null){
		return r;
	}else{
		r=obj.getAttribute(att);
	}
	if (r!=null){
		if (r!="false"){
			return r;
		}
	}
}
