/* ************************************************************************************************************	*/
/* 하기 프로그램에 대한 저작권을 포함한 지적재산권은 wegonet.com에 있으며,												*/
/* wegonet.com이 명시적으로 허용하지 않는 사용, 복사, 변경 및 제 3자에 의한 공개, 배포는 엄격히 금지되며					*/
/* wegonet.com의 지적재산권 침해에 해당된다.																		*/
/* Copyright (C) 2008 wegonet.com All Rights Reserved.															*/
/*																												*/
/* YOU ARE STRICTLY PROHIBITED TO COPY, DISCLOSE, DISTRIBUTE, MODIFY OR USE THIS PROGRAM						*/
/* IN PART OR AS A WHOLE WITHOUT THE PRIOR WRITTEN CONSENT OF WEGONET.COM.										*/
/* WEGONET.COM OWNS THE INTELLECTUAL PROPERTY RIGHTS IN AND TO THIS PROGRAM.									*/
/* COPYRIGHT (C) 2008 WEGONET.COM ALL RIGHTS RESERVED.															*/
/*																												*/
/* Program	: kr.co.digiport.www																				*/
/* Description	: kr.co.digiport.www																			*/
/* File		: commonKo.js																						*/
/* Function	: commonKo.js																						*/
/* Author	: swmyung@wegonet.com,esjung@wegonet.com															*/
/* Environment	: Microsoft .NET Framework 2.0																	*/
/* Notes	:																									*/
/* History	: [NO.		    ][Programmer		    ][Date      ][Description]									*/
/*			: [YYYYMMDDXXXXX][swmyung@wegonet.com	][2008-01-31][Create]										*/
/* ************************************************************************************************************	*/

/* **************************************************************************** */
/* Name			:																*/
/* Description	: 메일에 입력할 수 있는 문자셋으로 사용								*/
/* Parameter	: NULL															*/
/* Return		: VOID															*/
/* **************************************************************************** */
var Alpha = '-.@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
var Digit = '1234567890';

/* **************************************************************************** */
/* Name			: printDocument()												*/
/* Description	: 출력															*/
/* Parameter	: NULL															*/
/* Return		: VOID															*/
/* **************************************************************************** */
function printDocument() {
	if (window.print) {
		window.print();
	}
	else {
		alert('넷스케이프4.0 이나 익스플로러 5.0이상에서만 지원됩니다!');
	}
}

/* **************************************************************************** */
/* Name			: getfile()														*/
/* Description	: 파일 선택시 파일정보 표시											*/
/* Parameter	: NULL															*/
/* Return		: VOID															*/
/* **************************************************************************** */
function getfile() {
	document.all.filAttach.click(); 
	document.all.txtFile.value = document.all.filAttach.value;
} 

/* **************************************************************************** */
/* Name			: getfiles()													*/
/* Description	: 파일 선택시 파일정보 표시											*/
/* Parameter	: nNum															*/
/* Return		: VOID															*/
/* **************************************************************************** */
function getfiles(nNum) {
	if (nNum == 1) {
		document.all.filAttach1.click(); 
		document.all.txtFile1.value = document.all.filAttach1.value;
	}
	else if (nNum == 2) {
		document.all.filAttach2.click(); 
		document.all.txtFile2.value = document.all.filAttach2.value;
	}
	else if (nNum ==3) {
		document.all.filAttach3.click(); 
		document.all.txtFile3.value = document.all.filAttach3.value;
	}
}

/* **************************************************************************** */
/* Name			: removeFile()													*/
/* Description	: 파일 선택 해제시 파일정보 제거									*/
/* Parameter	: objThis														*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function removeFile(objThis) {
	objThis.filAttach.select();
	document.selection.clear();
	objThis.txtFile.value = "";
	return false;
}

/* **************************************************************************** */
/* Name			: removeFiles()													*/
/* Description	: 파일 선택 해제시 파일정보 제거									*/
/* Parameter	: objThis, nNum													*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function removeFiles(objThis, nNum) {
	if (nNum == 1) {
		objThis.filAttach1.select();
		document.selection.clear();
		objThis.txtFile1.value = "";
		return false;
	}
	else if (nNum == 2) {
		objThis.filAttach2.select();
		document.selection.clear();
		objThis.txtFile2.value = "";
		return false;
	}
	else if (nNum == 3) {
		objThis.filAttach3.select();
		document.selection.clear();
		objThis.txtFile3.value = "";
		return false;
	}
}

/* **************************************************************************** */
/* Name			: clearValue()													*/
/* Description	: Textbox 값 제거												*/
/* Parameter	: objThis														*/
/* Return		: VOID															*/
/* **************************************************************************** */
function clearValue(objThis) {
	objThis.value = "";
}

/* **************************************************************************** */
/* Name			: isConfirm()													*/
/* Description	: 확인 메시지 출력 및 처리											*/
/* Parameter	: szTarget														*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function isConfirm(szTarget) {
	if (szTarget == "remove") {
		if (confirm("삭제를 하시겠습니까?")) {
			return true;
		}
		else {
			return false;
		}
	}
	else if (szTarget == "cancel") {
		if (confirm("취소를 하시겠습니까?")) {
			return true;
		}
		else {
			return false;
		}
	}
	else if (szTarget == "file") {
		if (confirm("새로운 파일을 첨부하시면 기존파일이 삭제됩니다. 새로 첨부하시겠습니까?")) {
			return true;
		}
		else {
			return false;
		}
	}
}

/* **************************************************************************** */
/* Name			: checkEnter()													*/
/* Description	: Carriage Return를 체크하여 해당 함수 호출							*/
/* Parameter	: objForm, strTarget											*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function checkEnter(objForm, strTarget) {
	if (event.keyCode == 13 && strTarget == "login") {
		checkLogin();
		return false;		
	}
	if (event.keyCode == 13 && strTarget == "search") {
		onSearch(objForm);
		return false;
	}
}

/* **************************************************************************** */
/* Name			: checkLogin()													*/
/* Description	: Carriage Return를 체크하여 해당 함수 호출							*/
/* Parameter	: objForm, strTarget											*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function checkLogin() {
	var frm = document.frmLogin;
	if (frm.txtID.value == "") {
		alert("아이디를 입력하셔야 합니다."); 
		frm.txtID.focus() ; 
		return false;
	}
	if (frm.txtPasswd.value == "") {
		alert("암호를 입력하셔야 합니다."); 
		frm.txtPasswd.focus() ; 
		return false;
	}
	return true;
}		
			
/* **************************************************************************** */
/* Name			: checkSubmit()													*/
/* Description	: 입력값 체크														*/
/* Parameter	: objForm, szName 등												*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function checkSubmit(objForm, szName, szEmail, szPasswd, szPasswd2, szTitle, szContent, szFile, szCompany, szPhone, szPresident, szType, szAddress, szHomepage) {

	var frmThis = objForm;
	
	if (szTitle == "title" && frmThis.txtTitle.value == "" ) {
		alert("제목을 입력해 주십시오!");
		frmThis.txtTitle.focus();
		return false
	}
	if (szName == "name" && frmThis.txtName.value == "") {
		alert("작성자를 입력해 주십시오!");
		frmThis.txtName.focus();
		return false
	}
	if (szPasswd == "passwd" && frmThis.txtPasswd.value.length < 4) {
		alert("암호을 입력해 주십시오!");
		frmThis.txtPasswd.focus();
		return false
	}
	if (szPasswd2 == "passwd" && frmThis.txtPasswd.value != frmThis.txtPasswd2.value) {
		alert("암호를 다시 확인하여 주십시오!");
		frmThis.txtPasswd.focus();
		return false
	}
	if (szEmail == "email" && frmThis.txtEmail.value.length < 4) {
		alert("메일을 입력해 주십시오!");
		frmThis.txtEmail.focus();
		return false
	}
	if (szEmail == "email" && !checkMail(frmThis.txtEmail.value)) {
		alert("메일 형식을 확인하여 주십시오!");
		frmThis.txtEmail.focus();
		return false
		if (checkCharacter(frmThis.txtEmail, '메일', Alpha + Digit, 3, 128)) {
			return false;
		}
	}	
	if (szFile == "file" && frmThis.filAttach.value == "" && frmThis.filSaved.value == "") {
		alert("파일을 첨부해 주십시오!");
		return false;
	}
	if (szCompany == "company" && frmThis.txtCompany.value == "") {
		alert("회사명을 입력해 주십시오!");
		frmThis.txtCompany.focus();
		return false;
	}
	if (szPhone == "phone" && frmThis.txtPhone.value == "") {
		alert("연락처를 입력해 주십시오!");
		frmThis.txtPhone.focus();
		return false;
	}
	if (szPresident == "president" && frmThis.txtPresident.value == "") {
		alert("대표자명을 입력해 주십시오!");
		frmThis.txtPresident.focus();
		return false;
	}
	if (szType == "type" && frmThis.dtlType.value == "") {
		alert("업종을 입력해 주십시오!");
		return false;
	}
	if (szAddress == "address" && (frmThis.txtAddress.value == "" || frmThis.txtAddress.value == "주소는 동까지만 입력하십시오!")) {
		alert("주소를 입력해 주십시오!");
		frmThis.txtAddress.value = "";
		frmThis.txtAddress.focus();
		return false;
	}
	if (szHomepage == "homepage" && frmThis.txtHomepage.value == "") {
		alert("홈페이지를 입력해 주십시오!");
		frmThis.txtHomepage.focus();
		return false;
	}
	if (szContent == "content" && document.frames('FCKeditor1___Frame').FCK.GetXHTML() == "") {
		alert("내용을 입력해 주십시오!");
		return false;
	}
	
	return true;	
}

/* **************************************************************************** */
/* Name			: checkCharacter()												*/
/* Description	: 입력값 체크														*/
/* Parameter	: objTarget, szTarget 등											*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function checkCharacter(objTarget, szTarget, szCharacter, nMin, nMax) {
	var nLoop;
	var szValue = objTarget.value;

	if (szValue.length < nMin || szValue.length > nMax) {
		if (nMin == nMax) alert(szTarget + '는 ' + nMin + ' 자 이상이 필요합니다.');
		else alert(szTarget + '는 ' + nMin + ' ~ ' + nMax + ' 자가 필요합니다.');
		objTarget.focus();
		return true;
	}

	if (szCharacter.length > 1) {
		for (nLoop = 0; nLoop < szValue.length; nLoop++)
			if ( szCharacter.indexOf(szValue.substring(nLoop, nLoop+1)) < 0) {
				alert(szTarget +'에서 허용하지 않는 문자(한글/특수문자)가 있습니다.' );
				objTarget.focus();
				return true;
			}
	}
	return false;
}

/* **************************************************************************** */
/* Name			: checkMail()													*/
/* Description	: 메일 형식 체크													*/
/* Parameter	: szEmail														*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function checkMail(szEmail) {
  var szInvalidChars = "\"|&;<>!*\'\\";
  for (var nLoop = 0; nLoop < szInvalidChars.length; nLoop++) {
    if (szEmail.indexOf(szInvalidChars.charAt) != -1) {
      return false;
    }
  }
  if (szEmail.indexOf("@") == -1) {
    return false;
  }
  if (szEmail.indexOf(" ") != -1) {
    return;
  }
  if (window.RegExp) {
    var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)";
    var reg2str = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$";
    var reg1 = new RegExp (reg1str);
    var reg2 = new RegExp (reg2str);
 
    if (reg1.test(szEmail) || !reg2.test(szEmail)) {
      return false;
    }
  }
  return true;
} 

/* **************************************************************************** */
/* Name			: onSearch()													*/
/* Description	: 검색시 검색어 체크												*/
/* Parameter	: objForm														*/
/* Return		: BOOLEAN														*/
/* **************************************************************************** */
function onSearch(objForm) {
	var frmThis = objForm;
	if (frmThis.txtKeyword.value == '' || frmThis.txtKeyword.value == "검색어를 입력합니다.") {
		alert("검색어를 입력해 주십시오!");
		frmThis.txtKeyword.focus();
		return false;
	} 
	return true;
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//각 옵션값을 정해서 asp단으로 넘겨주는 셀렉트박스 함수.

// 파라미터
//ids:셀렉트박스로 지정된 엘리먼트 아이디
//number:1[옵션설정 후 넘김],2[점프메뉴]

var selectDish;
var flag=0;
var option;
var numAspx;//asp단에 넘겨 줄 option value값

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function selectBox(ids,number){
	var selectDish=document.getElementById(ids);
	var optionDish=selectDish.getElementsByTagName("div");
	var checkedDish=selectDish.getElementsByTagName("span");
	//alert(checkedDish[0].firstChild.nodeValue);
	if(flag==0){
		optionDish[0].style.display="";
		flag=1;
		option=optionDish[0].getElementsByTagName("a");
		//alert(option[0].getAttribute("value"));
		var len=option.length;
		for(i=0; i<len; i++){
			option[i].dish=optionDish[0];
			option[i].check=checkedDish[0];
			option[i].num=i;
			if(number==1){
				option[i].onclick=checked;
			}else{
				option[i].onclick=jump;
				option[i].onmouseover=overImg;
			}
		}
	}else{
		optionDish[0].style.display="none";
		flag=0;
	}
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function checked(){
	//alert(option[this.num].value);
	//alert(this.check.firstChild.nodeValue);
	this.check.firstChild.nodeValue=option[this.num].firstChild.nodeValue;
	numAspx=option[this.num].value;//asp단에 넘겨 줄 value 값 여기서 정해집니다.^^
	this.dish.style.display="none";
	flag=0;
	//alert(numAspx);
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function jump(){
	if(option[this.num].getAttribute("href")){
		window.open(option[this.num].getAttribute("href"));
	}else{
		alert('홈페이지 오픈 준비중입니다.');
	}
	this.dish.style.display="none";
	flag=0;
	return false;
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function overImg(){
	var optionImg=option[this.num].getElementsByTagName("img");
	optionImg[0].src="/System/Image/Ko/copy/familySite_"+Number(this.num+1)+"o.gif";
	//option[this.num].style.background="#353638";
	this.onmouseout=outImg;
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function outImg(){
	var optionImg=option[this.num].getElementsByTagName("img");
	optionImg[0].src="/System/Image/Ko/copy/familySite_"+Number(this.num+1)+".gif";
	//option[this.num].style.background="##1d1e21";
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//탭메뉴 함수
function tab(no){
	var tabMenu=document.getElementById("tabMenu");	
	var menu=tabMenu.getElementsByTagName("img");
	var len=menu.length;
	for(i=0; i<len; i++){
		menu[i].no=no;
		menu[i].len=len;
		menu[i].num=i;
		menu[i].onclick=menuFlag;
	}
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function menuFlag(activeNum){
	var menu=	this.parentNode.parentNode.getElementsByTagName("img");
	for(j=0; j<this.len; j++){
		if(this.num==j){
			document.getElementById("m"+j).style.display="";
			menu[j].src="/System/Image/Ko/tab/tab"+this.no+"_0"+Number(this.num+1)+"_o.gif";
		}else{
			document.getElementById("m"+j).style.display="none";
			menu[j].src="/System/Image/Ko/tab/tab"+this.no+"_0"+Number(j+1)+".gif";
			document.body.style.margin="0px";
			document.body.style.height="0px";
		}
	}
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//싸이트멥에서 올때 활성화탭
function menuFlagDirect(activeNo, activeNum){
	activeNum--;
	var tabMenu	= document.getElementById("tabMenu");	
	var menu 	= tabMenu.getElementsByTagName("img");
	for(j=0; j<menu.length; j++){
		if(activeNum==j){
			document.getElementById("m"+j).style.display="";
			menu[j].src="/System/Image/Ko/tab/tab"+activeNo+"_0"+Number(activeNum+1)+"_o.gif";
		}else{
			document.getElementById("m"+j).style.display="none";
			menu[j].src="/System/Image/Ko/tab/tab"+activeNo+"_0"+Number(j+1)+".gif";
		}
	}
}
//마스터플랜텝메뉴
/*function tab2(no){
	if(no==0){
		document.getElementById("m0").style.display="";
		document.getElementById("m1").style.display="none";
		document.getElementById("m2").style.display="none";
		document.getElementById("m3").style.display="none";
		document.getElementById("m4").style.display="none";
		document.getElementById("m5").style.display="none";
		document.getElementById("m6").style.display="none";
	}else if(no==1){
		document.getElementById("m0").style.display="none";
		document.getElementById("m1").style.display="";
		document.getElementById("m2").style.display="none";
		document.getElementById("m3").style.display="none";
		document.getElementById("m4").style.display="none";
		document.getElementById("m5").style.display="none";
		document.getElementById("m6").style.display="none";
	}else if(no==2){
		document.getElementById("m0").style.display="none";
		document.getElementById("m1").style.display="none";
		document.getElementById("m2").style.display="";
		document.getElementById("m3").style.display="none";
		document.getElementById("m4").style.display="none";
		document.getElementById("m5").style.display="none";
		document.getElementById("m6").style.display="none";
	}else if(no==3){
		document.getElementById("m0").style.display="none";
		document.getElementById("m1").style.display="none";
		document.getElementById("m2").style.display="none";
		document.getElementById("m3").style.display="";
		document.getElementById("m4").style.display="none";
		document.getElementById("m5").style.display="none";
		document.getElementById("m6").style.display="none";
	}else if(no==4){
		document.getElementById("m0").style.display="none";
		document.getElementById("m1").style.display="none";
		document.getElementById("m2").style.display="none";
		document.getElementById("m3").style.display="none";
		document.getElementById("m4").style.display="";
		document.getElementById("m5").style.display="none";
		document.getElementById("m6").style.display="none";
	}else if(no==5){
		document.getElementById("m0").style.display="none";
		document.getElementById("m1").style.display="none";
		document.getElementById("m2").style.display="none";
		document.getElementById("m3").style.display="none";
		document.getElementById("m4").style.display="none";
		document.getElementById("m5").style.display="";
		document.getElementById("m6").style.display="none";
	}else if(no==6){
		document.getElementById("m0").style.display="none";
		document.getElementById("m1").style.display="none";
		document.getElementById("m2").style.display="none";
		document.getElementById("m3").style.display="none";
		document.getElementById("m4").style.display="none";
		document.getElementById("m5").style.display="none";
		document.getElementById("m6").style.display="";
	}
}*/
//퀵메뉴 스크롤하는 함수
var body=document.getElementsByTagName("body");
var topGab=204;
var leftGab=934;

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function quick(){
	window.onscroll=scrollQuick;
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
function scrollQuick(){
	var quick=document.getElementById("quick");
	var scrollTop=document.body.scrollTop+topGab;
	//quick.style.top=quick.offsetTop+(scrollTop-quick.offsetTop)*0.3+"px";
	quick.style.top=scrollTop+"px";
	quick.style.left=leftGab+"px";
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//용지공급안내 플래시맵 연동함수
function flashMap(idx){
	for(i=0; i<6; i++){
		if(i==idx){
			document.getElementById("land"+i).style.display="";
		}else{
			document.getElementById("land"+i).style.display="none";
		}
	}
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//플래시 넣는 함수
//픽셀값으로 넣기
function flash1(src,width,height,tr){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    if(tr=='1'){
         object += '<param name="wmode" Value="Transparent">';
    }
    object += '<embed src="'+src+'" quality="high" ';    
    if(tr=='1'){
        object += ' wmode="transparent" ';
    }
    object += ' bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
    object += '</object>';
    document.write(object);
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//퍼센트값으로 넣기
function flash2(src,width,height,tr){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'%" height="'+height+'%">';
    object += '<param name="movie" value="'+src+'">';
    if(tr=='1'){
         object += '<param name="wmode" Value="Transparent">';
    }
    object += '<embed src="'+src+'" quality="high" ';    
    if(tr=='1'){
        object += ' wmode="transparent" ';
    }
    object += ' bgcolor="#ffffff" menu="false" width="'+width+'%" height="'+height+'%" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
    object += '</object>';
    document.write(object);
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//퍼센트와 픽셀값으로 넣기
function flash3(src,width,height,tr){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'%" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    if(tr=='1'){
         object += '<param name="wmode" Value="Transparent">';
    }
    object += '<embed src="'+src+'" quality="high" ';    
    if(tr=='1'){
        object += ' wmode="transparent" ';
    }
    object += ' bgcolor="#ffffff" menu="false" width="'+width+'%" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
    object += '</object>';
    document.write(object);
}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
	//링크표시줄 없애는 함수
	function allblur() {
	  for (i = 0; i < document.links.length; i++) {
		var obj = document.links[i];
		if(obj.addEventListener) obj.addEventListener("focus", oneblur, false);
		else if(obj.attachEvent) obj.attachEvent("onfocus", oneblur);
	  }
	}
	 
	function oneblur(e) {
	  var evt = e ? e : window.event;

	 

	  if(evt.target) evt.target.blur();
	  else if(evt.srcElement) evt.srcElement.blur();
	}

/* **************************************************************************** */
/* Name			: 																*/
/* Description	: 																*/
/* Parameter	: 																*/
/* Return		: 																*/
/* **************************************************************************** */
//교통계획 이미지 보기
function traffic(){
	var trafficM=document.getElementById("trafficImg");
	if(trafficM.style.display=="block"){
		trafficM.style.display="none";
	}else{
		trafficM.style.display="block";
	}
}

//시설지구
function viewMenu(NM){
	var sisul=document.getElementById(NM);
	if(sisul.style.display=="none"){
		sisul.style.display="";
	}else{
		sisul.style.display="none";
	}
}