 $(document).ready(function(){
   // Your code here
    $(".refc").click(function(){
				//alert ($("#calend_box").attr("title"));
				$.post("http://"+location.host+"/includes/get_calendar.php", {month: $("#month").attr("title"), year: $("#year").html(), title: $(this).attr("title"), type: $("#calend_box").attr("title")}, function(xml) {
	  					var a = $("txt",xml).text();
						//alert(a);
						$("#dataset").html($(a));
						
						$("#month").html($("month",xml).text());
						$("#year").html($("year",xml).text());
						$("#month").attr("title",$("month_title",xml).text());
				});
						return false;
				});
	
	
	
 });
 
 function getnews(arg){
	// alert(arg);
	 $.post("http://"+location.host+"/includes/get_day_news.php", {string: arg}, function(xml) {
						var string ="";
						$("inf",xml).each(function(i){
						string = string + '<div class="main_bit"><span>'+$("data", $(this)).text()+'</span><br /><b>'+$("name", $(this)).text()+'</b><em>'+$("txt", $(this)).text()+'</em></div>';
						$("#calend_info").html(string);
						});

				});
	 return false;
	 }
