Salve ho questa variabbile "title" che dovrei passare in 2 funzioni distinte

codice:
	var title="";
	$(".formevent").live("hover",function(e){
		if($(this).hasClass("error_form")){
			title=this.title;
			this.title="";
			$("body").append("<div id=\"errorform\">" + title + "</div>");
			$("div#errorform").
			css("top",(e.pageY + 10) + "px").
			css("left",(e.pageX + 10) + "px").
			fadeIn("fast");
		}
	});
	$(".formevent").live("mouseout", function(){
		if($("div#errorform").is(":visible")){
			$(this).attr("title",title);
			$("div#errorform").fadeOut("fast", function(){
				$(this).remove();
				title="";
			});
		}
	});
nella prima funzione viene valorizzata mentre nella seconda no infatti non restituisce il title in $(this).attr("title",title);