﻿/* iframe자동리사이즈 **********************************************************************/
function iframeResize(iframe_id) {
	var h = (self.innerHeight) ? document.documentElement.offsetHeight : document.body.scrollHeight;
	try{parent.document.getElementById(iframe_id).style.height = h+"px";}
	catch(e){}
}

function fixedPositionForIE6(type,length){ //type:fixedSide or fixedBottom,  length:fixedSide=topCss or  fixedBottom:objHeight 
	var viewportScroll = (document.documentElement) ? document.documentElement.scrollTop : document.body.scrollTop;	
	var viewportHeight = (document.documentElement) ? document.documentElement.clientHeight : document.body.clientHeight;

	if(type == "fixedSide"){		
		var objTop = length;
		return objTop + viewportScroll + "px";
	} else if( type == "fixedBottom"){				
		var objHeight = length;
		var objTop = viewportHeight - objHeight;		
		return objTop + viewportScroll + "px"
	}
}

/* 레이어 SHOW/HIDE **********************************************************************/
function showdiv(targetEl, uniqid) {
	if(document.getElementById(targetEl)) document.getElementById(targetEl).style.display="block";
}
function hidediv(targetEl) {
	if(document.getElementById(targetEl)) document.getElementById(targetEl).style.display="none";
}


/* FAQ **********************************************************************/
var old_menu = '';
function changeLayer(getMenu) {
	var submenu = document.getElementById(getMenu);
	if( old_menu != submenu ) {
		if( old_menu !='' ) {
			old_menu.style.display = 'none';
		}
		submenu.style.display = 'block';
		old_menu = submenu;
	} else {
		submenu.style.display = 'none';
		old_menu = '';
	}
}


/* 팝업띄우기 **********************************************************************/
function popupWin(filename,winname,width,height,scroll,left,top)	{
	window.open("" + filename + "","" + winname +"","scrollbars=" + scroll + ",toolbar=no,location=no,directories=no,width=" + width + ",height=" + height + ",resizable=no,mebar=no,left=" + left + ",top=" + top + ""); 
}


/* 텍스트 이미지 점선테두리 없애기 **********************************************************************/
function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function Onclick_Href(url){
	location.href=url;
}


/* flashWrite(파일경로, 가로, 세로[, 변수][,배경색][,윈도우모드]) transparent / window / opaque ****************************/
function flashWrite(url,w,h,vars,bg,win){
	
	var id=url.split("/")[url.split("/").length-1].split(".")[0]; //id는 파일명으로 설정
	if(vars==null) vars='';
	if(bg==null) bg='#FFFFFF';
	if(win==null) win='transparent';


	// 플래시 코드 정의
	var flashStr= "	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
		flashStr+="			codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
		flashStr+="			width='"+w+"'";
		flashStr+="			height='"+h+"'";
		flashStr+="			id='"+id+"'";
		flashStr+="			align='middle'>";

		flashStr+="		<param name='allowScriptAccess' value='always' />";
		flashStr+="		<param name='movie' value='"+url+"' />";
		flashStr+="		<param name='FlashVars' value='"+vars+"' />";
		flashStr+="		<param name='wmode' value='"+win+"' />";
		flashStr+="		<param name='menu' value='false' />";
		flashStr+="		<param name='quality' value='high' />";
		flashStr+="		<param name='bgcolor' value='"+bg+"' />";
	
	
		flashStr+="		<embed src='"+url+"'";
		flashStr+="		       flashVars='"+vars+"'";
		flashStr+="		       wmode='"+win+"'";
		flashStr+="		       menu='false'";
		flashStr+="		       quality='high'";
		flashStr+="		       bgcolor='"+bg+"'";
		flashStr+="		       width='"+w+"'";
		flashStr+="		       height='"+h+"'";
		flashStr+="		       name='"+id+"'";
		flashStr+="		       align='middle'";
		flashStr+="		       allowScriptAccess='always'";
		flashStr+="		       type='application/x-shockwave-flash'";
		flashStr+="		       pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		flashStr+=" </object>";

	// 플래시 코드 출력
	document.write(flashStr);
}

/* https 호출시  flashWrite2(파일경로, 가로, 세로[, 변수][,배경색][,윈도우모드]) transparent / window / opaque ****************************/
function flashWrite2(url,w,h,vars,bg,win){
	
	var id=url.split("/")[url.split("/").length-1].split(".")[0]; //id는 파일명으로 설정
	if(vars==null) vars='';
	if(bg==null) bg='#FFFFFF';
	if(win==null) win='transparent';


	// 플래시 코드 정의
	var flashStr= "	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
		flashStr+="			codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
		flashStr+="			width='"+w+"'";
		flashStr+="			height='"+h+"'";
		flashStr+="			id='"+id+"'";
		flashStr+="			align='middle'>";

		flashStr+="		<param name='allowScriptAccess' value='always' />";
		flashStr+="		<param name='movie' value='"+url+"' />";
		flashStr+="		<param name='FlashVars' value='"+vars+"' />";
		flashStr+="		<param name='wmode' value='"+win+"' />";
		flashStr+="		<param name='menu' value='false' />";
		flashStr+="		<param name='quality' value='high' />";
		flashStr+="		<param name='bgcolor' value='"+bg+"' />";
	
	
		flashStr+="		<embed src='"+url+"'";
		flashStr+="		       flashVars='"+vars+"'";
		flashStr+="		       wmode='"+win+"'";
		flashStr+="		       menu='false'";
		flashStr+="		       quality='high'";
		flashStr+="		       bgcolor='"+bg+"'";
		flashStr+="		       width='"+w+"'";
		flashStr+="		       height='"+h+"'";
		flashStr+="		       name='"+id+"'";
		flashStr+="		       align='middle'";
		flashStr+="		       allowScriptAccess='always'";
		flashStr+="		       type='application/x-shockwave-flash'";
		flashStr+="		       pluginspage='https://www.macromedia.com/go/getflashplayer' />";
		flashStr+=" </object>";

	// 플래시 코드 출력
	document.write(flashStr);
}


/* 탑링크 ****************************/
function OnTop(){
	window.scrollTo(0,0);
}


/* 퀵배너 ******************************************************************/
function initMoving(target, topPosition, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = target;
	obj.initTop = topPosition;
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.left = obj.initLeft;
	obj.style.top = obj.top + "px";

	obj.getTop = function() {
		if (document.documentElement.scrollTop) {
			return document.documentElement.scrollTop;
		} else if (window.pageYOffset) {
			return window.pageYOffset;
		} else {
			return 0;
		}
	}
	obj.getHeight = function() {
		if (self.innerHeight) {
			return self.innerHeight;
		} else if(document.documentElement.clientHeight) {
			return document.documentElement.clientHeight;
		} else {
			return 500;
		}
	}
	obj.move = setInterval(function() {
		//pos = obj.getTop() + obj.getHeight() - 150;
		pos = obj.getTop() + topPosition;

		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit
		if (pos < obj.topLimit)
			pos = obj.topLimit

		interval = obj.top - pos;
		obj.top = obj.top - interval / 3;
		obj.style.top = obj.top + "px";
	}, 30)
}


/* 텝스타일 ******************************************************************/
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabList = tabContainer.getElementsByTagName("li");
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabList.length; i++) {
		if (tabList.item(i).className == "")
			thismenu = tabList.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif");
				} else {
					currentmenu.className = currentmenu.className.replace("on", "");
				}
			}

			this.targetEl.style.display = "block";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif");
			} else {
				this.className += "on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}


/* Form Check 함수 */
function CheckStr(strOriginal, strFind, strChange) {
    var position, strOri_Length;
    position = strOriginal.indexOf(strFind);

    while (position != -1) {
        strOriginal = strOriginal.replace(strFind, strChange);
        position = strOriginal.indexOf(strFind);
    }

    strOri_Length = strOriginal.length;
    return strOri_Length;
}



function initTab(tabMenuID){
	var tabMenuEl = document.getElementById(tabMenuID);
	var tabMenuClass = tabMenuEl.className;
	var tabList = tabMenuEl.getElementsByTagName("li");
	var i = 0;

	for(i=0; i<tabList.length; i++) {
		tabList[i].onmouseover = function () {
			tabMenuEl.className = this.className;
		}
		tabList[i].onmouseout = function () {
			tabMenuEl.className = tabMenuClass;
		}
	}
}


/* 롤링배너 ******************************************************************/
//1. 1.5초의 인터벌을 두고 자동롤링
//2. 좌우측 버튼을 통해 수동으로 동작가능
//3. 마우스 오버시 롤링순간멈춤 마우스아웃시 롤링시작

var Rolling=function(cid,count,interval,n) {
	this.cid = cid;
	this.count = count;	
	this.n = (n)?n:"1";
	this.onchange = null;

	for(var k=1; k<=this.count; k++) document.getElementById(this.cid+"_"+k).style.display="none";
	document.getElementById(this.cid+"_"+this.n).style.display="block";

	this.div = document.getElementById(this.cid);//전체div
	this.div.onmouseover=function(){this.isover=true; }
	this.div.onmouseout=function() {this.isover=false;}
	this.btn_next = document.getElementById("btn_"+this.cid+"_next");
	this.btn_prev = document.getElementById("btn_"+this.cid+"_prev");

	var self=this;
	if(this.btn_next) this.btn_next.onclick=function(){self.next() }
	if(this.btn_prev) this.btn_prev.onclick=function(){self.prev() }
//	if(interval>0) setInterval(function(){self.play()}, interval);
}
Rolling.prototype = {
	play : function() {
		if(this.div.isover) return;
		this.next();
	},
	change :function(){
		if(this.onchange) this.onchange();
	},
	prev :function(){
		document.getElementById(this.cid+"_"+this.n).style.display="none";
		this.n=(this.n==1)?this.count:--this.n;
		document.getElementById(this.cid+"_"+this.n).style.display="block";
		this.change();
	},
	next :function(){
		document.getElementById(this.cid+"_"+this.n).style.display="none";
		this.n=(this.n==this.count)? 1:++this.n;
		document.getElementById(this.cid+"_"+this.n).style.display="block";
		this.change();
	},
	random : function() {
		var rn=Math.round((this.count-1)*Math.random());
		for(var i=0;i<rn;i++) this.next();
	}
};


//////////////////////////////////////////////////////////////////
//  은지과장님 지우지 마세요.....부탁용
//
/////////////////////////////////////////////////////////////////

// 공백체크
function CheckSpaces(strValue) {
    var flag = true;

    if (strValue != "") {
        for (var i = 0; i < strValue.length; i++) {
            if (strValue.charAt(i) != " ") {
                flag = false;
                break;
            }
        }
    }
    return flag;
}


//글자수 제안
function CheckStrLength(obj, cnt) {
    //변수의 초기화 
    var now_str = obj.value;    //이벤트가 발생한 컨트롤의 value값 
    var now_len = obj.value.length;    //현재 value값의 글자 수 

    var max_len = cnt;    //제한할 최대 글자 수 
    var i = 0;            //for문에서 사용할 변수 
    var cnt_byte = 0;    //한글일 경우 2 그외에는 1바이트 수 저장 
    var sub_cnt = 0;    //substring 할때 사용할 제한 길이를 저장 
    var chk_letter = ""; //현재 한/영 체크할 letter를 저장 
    var lmt_str = "";    //제한된 글자 수만큼만 저장 

    for (i = 0; i < now_len; i++) {
        //1글자만 추출 
        chk_letter = now_str.charAt(i);

        // 체크문자가 한글일 경우 2byte 그 외의 경우 1byte 증가 
        if (escape(chk_letter).length > 4) {
            //한글인 경우 2byte 
            cnt_byte += 2;
        } else {
            //그외의 경우 1byte 증가 
            cnt_byte++;
        }

        //만약 전체 크기가 제한 글자 수를 넘지 않으면 
        if (cnt_byte <= max_len) {
            // 제한할 문자까지의 count값을 sub_cnt에 누적 
            sub_cnt = i + 1;
        }
    }

    // 만약 전체 크기가 제한 글자 수를 넘으면     
    if (cnt_byte > max_len) {
        alert("최대" + max_len + "글자 이상 쓸수 없습니다!");
        lmt_str = now_str.substring(0, sub_cnt);
        obj.value = lmt_str;
    }
    obj.focus();
}

function return_chk(obj, cnt, max) {
    var obj_str = obj.value;
    var lmt_line = cnt
    var lmt_len = max

    line = obj_str.split("\r\n");
    line_cnt = line.length;

    if (line_cnt == lmt_line && event.keyCode == 13) {
        alert("최대" + lmt_line + "줄 을 넘을 수 없습니다!");
        event.returnValue = false;
    }
}



/************************************************************
설명 : 주민번호 체크 함수
예)checkJumin(주민번호)
값이 잘못된게 있다면 false
값이 올바르다면 true
************************************************************/
//function checkJumin(it) {
//    IDtot = 0;
//    IDAdd = "234567892345";
//
//    for (i = 0; i < 12; i++) IDtot = IDtot + parseInt(it.substring(i, i + 1)) * parseInt(IDAdd.substring(i, i + 1));
//    IDtot = 11 - (IDtot % 11);
//    if (IDtot == 10) IDtot = 0;
//    else if (IDtot == 11) IDtot = 1;
//
//    if (parseInt(it.substring(12, 13)) != IDtot) return false;
//    else return true;
//}

function checkJumin(it){

var IDtot = 0;
var IDAdd = "234567892345";

for(i=0;i<12;i++){
IDtot=IDtot + parseInt(it.substring(i,i+1)) * parseInt(IDAdd.substring(i,i+1));
}

IDtot=11-(IDtot%11);

if(IDtot==10){
	IDtot=0;}
else if(IDtot==11){
	IDtot=1;}

if(parseInt(it.substring(12,13))!=IDtot)
return true;

} 
// 외국인 주민번호 체크
function isRegNo_fgnno(fgnno) { 
        var sum=0; 
        var odd=0; 
        buf = new Array(13); 
        for(i=0; i<13; i++) { buf[i]=parseInt(fgnno.charAt(i)); } 
        odd = buf[7]*10 + buf[8]; 
        if(odd%2 != 0) { return false; } 
        if( (buf[11]!=6) && (buf[11]!=7) && (buf[11]!=8) && (buf[11]!=9) ) { 
                return false; 
        } 
        multipliers = [2,3,4,5,6,7,8,9,2,3,4,5]; 
        for(i=0, sum=0; i<12; i++) { sum += (buf[i] *= multipliers[i]); } 
        sum = 11 - (sum%11); 
        if(sum >= 10) { sum -= 10; } 
        sum += 2; 
        if(sum >= 10) { sum -= 10; } 
        if(sum != buf[12]) { return false } 
        return true; 
} 


//////////////////////////E-Mail 검사////////////////////////

function email_check(email) {
    pattern = /^[0-9a-zA-Z]+[\.0-9a-zA-Z_-]*[\.a-zA-Z]+[\.0-9a-zA-Z_-]*@[0-9a-zA-Z][0-9a-zA-Z_-]*[a-zA-Z]+[0-9a-zA-Z_-]*\..*[a-zA-Z][a-zA-Z]+$/;
    if (email.value.search(/(\S+)@(\S+)\.(\S+)/) == -1) {
        return false;
    } else {
        if (pattern.test(email.value)) {
            return true;
        } else {
            return false;
        }
    }
}


function imgSize(which, max_width) {
    var obj;

    if (document.getElementById(which) == undefined || document.getElementById(which) == null) return;

    obj = document.getElementById(which);

    var width = obj.width;
    var height = obj.height;
    var temp = 0;

    //alert(width) ;

    //var max_width= 510;   // 이미지의 최대 크기

    if (width > max_width) {  // 이미지가 600보다 크다면 너비를 600으로 맞우고 비율에 맞춰 세로값을 변경한다.
        height = height / (width / max_width);
        obj.width = max_width;
        obj.height = height;
    }
}
//------------------------------------------------------
// TextBox 에 입력된 글자수 구하기
//------------------------------------------------------
function updateChar(Obj, objlimit, length_limit) {
    //var form = document.extendedword;
    var length = calculate_msglen(Obj.value);
    //document.getElementById("textlimit").innerHTML = length;
    objlimit.innerText = length;
    if (length > length_limit) {
        alert("최대 " + length_limit + "byte만 입력됩니다.");
        Obj.value = Obj.value.replace(/\r\n$/, "");
        Obj.value = assert_msglen(Obj.value, objlimit, length_limit);
    }
}

function calculate_msglen(message) {
    var nbytes = 0;

    for (i = 0; i < message.length; i++) {
        var ch = message.charAt(i);
        if (escape(ch).length > 4) {
            nbytes += 2;
        } else if (ch == '\n') {
            if (message.charAt(i - 1) != '\r') {
                nbytes += 1;
            }
        } else if (ch == '<' || ch == '>') {
            nbytes += 4;
        } else {
            nbytes += 1;
        }
    }
    return nbytes;
}

function assert_msglen(message, objlimit, maximum) {
    var inc = 0;
    var nbytes = 0;
    var msg = "";
    var msglen = message.length;

    for (i = 0; i < msglen; i++) {
        var ch = message.charAt(i);
        if (escape(ch).length > 4) {
            inc = 2;
        } else if (ch == '\n') {
            if (message.charAt(i - 1) != '\r') {
                inc = 1;
            }
        } else if (ch == '<' || ch == '>') {
            inc = 4;
        } else {
            inc = 1;
        }
        if ((nbytes + inc) > maximum) {
            break;
        }
        nbytes += inc;
        msg += ch;
    }
    //document.getElementById("textlimit").innerHTML = nbytes;
    objlimit.innerText = nbytes;
    return msg;
}
//----------------------------------------
// 함 수  명 : trim
// 함수역할 : trim 처리
//----------------------------------------
function trim(va) {
    va = new String(va)
    temp1 = 0
    for (i = 0; i < va.length; i++) {
        temp2 = va.charAt(i)
        if (temp2 != " ") {
            temp1 = i; break
        }
    }
    va = va.substring(temp1, va.length)
    temp1 = 0
    for (i = va.length - 1; i >= 0; i--) {
        temp2 = va.charAt(i)
        if (temp2 != " ") {
            temp1 = i + 1; break
        }
    }
    va = va.substring(0, temp1)
    return va
}


//
// isNumeric    : 숫자여부를 확인하기 위해 사용.
// parameter    : 숫자 여부를 확인하기 위한 object 또는 object의 값. 
// return value : true -> 숫자, false -> 숫자X
//
function isNumeric() {
    n = arguments[0];
    if (typeof (n) == "object" && typeof (n.value) != "undefined") n = n.value;
    if (typeof (n) != "number" && typeof (n) != "string") return false;
    return !isNaN(parseFloat(n));
}

//
// isAlphaNumeric: AlphaNumeric여부를 확인하기 위해 사용.
// parameter     : AlphaNumeric 여부를 확인하기 위한 object 또는 object의 값. 
// return value  : true -> AlphaNumeric, false -> AlphaNumericX
//
function isAlphaNumeric() {
    var an = arguments[0], ch;
    if (typeof (an) == "object" && typeof (an.value) != "undefined") an = an.value;
    if ((typeof (an) != "number" && typeof (an) != "string") || trim(an) == "") return false;
    an = an.toLowerCase();
    for (var i = 0; i < an.length; i++) {
        ch = an.charAt(i);
        if (!((ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9'))) return false;
    }
    return true;
}

function NumberCheck(CheckValue) {
    var one_char = "";
    var chk_return = true;
    var start = 0;
    if (CheckValue.length > 0) {
        if (CheckValue.charAt(0) == "-") {
            start = 1;
        }
    }
    for (var j = start; j < CheckValue.length; j++) {

        one_char = CheckValue.charAt(j);
        if (one_char < "0" || one_char > "9") {

            chk_return = false;
            break;
        }
    }

    return chk_return;
}

//----------------------------------------
// 함 수  명 : onNoSpecialCode
// 함수역할 : 특수문자 입력 방지 ( !@#$%^&* etc)
//----------------------------------------
function onNoSpecialCode() {
    if ((event.keyCode > 32 && event.keyCode < 48) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97)) {
        alert("특수문자는 입력하실 수 없습니다.");
        event.returnValue = false;
    }
}

function checkSpecialChar(expression) {
    var strSpecial = " `~!@#$%^&*()_+|\;\\/:=-<>.'\" ";    // 요기 밑줄 없는거에용..
    for (i = 0; i < expression.length; i++) {
        for (j = 0; j < strSpecial.length; j++) {
            if (expression.charAt(i) == strSpecial.charAt(j)) {
                return false;   // 특수문자가 있으면.. false값을 돌려보냅니다.
            }
        }
    }
}




//----------------------------------------
// 함 수  명 : cal_byte
// 함수역할 : 입력할 수 있는 허용글자수 정의..(한글형으로)
// aquery : 입력문장,,, byteNum : 허용글자수
//----------------------------------------
function cal_byte(aquery, byteNum) {
    var tmpStr;
    var temp = 0;
    var onechar;
    var tcount;
    var totByteNum = (byteNum * 2);
    var returnStr = "";
    tcount = 0;

    tmpStr = new String(aquery);
    temp = tmpStr.length;

    for (k = 0; k < temp; k++) {
        onechar = tmpStr.charAt(k);
        if (escape(onechar).length > 4) {
            tcount += 2;
        } else if (onechar != '\r') {
            tcount++;
        }
    }

    if (tcount > totByteNum) {
        reserve = (tcount - totByteNum) / 2;
        returnStr = "메시지 내용은" + byteNum + "자 이상은 입력하실수 없습니다.\r\n쓰신 내용은 " + reserve + " 자가 초과되었습니다.";
        return returnStr;
    } else {
        return "";
    }
}

function getCutAllSpace(jS) {
    //jS의 모든 공백 제거
    var jLen = jS.length;
    var strS;

    strS = "";
    var i = 0
    for (var i = 0; i < jLen; i++) {
        if (jS.split(" ")[i]) {
            strS = strS + jS.split(" ")[i];
        }
    }
    return strS;
}

//영어와 숫자만 체크
function isEng(str) {
    for (var i = 0; i < str.length; i++) {
        achar = str.charCodeAt(i);
        if (achar > 128) {
            return false;
        }
    }
    return true;
}

/****************************************************한글인지 안닌지체크
- 한글자 뿐 아니라 문자열을 입력해도 체크 가능합니다.
- 자음이나 모음 하나만 입력하면 한글이 아닌 것으로 인식합니다. (예 : ㄱ, ㄴ, ㅏ, ㅓ 등등)
*****************************************************************************************/

function Is_nick_name(formname) {
    var form = formname;
    for (var i = 0; i < form.value.length; i++) {
        var chr = form.value.substr(i, 1);
        chr = escape(chr);
        if (chr.charAt(1) == "u") {
            chr = chr.substr(2, (chr.length - 1));
            if ((chr < "AC00") || (chr > "D7A3"))
                return false;
        }
        else
            return false;
    }
    return true;
}



function searchF(str) {
    alert('준비중입니다.');
    //alert("검색");
    //alert(str);
}
