function flashPlayerUpdate() {
	if ( confirm("플래시 플레이어의 최신버전 업데이트를 권장합니다.\n( 업데이트하지 않으면 일부 내용이 제대로 표시되지 않을 수 있습니다.)") ) {
		window.open("http://get.adobe.com/flashplayer/");
	}
}
function _openMagRadioPopup() {
	var w = 360;
	var h = 338;
	var x = (screen.availWidth - w) / 2;
	var y = (screen.availHeight - h) / 2;
	var newwin = window.open("/magRadio.do", "_magRadioPopup",
			"toolbar=0, status=0, scrollbars=no, location=0, menubar=0, width=" + w + ", height=" + h + ", left=" + x + ", top=" + y + ",resizable=no");
	if ( newwin ) newwin.focus();
}
function submitGbSearchKeyword() {
	if ( checkGbSearchForm() ) {
		document.forms.gbSearchForm.submit();
	}
	return false;
}
function checkGbSearchForm() {
	var sf = document.forms.gbSearchForm;
	sf.gbSearchText.value = trim(sf.gbSearchText.value);
	if ( sf.gbSearchText.value=="" ) {
		alert("검색어를 입력해주세요.");
		return false;
	}
	return true;
}
function trim(value) {
	return value.replace(/^\s+|\s+$/g,"");
}
function ltrim(value) {
	return value.replace(/^\s+/,"");
}
function rtrim(value) {
	return value.replace(/\s+$/,"");
}