<!--
var fontSize=12;
var RemoteOpen = 0;

function divMenuOnOff() {
	var onoff = GetCookie("divMenu");
	if(!onoff) { SetCookie ("divMenu", "on"); divMenu.style.display=''; }
	if(onoff!="off") { divMenu.style.display=''; }
}
function fontPlus() { 
	if (fontSize < 18) {
		fontSize = fontSize + 4; 
		setFaceSize(); 
	} 
}

function fontMinus() { 
	if (fontSize > 10) {
		fontSize = fontSize - 4; 
		setFaceSize(); 
	} 
}
function setFaceSize() {
	var cntElm;
	if(document.all["font"]) {
		cntElm = document.all["font"].length;	
		for (i = 0;i < cntElm;i++){			
				obj = document.all["font"](i);	
				obj.style.fontSize = fontSize + "px";
		}
	}
}

function ScrapContent(QueryString,Menu) {
	if(RemoteOpen==0) {
		parent.resizeTo(1022,screen.availHeight-20);
		top.remote.location.href="/ScrapContent.html?q="+QueryString+"&m="+Menu;
		divMenu.style.display='none';
		SetCookie ("divMenu", "off");
		parent.document.body.cols="822,180";
		RemoteOpen=1;
	} else {
		SetCookie ("divMenu", "on");
		divMenu.style.display='';
		parent.document.body.cols="100%, 0";
		RemoteOpen=0;
		top.remote.location.href="about:blank";
	}
}
function PhotoSlideView(lo,sw) {
	if(sw=="on") {
		parent.resizeTo(1022,screen.availHeight-20);
		top.remote.location.href=lo;
		divMenu.style.display='none';
		SetCookie ("divMenu", "off");
		parent.document.body.cols="822,180";
		RemoteOpen=1;
	} else {
		divMenu.style.display='';
		SetCookie ("divMenu", "on");
		parent.document.body.cols="100%, 0";
		RemoteOpen=0;
		top.remote.location.href="about:blank";
	}
}
function CheckSlideView(lo) {
	var Locate = top.remote.location.href;
	var pos = Locate.indexOf("photo_list.html");
	if(pos!=-1) {
			PhotoSlideView(lo,"on");
	}
}
function sendhelp(view) {
	var Locate = top.remote.location.href;
	var pos = Locate.indexOf("help.html");
	if(pos!=-1) {
		top.remote.help_view2.innerHTML = view;
	}
}

function HelpView(sw) {
	if(sw=="on") {
		parent.resizeTo(1022,screen.availHeight-20);
		top.remote.location.href="/include/help.html";
		divMenu.style.display='none';
		SetCookie ("divMenu", "off");
		parent.document.body.cols="822,180";
		RemoteOpen=1;
	} else {
		divMenu.style.display='';
		SetCookie ("divMenu", "on");
		parent.document.body.cols="100%, 0";
		RemoteOpen=0;
		top.remote.location.href="about:blank";
	}
}

function PrintContent(QueryString,Menu) {
	win = window.open("/PrintContent.html?q="+QueryString+"&m="+Menu,"Print","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes,top=0,left=0,width=638,height=600");
}

function SendContent(QueryString,Menu) {
	win = window.open("/SendMailContent.html?q="+QueryString+"&m="+Menu,"SendMail","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,top=0,left=0,width=522,height=455");
}

function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
	endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name)  {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen)  {
	var j = i + alen;
	
	if (document.cookie.substring(i, j) == arg)
	return getCookieVal (j);i = document.cookie.indexOf(" ", i) + 1;
	if (i == 0) break; 
	}
	return null;
}

function SetCookie (name, value)  {
	expireDate = new Date;
   // expireDate.setMonth(expireDate.getMonth());
	var path = "/";
	var domain = "www.yyg.go.kr";
	document.cookie = name + "=" + escape (value) + "; expires=" + expireDate + "; path=" + path + "; domain= " + domain;
} 

function change1(form){
	var list=form.selectedIndex;
	window.open(form.options[list].value)
	//form.selectedIndex = 0;
}
					
function change_color(color){
	if (event.srcElement.tagName=="INPUT")
	event.srcElement.style.backgroundColor=color
}

function dzFormSelect(form){
	var list=form.selectedIndex;
	top.location.href=form.options[list].value;
	form.selectedIndex = 0;
}

function selfSelect(form){
	var list=form.selectedIndex;
	window.open(form.options[list].value);
	form.selectedIndex = 0;
}

function resizeFrame(name){
        var oBody = document.body;
        var oFrame = parent.document.all(name);
        var min_height = 320; 
        var min_width = 465; 
        var i_height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight);
        var i_width = oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth);

        if(i_height < min_height) i_height = min_height;
        if(i_width < min_width) i_width = min_width;
        oFrame.style.height = i_height;
        oFrame.style.width = i_width;

        parent.scrollTo(1,1); 
}
function searchsubmit(fobj) {
	
	if(fobj.keyword.value.length<2) {
		alert("keywords too short");
		fobj.keyword.focus();
		return false;
	} else {
		fobj.submit();
	}
}
//-->