	var newsSuccess = function(xml, dataType) {
			var htmlstr = "";
			$(xml).find('item').each(function(i){
			if ( i > 2 ) {
				return false;
			}

			var title = $(this).find('title').text();
			var url = $(this).find('link').text();
			//日付を整形
			var strdate = createDateString($(this).find('pubDate').text());

			if(i == 2){
				htmlstr += '<dl class="end">';
			}else{
				htmlstr += '<dl>';
			}
			htmlstr += '<dt>'+strdate+'</dt>';
			htmlstr += "<dd>"
			if(url){
				htmlstr += '<a href="' + url + '">';
			}
			htmlstr += title;
			if(url){
				htmlstr += '</a>';
			}
			htmlstr += '</dd>';
			htmlstr += '</dl>';
		});
		$("#ndet").html(htmlstr);
	}

	function loadnews(strurl){
		// ajax通信
		$.ajax({
			type: "GET",
			dataType: "xml",    // xmlを指定
			data: null,         // リクエストパラメータ
			cache: false,          // キャッシュの使用
			url: strurl,
			success: newsSuccess
		});
	}


	function createDateString(publishedDate){
		var pdate = new Date(publishedDate);
		var pday = pdate.getDate();
		var pmonth = pdate.getMonth() + 1;
		var pyear = pdate.getFullYear();

		pday = ("0" + pday).slice(-2);
		pmonth = ("0" + pmonth).slice(-2);

		var strdate = pyear + "." + pmonth + "." + pday;

		return strdate;
	}

