<!--
var fontSize=12;
var RemoteOpen = 0;
//var fontSize1 = 9;
//var lineHeight = 14;
//parent.document.body.onload=divMenuOnOff();

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; 
		//fontSize1 = fontSize1 + 4; 
		setFaceSize(); 
	} 
}

function fontMinus() { 
	if (fontSize > 10) {
		fontSize = fontSize - 4; 
		//fontSize1 = fontSize1 - 4; 
		setFaceSize(); 
	} 
}
function setFaceSize() {
	var cntElm;
	//lineHeight = fontSize1*1+Math.round(1.1*fontSize1);	
	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";
				//obj.style.lineHeight = lineHeight+"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 searchsubmit(fobj) {
	
	if(fobj.keyword.value.length<2) {
		alert("°Ë»öÇÒ ´Ü¾î¸¦ 2ÀÚÀÌ»ó ÀÔ·ÂÇÏ¼¼¿ä.");
		fobj.keyword.focus();
		return false;
	} else {
		fobj.submit();
	}
}
function searchset(sval, kval) {
	sform.keyword.value = kval;
	for(i=0;i<sform.search.length;i++) {
		if(sform.search.options[i].value == sval) {
			sform.search.options[i].selected = true;
			searchsubmit(sform);
		}
	}
}
/*
function searchset(sval, kval) {
	sform2.keyword.value = kval;
	for(i=0;i<sform2.search.length;i++) {
		if(sform2.search.options[i].value == sval) {
			sform2.search.options[i].selected = true;
			searchsubmit(sform2);
		}
	}
}
*/
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.sinan.go.kr";
	document.cookie = name + "=" + escape (value) + "; expires=" + expireDate + "; path=" + path + "; domain= " + domain;
} 
 


function onFormlink(form){	// °ú »ç¾÷¼Ò À¾¸éµ¿ ¹Ù·Î°¡±â
	var list=form.selectedIndex;
		if (list == 0 || list == 1) {
		}
		else{
			top.location.href=form.options[list].value;
		}
		form.selectedIndex = 0;
}

function selectmove(url){	// °ú »ç¾÷¼Ò À¾¸éµ¿ ¹Ù·Î°¡±â
		if(url!="") {
				window.open(url);
		}
}


function change1(form){
	var list=form.selectedIndex;
	window.open(form.options[list].value)
	//form.selectedIndex = 0;
}

					// input ¹öÆ° »ö±ò ¹Ù²Ù±â
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;
	if (list == 0 || list == 1) {
	} else if (list == 2 || list == 3 || list == 4) {
		window.open(form.options[list].value)
	} else {
		self.location.href=form.options[list].value;
	}
form.selectedIndex = 0;
}

function aselfSelect(form){
var list=form.selectedIndex;
	if (list == 0 || list == 1) {
	} else if (list == 2) {
		window.open(form.options[list].value)
	} else {
		self.location.href=form.options[list].value;
	}
form.selectedIndex = 0;
}

function bselfSelect(form){
var list=form.selectedIndex;
	self.location.href=form.options[list].value;
form.selectedIndex = 0;
}

// ÅëÇÕ°Ë»ö

function GoQuery (form) {
	if ("" != form.query.value) {
		form.submit ();
	}
}

function Button_menu(btn_border,btn_val)
{
	btn_border.style.border = btn_val
}

function sy_popup(url,popup_name,width_size,height_size) {
	win = window.open(url,popup_name,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,top=50,left=50,width=" + width_size + ",height=" + height_size);
return;
}

function sn_popup(url,popup_name,width_size,height_size) {
	win = window.open(url,popup_name,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no,top=50,left=50,width=" + width_size + ",height=" + height_size);
return;
}

function rs_popup(url,popup_name,width_size,height_size) {
	win = window.open(url,popup_name,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,top=50,left=50,width=" + width_size + ",height=" + height_size);
return;
}

function organ_login() {
	alert(' ·Î±×ÀÎ ÇÏ½Å ÈÄ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù...! ');
	return;
}

function Index() {
	location.href = '/';
}

function LogOut() {
	location.href = '/login/logout.html';
}

function Yak() {
	location.href = '/home/www/Sub_Member/contract/';
	//location.href = '#';
}

function gaeb() {
	location.href = '/home/tour/etc/member_join/';
	//location.href = '#';
}

function gaeb1() {
	location.href = '/home/tour1/etc/member_join/';
	//location.href = '#';
}

function dominYak() {
	location.href = '/home/domin/Sub_Member/member/';
	//location.href = '#';
}

function councilYak() {
	location.href = '/home/council/etc/member';
	//location.href = '#';
}

function healthYak() {
	location.href = '/home/health/Sub_member/contract/';
	//location.href = '#';
}

function AtecYak() {
	location.href = '/home/atec/Sub_Member/contract';
	//location.href = '#';
}

function wwwMember() {
	location.href = '/home/www/member/1/?mode=member_reg';
	//location.href = '#';
}

function councilMember() {
	location.href = '/home/council/etc/member/?mode=member_reg';
	//location.href = '#';
}

function healthMember() {
	location.href = '/home/health/etc/1/?mode=member_reg';
	//location.href = '#';
}

function AtecMember() {
	location.href = '/home/atec/etc/member/?mode=member_reg';
	//location.href = '#';
}

function ADmin() {
	location.href = '/admintool/cms.html';
	//location.href = '#';
}

function Id_Pass() {
	window.open("/member/idpass.html","view", "width=400,height=250,top=100,left=350,toolbar=no,status=no,memu=no,scrollbars=no");
}

function video() {
	window.open("/video/","video", "width=700,height=668,top=50,left=50,toolbar=no,status=no,memu=no,scrollbars=no");
}

function liab() {
	window.open("http://laib.go.kr/laib/owa/w1126?sPSiDo=46&sPSiGunGu=910","laib", "width=820,height=600,top=50,left=50,toolbar=no,status=no,memu=no,scrollbars=yes");
}

function openurl() {
	alert(' ºñ°ø°³ ±ÛÀÔ´Ï´Ù. ');
	return;
}

function resizeFrame(name){
        var oBody = document.body;
        var oFrame = parent.document.all(name);
        var min_height = 320; //iframeÀÇ ÃÖ¼Ò³ôÀÌ(³Ê¹« ÀÛ¾ÆÁö´Â °É ¸·±âÀ§ÇÔ, ÇÈ¼¿´ÜÀ§, ÆíÁý°¡´É)
        var min_width = 465; //iframeÀÇ ÃÖ¼Ò³Êºñ
        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); 
}
//-->
