function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter ="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src=''; 
	return '';
}

function subfold(n){
	var f=document.getElementById("submenu"+n+"");
	if(f.style.display=="none") f.style.display="";
	else f.style.display="none";
}

function subhref(n){
	location.href=n;
}

function go(n){
	location.href=n;
}

function search(f){
	if(!f.title.value){
		alert("Å°¿öµå¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		f.title.focus();
		return false;
	}
	f.submit();
}
function sendSNS(target , link, title , w , h){
	url = new Array();
	url['twitter'] = "http://twitter.com/share?url=" + link + "&text=" + title;
	url['yozm'] = "http://yozm.daum.net/api/popup/prePost?link=" + link + "&prefix=" + title;
	url['facebook'] = "http://www.facebook.com/sharer.php?u=" + link + "&t=" + title;
	url['me2day'] = "http://me2day.net/posts/new?new_post[body]=\"" + title + "\":"+ link;
	url['google'] = "https://www.google.com/bookmarks/mark?op=add&title=" + title + "&bkmk=" + link
	url['naver'] = "http://bookmark.naver.com/post?ns=1&title=" + title + "&url=<?=$board_url?>" + link
	sendURL = url[target];
	window.open(sendURL,'SNS','width='+w+',height='+h+',scrollbars=yes');
}
function lfmSelect(s,t){
	for(i=0;i<t;i++){
		k =  Math.round(i+1);
		div = "lfm" + k;
		if(s == k){
			document.getElementById(div).className = "selected";
			document.getElementById("issueBl"+i).style.display="";
		} else {
			document.getElementById(div).className = "d";
			document.getElementById("issueBl"+i).style.display="none";
		}
	}
}
