$("div#tmp-element span#main-title").live("click",function(){
	$("div#tmp-element input#main-title").attr("value", $(this).text());
});

