/*********************************************
태그에서의 반복적인 구문을 스크립트로 지정해줌
*********************************************/

//메뉴 링크
function menu_link(link,title) { document.writeln("<tr><td height=25 align=left class=\"menu_sub\" onmouseover=this.style.backgroundColor='#F7F5F5' onmouseout=this.style.backgroundColor=''><a href=\""+ link +"\" class=\"menu\">"+ title +"</a></td></tr>"); }

// 새창띄우기
function new_window(URL, name, left, top, width, height, toolbar, menubar, statusbar, scrollbars, resizable)
{
	toolbar_show = toolbar ? 1 : 0 ;
	menubar_show = menubar ? 1 : 0 ;
	statusbar_show = status ? 1 : 0 ;
	scrollbar_show = scrollbars ? 1 : 0 ;
	resizable_show = resizable ? 1 : 0 ;
	window.open(URL, name, 'left=' + left + ', top=' + top + ', width=' + width + ', height=' + height + ', toolbar=' + toolbar_show + ', menubar=' + menubar_show + ', status=' + statusbar_show + ', scrollbars=' + scrollbar_show + ', resizable=' + resizable_show) ;
}

// onFocus="this.blur()" 자동 적용
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
document.body.focus();
}
document.onfocusin=bluring;

// 자바스크립트 오류없애기
function blockError(){return true;}
window.onerror = blockError;
show&hide

function layer_toggle(obj) {
        if (obj.style.display == 'none') obj.style.display = 'block';
        else if (obj.style.display == 'block') obj.style.display = 'none';
}
