 pestaniasAJAX = function(enlaces,target) {
$('ul.'+enlaces+' li').each(function (){
			$(this).click(function (){
			var indice = $('ul.'+enlaces+' li').index(this);
			for(x=0;x<=$('ul.'+enlaces+' li').length;x++)
 			{
				if(x!=indice){		
				$('ul.'+enlaces+' li:eq('+x+')').removeClass('activa')	
				$('ul.'+enlaces+' li a:eq('+x+')').removeClass('activa')	
				}else{
				$('ul.'+enlaces+' li:eq('+x+')').addClass('activa')	
				$('ul.'+enlaces+' li a:eq('+x+')').addClass('activa')	
				}
			}
			$(target).block({
					message: '<div class="cargando_generico"><img src="'+_movistarWLPContextRoot+'framework/skins/portalMovistar/images/layout/css/reloj_nomarqueslashoras.gif" width="39" height="40" alt="" />Cargando</div>',
					css: { border: '0', height: '100%' , width: '100%' } 
				});
				$.ajax({
				   type: "GET",
				   url: $(this).children('a').attr('href'),
				   error: function(msg){
				   	alert(msg.status+ " " +msg.statusText);
				   },
				   success: function(msg){
				     var $frm = $(target);
					 $frm.html(msg);
					 $frm.unblock();					 	
					 pestaniasAJAX('listado_t4','.receptora');
					 
				   }
				 });
			return false;
		});
	 });	
	}

cargasAJAX= function(url,target,mensaje) {
$(target).block({
	message: '<div class="cargando_generico"><img src="'+_movistarWLPContextRoot+'framework/skins/portalMovistar/images/layout/css/reloj_nomarqueslashoras.gif" width="39" height="40" alt="" />Cargando '+mensaje+'...</div>',
	css: { border: '0', height: '100%' , width: '100%', backgroundColor:'#6F86A6',  top: '0', 
        left: '0' } 
});
$.ajax({
	   type: "GET",
	   url: url,
	   success: function(msg){
	     var $frm = $(target);
		 $frm.html(msg);
		 $frm.unblock();	
	   }
	 });
}
