// 태그 구름 URI 동적으로 생성하는 코드
function tagUrl () {
	var tagCloud = document.getElementById("tag_cloud_box"); 
	var tagAnchors = tagCloud.getElementsByTagName("a"); 
	for ( var i=0; i<tagAnchors.length; i++) {  
		var tagWord = tagAnchors[i].firstChild.nodeValue; 
		var searchTag = "http://www.newscham.net/news/search.php?gid=2&s_mode=key&s_arg="; 
		var keyword = encodeURI(tagWord); 
		tagAnchors[i].setAttribute("href", searchTag + keyword); 
	} 
}

addLoadEvent(tagUrl);

