	$(document).ready(function(){
		$(".cerrar").live("click", function (event) { $(this).parent().fadeOut('slow'); });
		
		$(".tabla tbody tr:even").addClass("alt-row");
		$(".tabla tbody tr").hover(function(){$(this).addClass("current-row");},function(){$(this).removeClass("current-row");});
		
		$(".blur").focus(function () {
			if (this.value == this.defaultValue) {
				this.value = "";
			}
			else {
				this.select();
			}
		});
		$(".blur").blur(function () {
			if ($.trim(this.value) == "") {
				this.value = (this.defaultValue ? this.defaultValue : "");
			}
		});
		$("a[rel=facebox]").facebox();
		
		$(".tab_content").hide();
		$("ul.tabulador li:first").addClass("active").show();
		$(".tab_content:first").show();
		
		$("ul.tabulador  li").click(function()
		   {
			$("ul.tabulador  li").removeClass("active");
			$(this).addClass("active");
			$(".tab_content").hide();

			var activeTab = $(this).find("a").attr("href");
			$(activeTab).fadeIn();
			return false;
		});
	});

	function to_html(html) { 
		html = html.replace(/&lt;/g,'<'); 
		html = html.replace(/&gt;/g,'>'); 
		html = html.replace(/&quot;/g,'"'); 
		html = html.replace(/&#39;/g,"'"); 
		html = html.replace(/&amp;/g,"&"); 
		return html;
	}
	function ocultar(input) {
		var disable = document.getElementById("disable");
		if(input.checked) disable.style.display = "none";
		else disable.style.display = "block";
	}
	function Numerico(val) {
		return(parseFloat(val,10)==(val*1));
	}
