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];}}
}

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;
}

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];}
}

//¹®ÀÚ¿­À» ÀÚ¸¥ÈÄ post°ªÀÌ ÀÖÀ¸¸é ºÙÀÌ°í ¾øÀ¸¸é ...À» ºÙÈù´Ù.
function cutStr(str,limit, post)
{
    if(post == null) post = "...";

    if(str.length > limit)
    {
        str = str.substring(0, limit-post.length);
        str = str + post;
    }

    return str;

}

function chr_byte(chr)
{
	if(escape(chr).length > 4)
	{
		return 2;
	}
	else
	{
		return 1;
	}
}

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 getDateStr2(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");

}

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;
}


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, index, is_event)
{
	if(obj == null) return false;

	if(obj.length == undefined)
	{
		if(is_event) obj.click();
		else obj.checked = true;
		return;
	}

	if(is_event) obj[index].click();
	else 
	{
		obj[index].checked = true;
	}
	
}

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("Invalidate Number");
		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.getElementById(name).innerHTML = text;
}

function getDisplay(name)
{
	var obj = document.getElementById(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 = window.documentRoot + "inc/modal.php?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.getElementById(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.getElementById(name);
	
	obj.style.display = display;
}

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;
	}
}

function setSelectValue(obj, value)
{
    for(var i=0 ; i<obj.options.length ; i++)
    {
        if(obj.options[i].value == value) 
        {
            obj.selectedIndex = i;
            break;
        }
    }
}


/************************************************************

	Starting Script Framework

************************************************************/
if(document.all != null)
{
    window.browser = "IE";
    window.IE = true;
}
else 
{
    window.browser = "FF";
    window.FF = true;
}

function _blur()
{
    this.blur();
}

/**
	TEXTFIELD(INPUT TYPE=text) Attribute 
	- MONEY : 
	- NUMBER : 
	- NUMBER2 : (-)(.)
	- RIGHT : 
	- CENTER : 
	- DATE : 
	- ENG : disable ime-mode
*/
function init()
{   
	//if(document.getElementById("aus_content") != null) window.clipboardData.setData("text", document.getElementById("aus_content").innerText);

	for(var i=0 ; i<document.links.length ; i++)
	{
		document.links[i].onfocus = _blur;
	}

    for(var i=0 ; i<document.links.length ; i++)
    {
        //alert(document.links.length);
        document.links[i].hideFocus = true;
    }
	

	if(window._init) window._init();
    if(window._init2) window._init2();  
	
	for(var i=0 ; i<document.images.length ; i++)
    {
        var img = document.images[i];
        if(img.name.indexOf("list_img") < 0) continue;

        img.w = img.width;
        img.h = img.height;
        var max = 460;
        
        if(img.width >= max) 
        {
            img.width = max;
        }
        
        img.onclick = _preview_img;
        img.style.cursor = "hand";
    }

	if(document.getElementById("content_view") != null)
	{	
		var imgs = document.getElementById("content_view").getElementsByTagName("img");
		var maxWidth = 460;

		for (var i=0; i<imgs.length; i++) 
		{
			var w = remove(imgs[i].style.width, "px");
			if(w == "") w = imgs[i].width;
			w = parseNumber(w);
			//alert(w);
			if(w > maxWidth)
			{
				imgs[i].style.width = maxWidth + "px";
				imgs[i].onclick = _preview_img;
				imgs[i].style.cursor = "hand";
			}			
		}
	}
    

	var align = "";
	if(document.frm == null || document.frm.elements == null) return;

    for(var i=0 ; i<document.frm.elements.length ; i++)
    {
        obj = document.frm.elements[i];
		
		if(obj.tagName == "INPUT") 
		{
            if(window.FF) obj.setAttribute('autocomplete','off');

			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 = "Input Format 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 = null;
    
    if(window.browser == "FF")
    {
        obj = event.currentTarget;
    }
    else
    {
        var event = window.event;
        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(window.documentRoot +"inc/image_pop.php?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='" + src + "' BORDER=0></A>");
	//w.document.writeln("</BODY></HTML>");
}

function callAlertBox()
{
    var msg = "";
    if(document.getElementById("message") != null) msg = document.getElementById("message").innerHTML;
    if(msg != "") 
    {
        alert("Sorry. Error!!!");
        //alert(msg);
    }
    
    if(document.frm == null) return true;

    if(document.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 = null;
    
    if(window.browser == "FF")
    {
        obj = event.currentTarget;
    }
    else
    {
        var event = window.event;
        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(event)
{
	var obj = null;
    
    if(window.browser == "FF")
    {
        obj = event.currentTarget;
    }
    else
    {
        event = window.event;
        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(event);
			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(event)	
{
	var obj = null;
    if(window.browser == "IE") 
    {
        event = window.event;
        obj = event.srcElement;
    }
    else obj = event.currentTarget;

	_onenterdown1(obj);
	_onenterdown2(obj);

	if(obj.type == "text" || obj.type == "password") 
	{
		event.returnValue = false;
		return;
	}
}

function _onblur(event)
{
    var obj = null;
    if(window.IE) 
    {
        event = window.event;
        obj = event.srcElement;
    }
    else obj = event.currentTarget;
    
    if(obj == null) return;
       
	_onblur1(obj);
	_onblur2(obj);
}

var preValue;
function _onfocus(event)
{
	var obj = null;
    
    if(window.browser == "FF") obj = event.currentTarget;
    else 
    {
        event = window.event;
        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) document.frm.encoding = "";
	else document.frm.encoding = "multipart/form-data";
}

function submitForm2(winObj, action)
{
	var frm = document.frm;
	if(winObj == null) 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 submitForm(target, action)
{
	var formObj = document.frm;
	target = nvl(target, "_self");

	document.frm.target = target;
	document.frm.action = action;
	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, ",");
		}
	}

	document.frm.method = "post";
	
	document.frm.submit();

	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);
		}
	}
}

var selectedDateInputObject = null;
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.php?fieldvalue="+test.value,"c1", 'dialogHeight:255px;dialogWidth:220px;status:yes; help:no; scroll:no; center:yes');
        if (ret) test.value = ret;
    }
    else
    {
        selectedDateInputObject = test;
        openPopup(root + "inc/calendar.php?fieldvalue="+test.value, "c1", 235, 220);
    }
}

function setClickedCalendar(value)
{
    selectedDateInputObject.value = value;
}


function getStrBytes(val)
{

      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);

      return ((cnt * 2) + temp_str.length);
}


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 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 printSwfPlay(src, width, height, id)
{
	//alert("11");
    if(id == null) id = "my_swf";
    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 + '" id="' + id + '" align="middle">');
    document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
    document.writeln('<param name="movie" value="' + src + '" />');
    document.writeln('<param name="quality" value="high" />');
    document.writeln('<param name="wmode" value="transparent" />');
    document.writeln('<embed src="' + src + '" quality="high" bgcolor="#ffffff" 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 openImage(url)
{
    openPopup2(window.documentRoot + "inc/image_pop.php?src=" + url, "img_preview", 100, 100, 30, 0, "yes", "yes");
}


function removeTag(xStr)
{
    var regExp = /<\/?[^>]+>/gi;
    xStr = xStr.replace(regExp,"");
    return xStr;
}

var deniedStrs = new Array(
    "--", "/*", "*/", "%", "<script"
);
function checkDeninedStr(str)
{
    for(var i=0 ; i<deniedStrs.length ; i++)
    {
        if(str.indexOf(deniedStrs[i].toLowerCase()) >= 0)
        {
            return false;
        }
    }

    return true;
}

function isImageFilename(filename)
{
    var extend = getExtend(filename).toLowerCase();

    if(extend == "gif" || extend == "jpg" || extend == "jpeg" || extend == "bmp") return true;
    else return false;
}

function submitForm3(winObj, action)
{
	var frm = document.frm;
	if(winObj == null) 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);
		}
	}
}
/*
//¿À¸¥ÂÊ ¸¶¿ì½º Å¬¸¯ ¾È µÇ°Ô ÇÏ´Â°Å~
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS) 
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler()
{
  if(EnableRightClick==1){ return true; }
  else {return false; }
}

function mousehandler(e)
{
  if(EnableRightClick==1){ return true; }
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) return false;
}

function keyhandler(e) 
{
  var myevent = (isNS) ? e : window.event;
  if (myevent.keyCode==96)
    EnableRightClick = 1;
  return;
}

document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;

*/































