/**
	Biznetpia Framework JavaScript
	Copyright? 2005 Biznetpia All rights reserved.

	Author : Myung-Gwang Kim
	Homepage : http://www.biznetpia.com
*/
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0 && a[i] != ""){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
/*Ê×Ò³×ó²àFLASH 2008.08.20*/
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
/*Ê×Ò³×ó²àFLASH*/
function MM_findObj(n, d) { //v4.010
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function getDateStr(year, month, day, sdate)
{
    var d = new Date(parseInt(sdate.substring(0, 4)) + year, Number(sdate.substring(5, 7))-1 + month, Number(sdate.substring(8, 10))+day, 0, 0, 0, 0);
    
    return d.getYear() + "-" + lpad(d.getMonth()+1, 2, "0") + "-" + lpad(d.getDate(), 2, "0");

}

function getExtend(filename)
{
    var i = filename.lastIndexOf(".");
    if(i < 0) return "";

    return filename.substring(i+1);
}

function getValue(obj, defaultValue)
{
    var type = obj.type.toUpperCase();
    var ret = null;
    if(type == "RADIO") ret = getRadioValue(obj);
    if(type == "")

    if(ret == null || ret == "") return defaultValue;
}

/*
    ???? ??
    @return int 0 ~ 6 : ? ~ ?
*/
function getYoil(sdate)
{
    var d = new Date(parseInt(sdate.substring(0, 4)), Number(sdate.substring(5, 7))-1, Number(sdate.substring(8, 10)), 0, 0, 0, 0);

    return d.getDay();
}

function printStr(str)
{
    document.write(str);
}

function checkTextfield(obj, errorMsg)
{
	if(obj.value.length == 0)
	{
		alert(errorMsg);
		obj.focus();
		return false;
	}
	else return true;
}

function checkRadio(obj, value)
{
    if(obj.length == null)
    {
        if(obj.value == value) obj.checked = true;
    }
    else
    {
        for(var i=0 ; i<obj.length ; i++)
        {
            if(obj[i].value == value) 
            {
                obj[i].checked = true;
                return;
            }
            
        }
    }
}

function checkSelect(obj, errorMsg, errorIndex)
{
	if(obj.selectedIndex == errorIndex)
	{
		alert(errorMsg);
		obj.focus();
		return false;
	}
	else return true;
}

function goURL(url)
{
	location.href = url;
}

function joinArray(arr, separator)
{
    if(arr == null) return "";

    var str = "";
    for(var i=0 ; i<arr.length ; i++)
    {
        if(i != arr.length-1) str += arr[i] + separator;
        else str += arr[i];
    }

    return str;
}

function popupWindow(url, name, width, height)
{
	var w = window.open(
							url, 
							name, 
							"width=" + width + ",height=" + height + ", scrollbars=yes, status=no"
							);
	if(w != null) w.focus();
	return w;
}

function openPopup2(url, name, width, height, top, left, scrollbars, resizable)
{
	if(scrollbars == null) scrollbars = "no";
	if(resizable == null) resizable = "no";
	var w = window.open(
							url, 
							name, 
							"width=" + width + 
							",height=" + height + 
							", scrollbars=" + scrollbars + 
							", status=yes, resizable=" + resizable + 
							", top=" + top + 
							", left=" + left
							);
	if(w != null) w.focus();
	return w;
}

function openPopup(url, name, width, height, scrollbars, resizable)
{
	if(scrollbars == null) scrollbars = "no";
	if(resizable == null) resizable = "no";

	var top = window.screen.Height/2 - height/2 -20;
    var left = window.screen.Width/2 - width/2;

	var w = window.open(
							url, 
							name, 
							"width=" + width + ",height=" + height + ", scrollbars=" + scrollbars + ", status=yes, resizable=" + resizable + 
							", top=" + top + ", left=" + left
							);
	if(w != null) w.focus();
	return w;
}

function msg(m)
{
	alert(m);
}

function checkBusinessNum(vencod){

    var sum = 0;
    var getlist =new Array(10);
    var chkvalue =new Array("1","3","7","1","3","7","1","3","5");

    for (var i=0;i<10;i++){ 
        getlist[i] = vencod.substring(i,i+1);
    }

    for (var i=0;i<9;i++){ 
        sum += getlist[i]*chkvalue[i];
    }
    sum = sum +parseInt((getlist[8]*5)/10) ;
    sidliy = sum%10;
    sidchk = 0;

    if ( sidliy != 0 ) { 
        sidchk = 10 - sidliy; 
    } else { 
        sidchk = 0; 
    }

    if ( sidchk != getlist[9] ) {
        return false;
    }
    return true;
}

function checkTextfieldForEmail(obj, errorMsg) 
{
	var strng = obj.value;
	re1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	re2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
	if( re1.test(strng) || !re2.test(strng) ) 
	{
		if(errorMsg != null && errorMsg != "") 
		{
			alert(errorMsg);
			obj.focus();
		}
		return false;
	}
	else return true;
}

function setCookie( name, value, expiredays ) 
{ 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 

function getCookie( name )
{
	var nameOfCookie = name + "="; 
	var x = 0; 

	while ( x <= document.cookie.length ) 
	{ 

		var y = (x+nameOfCookie.length); 

		if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
						endOfCookie = document.cookie.length; 
				return unescape( document.cookie.substring( y, endOfCookie ) ); 
		} 
		x = document.cookie.indexOf( " ", x ) + 1; 

		if ( x == 0 ) break; 
	} 
	return ""; 
}

function checkTextfieldForNumber(obj, errorMsg) 
{
	var strng = obj.value;

	if (strng.length==0 || isNaN(strng)) 
	{
		alert(errorMsg);
		obj.focus();
		return false;
	}
	else return true;
}


function checkTextfieldForSSN(obj1, obj2, errorMsg)
{
	if(errorMsg == null) errorMsg = "??????? ???? ????.";
	if(!checkSSN(obj1.value, obj2.value))
	{
		alert(errorMsg);
		obj1.focus();
		return false;
	}
	else return true;
}

/**
	?????? ??
*/
function checkSSN(idn1, idn2) 
{
	var strng = idn1 + "-" + idn2;
	if(idn2 == null) strng = idn1;

	re = /^[0-9]{6}-?[0-9]{7}$/;
	if (!re.test(strng)) return false;

	strng_new = strng.replace("-","");
	var year   = parseInt(strng_new.substr(0,2),10);
	var month  = parseInt(strng_new.substr(2,2),10);
	var day    = parseInt(strng_new.substr(4,2),10);
	var gender = parseInt(strng_new.charAt(6)  ,10);
	if ( month<1 || month>12 || gender<1 || gender>4 ) return false;

	var arrayOfLasts = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	if(month==2) {
		year += (gender<3 ? 1900 : 2000);
		if(leapyear(year)) arrayOfLasts[1] = 29;
	}
	if(day<1 || day>arrayOfLasts[month-1]) return false;

	var tmp = 0;
	for(var n=0; n<12; n++) tmp += (n%8+2) * parseInt(strng_new.charAt(n),10);
	tmp = (11-(tmp%11))%10;
	if (tmp != strng_new.charAt(12)) return false;
	return true;
}

function trim(str) {
	var i = 0;
	var j = 0;
	
	if (str == null || str == "" || str == "undefined")
		return "";
		
	var len = str.length;

	for (i=len - 1; i >= 0; i--) {
		if (str.charAt(i) != " " && str.charCodeAt(i) != 160) break;
	}

	for (j=0; j < i; j++) {
		if (str.charAt(j) != " " && str.charCodeAt(j) != 160) break;
	}

	return str.substring(j, i + 1);
}

function lpad(str, leng, repChar) {
    str = new String(str);
	for(var i=str.length; i<leng; i++) str = repChar + str;
    return str;
}

function rpad(str, leng, repChar) {
    for(var i=str.length; i<leng; i++)
        str=str+repChar;
    return str;
}

function returnMsg(msg, obj, ret)
{
	if(msg != "") alert(msg);
	if(obj != null) obj.focus();
	return ret;
}

function makeComma(checkText)
{
	checkText = new String(parseNumber(checkText));
	var len = checkText.length;
	var str = checkText;
	if(len < 4)
	{
		return str;
	}
	else if (len == 4)
	{
		str = checkText.substr(0,1) + "," + checkText.substr(1,len);
		return str;
	}
	else if(len == 5)
	{
		str = checkText.substr(0,2) + "," + checkText.substr(2,len);
		return str;
	}
	else if(len == 6)
	{
		str = checkText.substr(0,3) + "," + checkText.substr(3,len);
		return str;
	}
	else if(len == 7)
	{
		str = checkText.substr(0,1) + "," + checkText.substr(1,3) + "," + checkText.substr(4,len);
		return str;
	}
	else if(len == 8)
	{
		str = checkText.substr(0,2) + "," + checkText.substr(2,3) + "," + checkText.substr(5,len);
		return str;
	}
	else if(len == 9)
	{
		str = checkText.substr(0,3) + "," + checkText.substr(3,3) + "," + checkText.substr(6,len);
		return str;
	}
	else if(len == 10)
	{
		str = checkText.substr(0,1) + "," + checkText.substr(1,3) + "," + checkText.substr(4,3) + "," + checkText.substr(7,len);
		return str;
	}
	else if(len == 11)
	{
		str = checkText.substr(0,2) + "," + checkText.substr(2,3) + "," + checkText.substr(5,3) + "," + checkText.substr(8,len);
		return str;
	}
	else if(len == 12)
	{
		str = checkText.substr(0,3) + "," + checkText.substr(3,3) + "," + checkText.substr(6,3) + "," + checkText.substr(9,len);
		return str;
	}
	else if(len > 12)
	{
		alert("????? ?? ?????!" + '\n' + "??? ?? 1??????!");
		return checkText;
	}
}

function remove(str, gubun)
{
	return str.split(gubun).join("");
}

function replace(str, gubun, rep)
{
	return str.split(gubun).join(rep);
}

function getRadioValue(obj)
{
	if(obj == null) return null;

	if(obj.length == undefined) 
	{
		if(obj.checked) return obj.value;
		else return null;
	}

	for(var i=0 ; i<obj.length ; i++)
	{
		if(obj[i].checked) return obj[i].value;
	}

	return null;
}

/**
	checkbox? checked? ?? ????? ??
	??? 1????, ? ????, ??? ???? ??? ???? ????.
*/
function getCheckBoxValue(obj)
{
	var ret = new Array();
	if(obj == null) return ret;

	if(obj.length == undefined) 
	{
		if(obj.checked) ret[0] = obj.value;
	}
	else
	{
		var j=0;
		for(var i=0 ; i<obj.length ; i++) 
		{
			if(obj[i].checked) ret[j++] = obj[i].value;
		}
	}

	return ret;
}


/**
	??? ???? ??? ??.
	?? ??? ??? ?? ??, ??? ???? ??? checked??? true? ????.
*/
function check(obj, value)
{
	if(obj == null) return;
	if(obj.length == undefined)
	{
		if(obj.value == value) obj.checked = true;
	}
	else
	{
		for(var i=0 ; i<obj.length ; i++)
		{
			if(obj[i].value == value) 
			{
				obj[i].checked = true;
				return;
			}
		}
	}
}


/**
	?????? ??? ??.
	?? ??? ??? ?? ??? ????, ????? ??? ????? ??.
*/
function check2(obj, index)
{
	if(obj == null) return;
	if(obj.length == undefined)
	{
		if(index == 0) obj.checked = !obj.checked;
	}
	else
	{
		for(var i=0 ; i<obj.length ; i++)
		{
			if(i == index) 
			{
				obj[i].checked = !obj[i].checked;
				return;
			}
		}
	}
}

/**
	?????? ???? ?? ?? ?????? ?? ????? ????.
*/
function checkAll2(obj)
{
	if(obj == null) return;
	if(obj.length == undefined)
	{
		obj.checked = !obj.checked;
	}
	else
	{
		for(var i=0 ; i<obj.length ; i++)
		{
			obj[i].checked = !obj[i].checked;
		}
	}
}

/**
	@params
	name : "id" attribute name
	display : "display" attribute value
*/
function setDisplay(name, display)
{
	var obj = document.all[name];
	if(obj == null) obj = document.frm[name];
	if(obj == null) obj = document.images[name];

	if(obj == null)
	{
		alert("function[setDisplay] ERROR : Object(" + name + ") is NULL!!");
		return;
	}
	
	obj.style.display = display;
}


function leapyear(year) 
{
	if (((year%4 == 0) && (year%100 != 0)) || (year%400 == 0)) return true;
	else return false;
}

function getLastDay(month, year)
{
	var days;
	month = month-1;
	switch (month)
	{
		case 0 : days=31; break;
		case 1 : if (leapyear(year)) days=29;
					else days=28;
					break;
		case 2 : days=31; break; 
		case 3 : days=30; break;
		case 4 : days=31;  break;
		case 5 : days=30;  break;
		case 6 : days=31;  break;
		case 7 : days=31;  break;
		case 8 : days=30;  break;
		case 9 : days=31;  break;
		case 10 : days=30;  break;
		case 11 : days=31;  break;
	}
	return days;
}

function initCombo(obj)
{
	while(obj.options.length > 0)
	{
		obj.options[obj.options.length-1] = null;
	}
}

function addOption(obj, value, text, is_selected)
{
	var index = obj.options.length;
	obj.options[index] = new Option(text, value);
	if(is_selected) obj.options[index].selected = true;
}

function setText(name, text)
{
	document.all[name].innerHTML = text;
}

function getDisplay(name)
{
	var obj = document.all[name];
	if(obj == null) obj = frm[name];
	if(obj == null) alert("ERROR : '" + name + "' is null !!!");

	return obj.style.display;
}

function checkAll(obj, value)
{
	if(obj == null) return;
	if(obj.length == undefined) 
	{
		obj.checked = value;
		return;
	}

	for(var i=0 ; i<obj.length ; i++)
	{
		obj[i].checked = value;
	}
}

/**
	?????, ????? ????? ????.
*/
function is_checked(obj)
{
	if(obj == null) return false;

	if(obj.length == undefined) return obj.checked;

	for(var i=0 ; i<obj.length ; i++)
	{
		if(obj[i].checked) return true;
	}

	return false;
}

function parseNumber(num)
{
	num = new String(num);
	num = remove(num, ",");
	if (num.length==0 || isNaN(num)) return 0;
	return Number(num);
}

function setReadOnlyAll(form_name, is_readonly)
{
	var formObj = document.forms[form_name];
	var obj, tagName, type;

	for(var i=0 ; i<formObj.elements.length ; i++)
	{
		obj = formObj.elements[i];
		tagName = obj.tagName;
		type = obj.type.toUpperCase();
		if(	tagName == "TEXTAREA" || 
			(tagName == "INPUT" && (type == "PASSWORD" || type == "TEXT")))
		{
			obj.readOnly = is_readonly;
		}
	}
}

function setDisabledAll(form_name, is_disable)
{
	var formObj = document.forms[form_name];
	var obj, tagName, type;

	for(var i=0 ; i<formObj.elements.length ; i++)
	{
		obj = formObj.elements[i];
		tagName = obj.tagName;
		type = obj.type.toUpperCase();
		if(	tagName == "TEXTAREA" || 
			tagName == "SELECT" ||
			(tagName == "INPUT" && (type == "PASSWORD" || type == "TEXT" || type == "FILE")))
		{
			obj.disabled = is_disable;
		}
	}
}

function openModal(url, width, height, arg)
{
	if(arg == null) arg = window;
	var ret = showModalDialog(url, arg, "dialogWidth:" + width + "px; dialogHeight:" + height + "px; center=yes; screenTop=yes; scroll=auto; status=yes; help=yes;");
	return ret;
}

function openModal2(url, width, height, arg)
{
	if(arg == null) arg = window;
	var arr = url.split("?");

	url = document.all["document_root"].innerHTML + "inc/modal.jsp?submit_page=" + arr[0] + "&" + arr[1];
	var ret = showModalDialog(url, arg, "dialogWidth:" + width + "px; dialogHeight:" + height + "px; center=yes; screenTop=yes; scroll=auto; status=yes; help=yes;");
	return ret;
}

/**
	obj??? display style??? hidden, inline ?? ?????.
*/
function setVisible(obj, is_show)
{
	var display = "none";
	if(is_show) display = "inline";
	if(obj == null || obj.style == null) 
	{
		alert("ERROR : setVisible()\n?? obj? style??? ?? ??? NULL???.");
		return;
	}
	obj.style.display = display;
}

function nvl(value, rep)
{
	if(value == null || trim(value) == "") return rep;
	return value;
}

function setVisible2(name, is_show)
{
	var display = "none";
	if(is_show) display = "inline";

	var obj;
	if(document.all[name] == null)
	{
		if(frm[name] == null)
		{
			if(document.images[name] == null)
			{
				alert("ERROR : Method setVisible2(), NAME is " + name + " and is_show is " + is_show);
				return;
			}
			else obj = document.images[name];
		}
		else obj = frm[name];
	}
	else obj = document.all[name];
	
	obj.style.display = display;
}

/**
	????? ?? Object? ?? ??? Object? ??? ???? ????.
	obj : ??? ?? Object
*/
function nextFocus(obj)
{
    var is_find = false;
    var tagName, type;
    
    for(var i=0 ; i<frm.elements.length ; i++)
    {
        var o = frm.elements[i];

        if(o == obj) 
        {
            is_find = true;
            continue;
        }
        if(is_find)
        {
            tagName = o.tagName.toUpperCase();
            type = o.type.toUpperCase();

            if(o.disabled || (tagName == "INPUT" && type == "HIDDEN") || o.style.display == "hidden") continue;
            try{o.focus();}
			catch(e){continue;}
            break;
        }
    }
}

// ????? ?? ???? ????.
function deleteAllItem(selectObj)
{
	while(selectObj.length > 0)
	{
		selectObj[selectObj.length-1] = null;
	}
}


/************************************************************

	Framework?? ???? ???

************************************************************/
/**
	TEXTFIELD(INPUT TYPE=text)? ??? ??? ? ??.
	- MONEY : ??? ???? ??? ?????? ???? ??? ? 3???? ??? ???.
	- NUMBER : ??? ????
	- NUMBER2 : (-)(.)?? ??? ????
	- RIGHT : ??? ????
	- CENTER : ??? ????
	- DATE : ??? ??????, ???? ????? YYYY-MM-DD ??? ????.
	- ENG : ????? ???? ????? ????? ????.
*/
function init()
{
	// ?? ??? ???
    for (var i=0; i < document.links.length; i++) document.links[i].hideFocus = true;

    var ret = callAlertBox();
	if(!ret) return;

	_init();
	_init2();

	var imageCheck = document.getElementById("no_image_check") == null ? true : false;
    if(!imageCheck)
    {
        if(document.getElementById("no_image_check") == "y") imageCheck = false;
        else imageCheck = true;
    }

    if(imageCheck)
    {
        for(var i=0 ; i<document.images.length ; i++)
        {
            var img = document.images[i];
            if(img.name.indexOf("bulletin_img") < 0 && img.name.indexOf("consult_img") < 0) continue;

            img.w = img.width;
            img.h = img.height;
            var max = 605;
            if(img.name.indexOf("consult_img") == 0) max = 500;
            
            if(img.width >= max) 
            {
                img.width = max;
            }
            
            img.onclick = _preview_img;
            img.style.cursor = "hand";
        }
    }

	var align = "";
	if(document.frm == null) return;

    for(var i=0 ; i<document.frm.elements.length ; i++)
    {
        obj = document.frm.elements[i];
		
		if(obj.tagName == "INPUT") 
		{
			if(obj.type.toUpperCase() == "TEXT")
			{
				if(obj.disabled) obj.style.backgroundColor = "#ebebeb";

				if(obj.getAttribute("RIGHT") != null) obj.style.textAlign = "right";
				if(obj.getAttribute("CENTER") != null) obj.style.textAlign = "center";
				if(obj.getAttribute("MONEY") != null) 
				{
					obj.style.textAlign = "right";
					obj.value = makeComma(remove(obj.value, ","));
					if(obj.value == "") obj.value = "0";
				}
				
				if(
					obj.getAttribute("MONEY") != null || obj.getAttribute("NUMBER")!= null ||
					obj.getAttribute("NUMBER2") != null || obj.getAttribute("DATE") != null
				)
				{
					// ??????? ????? ???? ?????? ?? ????? ????? ???? ????? ????? ?.
					obj.style.imeMode = "disabled";
					if(obj.getAttribute("DATE") != null) 
					{
						obj.title = "19690220 ???? ?????.";
						obj.maxLength = 10;
					}
				}

				if(obj.getAttribute("ENG") != null)
				{
					obj.style.imeMode = "disabled";
				}
			}
			
			obj.onfocus = _onfocus;
			obj.onblur = _onblur;
			obj.onkeydown = _onkeydown;
			obj.onfocusout = _onfocusout;
		}
		else if(obj.tagName == "SELECT")
		{
			if(obj.disabled) obj.style.backgroundColor = "#ebebeb";

			obj.onfocus = _onfocus;
			obj.onblur = _onblur;
			obj.onkeydown = _onkeydown;
			obj.onfocusout = _onfocusout;
		}
		else if(obj.tagName == "TEXTAREA")
		{
			if(obj.disabled) obj.style.backgroundColor = "#ebebeb";

            obj.onfocus = _onfocus;
			obj.onblur = _onblur;
			obj.onfocusout = _onfocusout;
		}
	}
}

function _preview_img()
{
	var obj = event.srcElement;
	
	var w = obj.w + 20;
	var h = obj.h;
    var src = obj.src;
    if(src.indexOf("http://") == 0 && src.indexOf("/") >= 0) 
    {
        src = remove(src, "http://");
        src = src.substring(src.indexOf("/"));
    }

	if(w > 800) w = 800;
	if(h > 600) h = 600;
	var w = openPopup2(document.all["document_root"].innerHTML + "inc/image_pop.jsp?src=" + src, "img_preview", w, h, 30, 0, "yes", "yes");
    
	//w.document.writeln("<HTML><META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=euc-kr'><TITLE>??? ????</TITLE><BODY LEFTMARGIN=0 TOPMARGIN=0>");
	//w.document.writeln("<A HREF='javascript:self.close();'><IMG SRC='../index.files/" + src + "' BORDER=0></A>");
	//w.document.writeln("</BODY></HTML>");
}

function callAlertBox()
{
    var msg = "";
    if(document.all["message"] != null) msg = document.all["message"].innerHTML;
    if(msg != "") alert(msg);
    
    if(document.frm == null) return true;

    if(frm.isReceived.value == "false") return false;

	return true;
}

function _mouseover_img()
{
	this.s = this.src;
	if(this.src.indexOf("_over") < 0) 
	{
		this.selected = true;
		return;
	}

	this.src = remove(this.src, '_over');
}

function _mouseout_img()
{
	if(this.selected) return;
	this.src = this.s;
}

/**
	focus? ???? ???? ??? ???.
	onblur?? ?? ????.
*/
function _onfocusout()
{
	var obj = event.srcElement;
	
	_onfocusout1(obj);

	if(obj.getAttribute("MONEY") != null) 
	{
		obj.value = makeComma(remove(obj.value, ","));
		if(obj.value == "") obj.value = "0";
	}

	if(obj.getAttribute("DATE") != null)
	{
		var value = obj.value;
		if(value == "") return;

		if(obj.getAttribute("REQUIRED") != null)
		{
			var v = obj.value.split("-").join("");
			if(v.length != 8)
			{
				alert("?? ??? ??? ?????. \n?,?? ??? ???? ????? ???.");
				obj.focus();
				return;
			}
		}

		obj.value = obj.value.split("-").join("");
		obj.value = obj.value.substring(0, 4) + "-" + obj.value.substring(4, 6) + "-" + obj.value.substring(6, 8);
	}

	if(obj.getAttribute("MINLENGTH") != null)
	{
		var minLength = obj.getAttribute("MINLENGTH");
		if(obj.value != "" && trim(obj.value).length < minLength)
		{
			alert("??? " + minLength + "???? ????? ???.");
			event.returnValue = false;
			obj.focus();
		}
	}

	
}

function _onkeydown()
{
	var obj = event.srcElement;
	_onkeydown1(obj);

	
	var iKey = event.keyCode;
	
	// Copy, Cut, Paste ??? ???.
	if((iKey == 88 || iKey == 67 || iKey == 86) && event.ctrlKey)
	{
		event.returnValue = true;
		return;
	}

	if(iKey == 13)
	{
		if(obj.tagName == "SELECT" || (obj.tagName == "INPUT" && (obj.type == "text" || obj.type == "password")))
		{
			_onenterdown(obj);
			event.returnValue = false;
			return;
		}
	}
	
	var s = String.fromCharCode(iKey);
	//alert(iKey);

	if(iKey != 32)
	{
		if((iKey >= 34 && iKey <= 40) || iKey == 45 || iKey == 46 || iKey == 32 || iKey == 8) return;
		if(iKey == 25 || iKey == 17) return;
	}

	if(	obj.getAttribute("NUMBER") != null || 
		obj.getAttribute("MONEY") != null || 
		obj.getAttribute("DATE") != null)
	{
		if(iKey >= 96 && iKey <= 105) 
		{
			event.returnValue = true;
			return;
		}

		if (s >= 0 && s <= 9) event.returnValue = true;
		else event.returnValue = false;
		//alert(event.returnValue);
	}
	else if(obj.getAttribute("NUMBER2") != null)
	{
		if((iKey >= 96 && iKey <= 105) || iKey == 109) 
		{
			event.returnValue = true;
			return;
		}

		if ((s >= 0 && s <= 9) || iKey == 189 || iKey == 190) event.returnValue = true;
		else event.returnValue = false;
	}

	var type = obj.type.toUpperCase();
	if(obj.tagName == "INPUT")
	{
		if(type == "TEXT" || type == "PASSWORD")
		{
			if(iKey == 27) 
			{
				var preValue = obj.preValue;
				if(preValue == null) preValue = "";
				obj.value = preValue;
			}
		}
	}
}

function _onenterdown()	// ??? ???? ???
{
	var obj = event.srcElement;
	_onenterdown1(obj);
	_onenterdown2(obj);

	if(obj.type == "text" || obj.type == "password") 
	{
		event.returnValue = false;
		return;
	}
}

function _onblur()
{
	var obj = event.srcElement;
	_onblur1(obj);
	_onblur2(obj);
}

var preValue;
function _onfocus()
{
	var obj = event.srcElement;

	//alert("focus : " + obj.name);
	//return;
	_onfocus1(obj);
	_onfocus2(obj);
	
	if(obj.getAttribute("MONEY") != null) obj.value = remove(obj.value, ",");
	if((obj.tagName == "INPUT" && (obj.type.toUpperCase() == "TEXT" || obj.type.toUpperCase() == "PASSWORD")) || obj.tagName == "TEXTAREA") 
	{
		
		obj.preValue = obj.value;

		if(obj.getAttribute("DESELECTED") != null || obj.tagName == "TEXTAREA") return;
		obj.select();
	}
}
function _onkeydown1(){}
function _onfocus1(){}
function _onfocus2(obj){}
function _onblur1(){}
function _onblur2(obj){}
function _onfocusout1(obj){}
function _onenterdown1(obj){}
function _onenterdown2(obj){}


function _init(){}
function _init2(){}

function selectRow(index)
{
	if(frm.index != null) frm.index.value = index;
	check(frm["chk[]"], index);
	_selectRow(index);
}

function _selectRow(index){}
/**
	form ?? ???? & trim???? ??.
	money??? ???? ??(,) ????
*/
function _validate(frm)
{
	var obj;
    var value;
    var is_required;
	//var highlight_color = "#FFDDFF";
	var highlight_color = "";

	if(frm == null) return true;
	for(var i=0 ; i<frm.elements.length ; i++)
    {
        obj = frm.elements[i];
		if((obj.tagName == "INPUT" && (obj.type.toUpperCase() == "TEXT" || obj.type.toUpperCase() == "PASSWORD")) ||
			obj.tagName == "TEXTAREA" ||
			obj.tagName == "SELECT"
		) 
		{
			//obj.style.backgroundColor = "";
		}
	}
    
    for(var i=0 ; i<frm.elements.length ; i++)
    {
        obj = frm.elements[i];
		value = obj.value;
        
        if(obj.getAttribute("REQUIRED") != null) is_required = true;
		else is_required = false;

        if(!is_required) continue;

        var msg = trim(obj.getAttribute("MSG"));
        if(msg == "") msg = "?? ?????.";

		var minLength = obj.getAttribute("MINLENGTH");

        //alert(obj.type);
		if(obj.tagName == "INPUT")
        {
            if(obj.getAttribute("EMAIL") != null)
			{
				if(value == "")
				{
					alert(msg);
					obj.focus();
					//obj.style.backgroundColor = highlight_color;
					return false;
				}

				if(!checkTextfieldForEmail(obj))
				{
					alert("??? ??? ?? ????.");
					obj.focus();
					//obj.style.backgroundColor = highlight_color;
					return false;
				}
			}

			if(obj.getAttribute("DATE") != null)
			{
				var str = remove(value, "-");
				if(str.length != 8)
				{
					alert("YYYY-MM-DD ???? ?????.\n?) 2005-05-25");
					obj.focus();
					//obj.style.backgroundColor = highlight_color;
					return false;
				}
			}

			if(obj.getAttribute("MONEY") != null || obj.getAttribute("NUMBER") != null)
			{
				if(value == "0")
				{
					alert(msg);
					obj.focus();
					//obj.style.backgroundColor = highlight_color;
					return false;
				}
			}
			
			if(obj.type.toUpperCase() == "TEXT" || obj.type.toUpperCase() == "PASSWORD")
            {
                if(trim(value) == "")
                {
                    alert(msg);
                    obj.focus();
                    //obj.style.backgroundColor = highlight_color;
					return false;
                }

				
				if(minLength != null)
				{
					if(trim(value).length < minLength)
					{
						alert("?? " + minLength + "?? ?? ????? ???.");
						obj.focus();
						//obj.style.backgroundColor = highlight_color;
						return false;									
					}
				}
            }
            else if(obj.type.toUpperCase() == "RADIO")
            {
				obj = frm[obj.name];
				var ret = getRadioValue(obj);
				if(ret == null)
                {
					msg = trim(obj[0].getAttribute("MSG"));
                    if(msg == "") msg = "?? ?????.";
                    
                    alert(msg);
					return false;
                }
            }
			obj.value  = trim(value);
        }
        else if(obj.tagName == "SELECT")
        {
            if(obj.selectedIndex < 0)
			{
				alert(msg);
                obj.focus();
                //obj.style.backgroundColor = highlight_color;
				return false;
			}

			value = obj[obj.selectedIndex].value;
            if(value == "")
            {
                alert(msg);
                obj.focus();
                //obj.style.backgroundColor = highlight_color;
				return false;
            }
        }
		else if(obj.tagName == "TEXTAREA")
		{
			if(trim(value) == "")
			{
				alert(msg);
				obj.focus();
				//obj.style.backgroundColor = highlight_color;
				return false;
			}

			if(minLength != null)
			{
				if(trim(value).length < minLength)
				{
					alert("?? " + minLength + "?? ?? ????? ???.");
					obj.focus();
					//obj.style.backgroundColor = highlight_color;
					return false;									
				}
			}
		}
    }

	
	return true;
}



function do_nothing()
{
	return;
}

function setGridText(gridName, row, col, value, doc)
{
	if(doc == null) doc = document;
	
	var obj = frm[gridName + row + "_" + col];
	if(obj != null) 
	{
		obj.value = value;
		
	}
	else
	{
		obj = doc.all[gridName + "_text" + row + "_" + col];
		if(obj != null) obj.innerHTML = value;
	}

	if(obj == null) 
	{
		alert("ERROR : setGridText()\ngridName : " + gridName + "\n" + 
				"row : " + row + "\n" + 
				"col : " + col);
		throw "error";
	}
}

function getGridText(gridName, row, col, doc)
{
	if(doc == null) doc = document;
	
	var value;
	var obj = frm[gridName + row + "_" + col];
	if(obj == null) obj = doc.all[gridName + "_text" + row + "_" + col];
	else value = obj.value;
	
	if(obj == null) 
	{
		alert("ERROR : getGridText()\ngridName : " + gridName + "\n" + 
				"row : " + row + "\n" + 
				"col : " + col);
		throw "error";
	}

	if(frm[gridName + row + "_" + col] == null) value = obj.innerHTML;

	return value;
}

function getGridCellObject(gridName, row, col, doc)
{
	if(doc == null) doc = document;
	
	var obj = frm[gridName + row + "_" + col];
	if(obj == null) obj = doc.all[gridName + "_text" + row + "_" + col];

	return obj;
}

function getGridRow(gridName, row, doc)
{
	var ret = new Array();
	
	for(var i=0 ; i<50 ; i++)
	{
		if(getGridCellObject(gridName, row, i, doc) == null) break;
		ret[i] = getGridText(gridName, row, i, doc);
	}

	return ret;
}

function setMultipart(is_multi)
{
	if(!is_multi) frm.encoding = "";
	else frm.encoding = "multipart/form-data";
}

/*
function submitForm3(target, action)
{
	var formObj = frm;
	target = nvl(target, "_self");

	frm.target = target;
	frm.action = action;

    var str = "";
    var value = "";
    var skipObjNames = new Array();
	for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
		if(obj.disabled) 
		{
			obj.disabled = false;
			obj.disabled2 = true;
		}
		
		if(obj.tagName == "INPUT")
		{
			if(obj.getAttribute("MONEY") != null) obj.value = remove(obj.value, ",");
		}

        if(obj.name == null || (obj.name.indexOf("sc_") != 0 && obj.name.indexOf("pk_") != 0)) continue;
        if(skipObjNames[obj.name]) continue;

        if(obj.type.toUpperCase() == "RADIO") 
        {
            value = getRadioValue(obj);
            skipObjNames[obj.name] = true;
        }
        else if(obj.type.toUpperCase() == "CHECKBOX") 
        {
            var arr = getCheckBoxvalue(obj);
            for(var i=0 ; i<arr.length ; i++)
            {
                str += obj.name + "=";
                str += arr[i] + "&";
            }
            skipObjNames[obj.name] = true;
            continue;
        }
        else
        {
            value = obj.value;
        }

        if(value == null || obj.value == "") continue;

        str += obj.name + "=";
        str += value + "&";
	}

    if(frm.actEvent != null && frm.actEvent.value != "") str += "actEvent=" + frm.actEvent.value + "&";
    if(frm.page != null && frm.page.value != "") str += "page=" + frm.page.value + "&";

    if(str != "") 
    {
        location.href = action + "?" + str;
    }
    else location.href = action;

	for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
		if(obj.disabled2) 
		{
			obj.disabled = true;
		}
		
		if(obj.tagName == "INPUT") 
		{
			if(obj.getAttribute("MONEY") != null) obj.value = makeComma(obj.value);
		}
	}
}
*/

function submitForm3(winObj, action)
{
	var frm = document.frm;
	if(winObj == null || winObj == "_self") winObj = window;

	

    var str = "";
    var value = "";
    var skipObjNames = new Array();
	for(var i=0 ; i<document.frm.elements.length ; i++)
    {
        var obj = document.frm.elements[i];
		if(obj.disabled) 
		{
			obj.disabled = false;
			obj.disabled2 = true;
		}
		
		if(obj.tagName == "INPUT")
		{
			if(obj.getAttribute("MONEY") != null) obj.value = remove(obj.value, ",");
		}

        if(obj.name == null || (obj.name.indexOf("sc_") != 0 && obj.name.indexOf("pk_") != 0)) continue;
        if(skipObjNames[obj.name]) continue;

        if(obj.type.toUpperCase() == "RADIO") 
        {
            value = getRadioValue(obj);
            skipObjNames[obj.name] = true;
        }
        else if(obj.type.toUpperCase() == "CHECKBOX") 
        {
            var arr = getCheckBoxvalue(obj);
            for(var i=0 ; i<arr.length ; i++)
            {
                str += obj.name + "=";
                str += arr[i] + "&";
            }
            skipObjNames[obj.name] = true;
            continue;
        }
        else
        {
            value = obj.value;
        }

        if(value == null || obj.value == "") continue;

        str += obj.name + "=";
        str += value + "&";
	}

    if(document.frm.actEvent != null && document.frm.actEvent.value != "") str += "actEvent=" + document.frm.actEvent.value + "&";
    if(document.frm.page != null && document.frm.page.value != "") str += "page=" + document.frm.page.value + "&";

    if(str != "") 
    {
        winObj.location.href = action + "?" + str;
    }
    else winObj.location.href = action;

	for(var i=0 ; i<document.frm.elements.length ; i++)
    {
        var obj = document.frm.elements[i];
		if(obj.disabled2) 
		{
			obj.disabled = true;
		}
		
		if(obj.tagName == "INPUT") 
		{
			if(obj.getAttribute("MONEY") != null) obj.value = makeComma(obj.value);
		}
	}
}

function submitForm2(target, action, is_get)
{
	var formObj = frm;
	target = nvl(target, "_self");

	frm.target = target;
	frm.action = action;
	for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
		if(obj.disabled) 
		{
			obj.disabled = false;
			obj.disabled2 = true;
		}
		
		if(obj.tagName == "INPUT")
		{
			if(obj.getAttribute("MONEY") != null) obj.value = remove(obj.value, ",");
		}
	}

	if(is_get == true) frm.method = "get";
	else frm.method = "post";
    //alert(frm.method);
	
	frm.submit();

	for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
		if(obj.disabled2) 
		{
			obj.disabled = true;
		}
		
		if(obj.tagName == "INPUT") 
		{
			if(obj.getAttribute("MONEY") != null) obj.value = makeComma(obj.value);
		}
	}
}

/**
	sysId : System ID ?????? ??(Worker? ???? ??)
	pgmId : ???? ?? ??? ???(????? ?????) JSP? HTML???.
		Web Container? ??? Context? ???? ????? ??.
		???(.jsp)? ???? ??.
	worker : bizentpia.sysId.worker ???? ???.
		???(.class)? ???? ??.
*/
function submitForm(target, sysId, pgmId, worker, is_redirect)
{
	var formObj = frm;

	target = nvl(target, "_self");
	formObj.target = target;

	frm.sysId.value = sysId;
	frm.pgmId.value = pgmId;
	frm.action = document.all["document_root"].innerHTML + "servlet.biz";
	frm.worker.value = nvl(worker, "");

	if(is_redirect) frm.pageMethod.value = "redirect";
	else frm.pageMethod.value = "forward";

	for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
		if(obj.disabled) 
		{
			obj.disabled = false;
			obj.disabled2 = true;
		}
		
		if(obj.tagName == "INPUT") 
		{
			if(obj.getAttribute("MONEY") != null) obj.value = remove(obj.value, ",");
		}
	}
	
	formObj.submit();

	for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
		if(obj.disabled2) 
		{
			obj.disabled = true;
		}
		
		if(obj.tagName == "INPUT") 
		{
			if(obj.getAttribute("MONEY") != null) obj.value = makeComma(obj.value);
		}
	}
}


function openModalCalendar(test, root)
{
   if(navigator.userAgent.indexOf("MSIE") != -1)
   {
	   if(test.disabled) return;
     xpos  		= event.screenX-155;
     ypos  		= event.screenY+10;
     var ret 	= window.showModalDialog(root + "inc/calendar.jsp?fieldvalue="+test.value,"c1", 'dialogHeight:255px;dialogWidth:220px;status:yes; help:no; scroll:no; center:yes');
     if (ret)
     	test.value = ret;
   }
}

/**
	???? ???? byte?? ??.
*/
function getStrBytes(val)
{
      // ???? ???? escape() ? ???? ????.
      // ??? ??? ? ????(?? ?)? ????? %uxxxx? ????.
      var temp_estr = escape(val);
      var s_index   = 0;
      var e_index   = 0;
      var temp_str  = "";
      var cnt       = 0;

      // ??? ??? ????? ?? ????? ??? ??.
      while ((e_index = temp_estr.indexOf("%u", s_index)) >= 0)  // ??? ???? ?????
      {
        temp_str += temp_estr.substring(s_index, e_index);
        s_index = e_index + 6;
        cnt ++;
      }

      temp_str += temp_estr.substring(s_index);

      temp_str = unescape(temp_str);  // ?? ???? ???.

      // ????? 2??? ? ???? ???? 1???? ????.
      return ((cnt * 2) + temp_str.length);
}

/**
	??? ??? ???
	no_msg
		true : ??? ???..., ????? ?????? ?? ??? ?? ???? ?? ??.
		false || null : ???? ??? ?? ??? ???? ???.
*/
function checkLogin(no_msg)
{
	if(login.document.frm == null)
	{
		if(no_msg != true) alert("??? ?? ????. ???? ?? ??????.");
		return;
	}
	
	if(login.document.frm.is_login.value != "true")
    {
        if(no_msg != true) alert("??? ?? ??????");
        //submitForm2("_self", frm.document_root.value + "member/login.jsp");
        return false;
    }
	return true;
}


// WISE ????(???)?? ?? ??? XML??? ??????.
// ??? ORDER?? ??? ??? ??? ??, ORDER??? 1??? ?? ??? ????? ??.
function getXml()
{
	var str = "<?xml version=\"1.0\" encoding=\"euc-kr\"?>\n";
    str += "<info>\n";
    for(var i=0 ; i<frm.elements.length ; i++)
    {
        var obj = frm.elements[i];
        if(obj.getAttribute("ORDER") == null) continue;
        if(obj.name == "") continue;

        var name = obj.name;
        var value = obj.value;
        var postfix = nvl(obj.getAttribute("POSTFIX"), "");
        var prefix = nvl(obj.getAttribute("PREFIX"), "");
        var order = nvl(obj.getAttribute("ORDER"), "");
        str += "    <field name=\"" + name + "\"";
        str += " prefix=\"" + prefix + "\"";
        str += " postfix=\"" + postfix + "\" order=\"" + order + "\">";
        str += "<![CDATA[\n";
        str += value;
        str += "\n]]>";
        str += "</field>\n";
    }
    str += "</info>\n";

	return str;
}


function printSubSwf(web_root, index)
{
    var swf = "serv" + index + ".swf";
    if(index == 8) swf = "serv7.swf";

    document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="771" HEIGHT="121">                    <PARAM NAME="movie" VALUE="../fla/' + swf + '">                    <PARAM NAME="quality" VALUE="high">                    <param name="wmode" value="transparent">                     <EMBED SRC="../fla/' + swf + '" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="771" HEIGHT="121"></EMBED>                </OBJECT>');
}

function printSwf2(url, width, height) {

	document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
	document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'");
	document.write("WIDTH='"+width+"' HEIGHT='"+height+"' id='main' ALIGN='left'>");
	document.write("<PARAM NAME=movie VALUE='"+url+"'>");
	document.write("<PARAM NAME=quality VALUE=high>");
	document.write("<PARAM NAME=scale VALUE=noscale>");
	document.write("<PARAM NAME=salign VALUE=LT>");
	document.write("<PARAM NAME=wmode VALUE=transparent>");
	document.write("<PARAM NAME=bgcolor VALUE=#FFFFFF>");
	document.write("<EMBED src='../indexfiles/"+url+"' quality=high scale=noscale salign=LT wmode=transparent bgcolor=#FFFFFF  WIDTH='"+width+"' HEIGHT='"+height+"' NAME='main' ALIGN='left'");
	document.write("TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>");
}

function printSwf(src, width, height , addParams)
{
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
    document.writeln('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.writeln('width="' + width + '" height="' + height + '" align="middle">');
    document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
    document.writeln('<param name="movie" value="' + src + '" />');
    document.writeln('<param name="wmode" value="transparent" />');
    document.writeln('<param name="quality" value="high" />');
    document.writeln('<param name="bgcolor" value="#ffffff" />');

    if(addParams != null)
    {
        for(var i=0 ; i<addParams.length ; i++)
        {
            document.writeln(addParams[i]);
        }
    }

    document.writeln('<embed src="' + src + '" quality="high" bgcolor="#ffffff" wmode=transparent width="' + width + '" height="' + height + '" name="menu_navi" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.writeln('</object>');
}

function go_swf1_menu(index)
{
    var href = "";
    if(index == 1) href = "intro/way.jsp";
    else if(index == 2) href = "intro/med_gui.jsp";
    else if(index == 3) href = "reserv/reserv.jsp";

    if(href != "") location.href = href;
}


/**
	?? ??? ??
*/
function mainNav(pNum1) {
 var pTargetURL = "";
 pNum1 = parseNumber(pNum1);
 
  switch(pNum1) {
	
  //????
  case 1:
   pTargetURL = "consulting/online.jsp"; break;
  case 11:
   pTargetURL = "consulting/online.jsp"; break;
  case 12:
   pTargetURL = "consulting/private_list.jsp"; break;
  case 13:
   pTargetURL = "consulting/cost.jsp"; break;
  case 14:
   pTargetURL = "consulting/phone_con.jsp"; break;
  case 15:
   pTargetURL = "consulting/after_list.jsp"; break;
  case 16:
   pTargetURL = "consulting/con_tip.jsp"; break;
    
  //?????
  case 2:
   pTargetURL = "reserv/reserv.jsp"; break;
  case 21:
   pTargetURL = "reserv/reserv.jsp"; break;
  case 22:
   pTargetURL = "reserv/reserv_list.jsp"; break;
  case 23:
   pTargetURL = "reserv/after_list.jsp"; break;
   
  //???? 
  case 3:
   pTargetURL = "information/face_01.jsp"; break;
  case 31:
   pTargetURL = "information/face_01.jsp"; break;
  case 32:
   pTargetURL = "information/jr.jsp"; break;
  case 33:
   pTargetURL = "information/eye02.jsp"; break;
  case 34:
   pTargetURL = "information/nose01.jsp"; break;
  case 35:
   pTargetURL = "information/bto.jsp"; break;
  case 36:
   pTargetURL = "information/other01.jsp"; break;
   
  //?????
  case 4:
   pTargetURL = "service/virtual_list.jsp"; break;
  case 41:
   pTargetURL = "service/virtual_list.jsp"; break;
  case 42:
   pTargetURL = "service/3d_01.jsp"; break;
  case 43:
   pTargetURL = "service/sms.jsp"; break;
  case 44:
   pTargetURL = "service/self_01.jsp"; break;
    
  //??? 
  case 5:
   pTargetURL = "data/data_main.jsp"; break;
  case 51:
   pTargetURL = "data/data_main.jsp"; break;
  case 52:
   pTargetURL = "data/data_main02.jsp"; break;
  case 53:
   pTargetURL = "data/data_main03.jsp"; break;
   
  //?????
  case 6:
   pTargetURL = "special/sp_main.jsp"; break;
  case 61:
   pTargetURL = "special/sp_main.jsp"; break;
  case 62:
   pTargetURL = "special/jr_ce_01.jsp"; break;
  case 63:
   pTargetURL = "special/skin_01.jsp"; break;
   
  //????
  case 7:
   pTargetURL = "intro/hos_intro.jsp"; break;
  case 71:
   pTargetURL = "intro/hos_intro.jsp"; break;
  case 72:
   pTargetURL = "intro/hos_intro_01.jsp"; break;
  case 73:
   pTargetURL = "intro/med_gui.jsp"; break;
  case 74:
   pTargetURL = "intro/in_view.jsp"; break;
  case 75:
   pTargetURL = "intro/way.jsp"; break;
  case 76:
   pTargetURL = "intro/notice_list.jsp"; break;


  case 0:
   pTargetURL = "index.asp"; break;
  
 }
 if( pTargetURL != "" ) {
  document.location.href = document.all["document_root"].innerHTML + pTargetURL;
 }
}



