function pyung_m2(CheckValue,ResultValue,ViewFlag, CheckFlag)

//CheckValue : ÀÔ·Â°ª
//ResultValue : º¯È¯µÇ´Â°ª
//ViewFlag : CheckValueÀÔ·ÂÇüÅÂ, 0->¼Ò¼öÁ¡¾øÀ½, 2->¼Ò¼öÁ¡ÀÖÀ½
//CheckFlag : 1-> ÆòÇü¿¡¼­ ¸éÀûº¯È¯, 2->¸éÀû¿¡¼­ ÆòÇüº¯È¯
	
{
	if(CheckValue.value != "") {
		
		if (CheckValue.value == "0") {			
			ResultValue.value = 0;
			ResultValue.focus();
			return;
		}
		
		if (document.getElementById("hdnStartFocus")) {
			if (CheckValue.name == "" || ResultValue.value == "")
				document.getElementById("hdnStartFocus").value = CheckValue.name;
			else if (document.getElementById("hdnStartFocus").value == "") {
				document.getElementById("hdnStartFocus").value = CheckValue.name;
				document.getElementById("hdnStartValue").value = CheckValue.value;
			}
			
			if (document.getElementById("hdnStartFocus").value != CheckValue.name)
			{	
				document.getElementById("hdnStartFocus").value = CheckValue.name;		
				document.getElementById("hdnStartValue").value = CheckValue.value;					
				return;
			} else {				
				if (document.getElementById("hdnStartValue").value ==CheckValue.value) {
					return;				
				} else {
					document.getElementById("hdnStartValue").value = CheckValue.value;					
				}
			}
		}
				
		var Temp_Source_Value;
		var Temp_Check_Const;		
		var Temp_Check_Point;
		var Temp_Result;
		
		var arrPyg = null;
		var arrPyg2 = null;
		var intPyg = null;
		var flPyg = null;
		
		Temp_Source_Value = CheckValue.value;
		
		if (CheckFlag =="1"){
			
			if (ViewFlag =="0"){
				
				if (Temp_Source_Value.indexOf(".") != "-1"){
					//alert("¼ýÀÚ·Î¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
					//CheckValue.value = "";
					//ResultValue.value = "";
					//return;
				}
			}
			
			Temp_Check_Point = "4";
			Temp_Check_Const = "3.3058";		
			
		} else {		
			
			Temp_Check_Point = "4";
			Temp_Check_Const = "0.3025";
			
		}
		
		var arrPyg = Temp_Source_Value.split(".");

		if (Temp_Source_Value.indexOf(".") != "-1"){
		
			intPyg = arrPyg[0];
			flPyg = arrPyg[1];
			
			flPyg = flPyg.substring(0,Temp_Check_Point)					
			Temp_Source_Value = intPyg+"."+flPyg;
		}
		else
		{
			intPyg = arrPyg[0];
			flPyg = "";
			
			Temp_Source_Value = intPyg;
		}
		
	
		ResultValue.value = replaceChar(Temp_Source_Value,',','') * Temp_Check_Const;		
		Temp_Result = ResultValue.value;
		
		if (CheckFlag =="1") {	
			Temp_Check_Point = "4";
		}
		else
		{
			Temp_Check_Point = ViewFlag;	
		}	
		
		
		arrPyg2 = Temp_Result.split(".");
		
		
		if (Temp_Result.indexOf(".") != "-1"){
			
			intPyg = arrPyg2[0];
			flPyg = arrPyg2[1];
			
			if (CheckFlag == "2" && ViewFlag =="0") {
				Temp_Result = intPyg;
			}
			else {
				flPyg = flPyg.substring(0,Temp_Check_Point)					
				Temp_Result = intPyg+"."+flPyg;
			}
		}
		else
		{
			intPyg = arrPyg2[0];
			flPyg = "";
			
			Temp_Result = intPyg;
		}
			
		ResultValue.value = CheckComma(Temp_Result , 2);
		CheckValue.value = CheckComma(Temp_Source_Value , 2);
		//ResultValue.value = Temp_Result;
		//CheckValue.value = Temp_Source_Value;
	}
	else {
		ResultValue.value = "";
		CheckValue.value = "";
	}
}
function isPointNumeric( inStr ) 
{
	if (inStr.length > 0) 
	{ 
		for (i=0; i < inStr.length; i++) {
		
			if (!(inStr.charAt(i) >= '0' && inStr.charAt(i) <= '9') && (inStr.charAt(i) !="."))  {
			return false;
		
			}
		}
		return true;
		}
	else { return false; }		    
}
function replaceChar(str, fChar,rChar) {
	var tar = '';
	var len= str.length;
	
	for (var i=0; i < len; i++){
		if (str.charAt(i) == fChar)
			tar += rChar;
		else
			tar += str.charAt(i);
	}
	return tar;
}
function CheckComma(number,check) {

	number = replaceChar(number,',','');
	number = '' + number;
	//alert(check);
	
	if (check =="1") {
		number_chk = number.substring(0,1);
		if (number_chk == "-"){
			var tmp=number.split("-");//ÀÔ·Â ¹®ÀÚ¿­À» °ø¹éÀ¸·Î ³ª´©¾î ´ãÀ½
			number_check = "-";
			number_temp = tmp[1];
			number_detail = "";
		}
		else{
			number_check = "";
			number_temp = number;
			number_detail = "";
		}
	}
	else if (check == "2") {
		if (number.indexOf(".") >= 0){	
			var tmp=number.split(".");//ÀÔ·Â ¹®ÀÚ¿­À» °ø¹éÀ¸·Î ³ª´©¾î ´ãÀ½
			number_check = "";
			number_temp = tmp[0];
			number_detail = "."+tmp[1];
		}
		else{
			number_check = "";
			number_temp = number;
			number_detail = "";
		}
		//alert(number_temp);
	}
	else if (check == "3") {
		if (number.indexOf(".") >= 0){	
			var tmp=number.split(".");//ÀÔ·Â ¹®ÀÚ¿­À» °ø¹éÀ¸·Î ³ª´©¾î ´ãÀ½
			number_check = "";
			number_temp = tmp[0];			
			number_value = tmp[1].substring(0,4);
			number_detail = "."+number_value;
		}
		else{
			number_check = "";
			number_temp = number;			
			number_detail = "";
		}
	}
	else{
		number_check = "";
		number_temp = number;
		number_detail = "";
	}
	
	
	if (number_temp.length > 3) {
		var mod = number_temp.length % 3;
		var output = (mod > 0 ? (number_temp.substring(0,mod)) : '');
		for (i=0 ; i < Math.floor(number_temp.length / 3); i++) {
		if ((mod == 0) && (i == 0))
			output += number_temp.substring(mod+ 3 * i, mod + 3 * i + 3);
		else
			output+= ',' + number_temp.substring(mod + 3 * i, mod + 3 * i + 3);
		}
		return (number_check+output+number_detail);
	}
	else 
		return number_check+number_temp+number_detail;
}
function checkNumber(){
	var objEv = event.srcElement;
	var num ="0123456789,";
	event.returnValue = true;

	for (var i=0;i<=objEv.value.length;i++)
	{
		if(-1 == num.indexOf(objEv.value.charAt(i)))
		event.returnValue = false;
	}
	
	if (!event.returnValue || objEv.value == "0" )
	{
		objEv.value="";		
		objEv.focus();
	}
}

function checkNumber2(){
	var objEv = event.srcElement;
	var num ="0123456789,-";
	event.returnValue = true;

	for (var i=0;i<=objEv.value.length;i++)
	{
		if(-1 == num.indexOf(objEv.value.charAt(i)))
		event.returnValue = false;
	}
	
	if (!event.returnValue || objEv.value == "0" )
	{
		objEv.value="";		
		objEv.focus();
	}
}
function replaceComma(frm,classes) {
	if ('apt' == classes) {
		frm.apt_price.value = replaceChar(frm.apt_price.value,',',''); //¸Å¸Å°¡
		frm.apt_lease_inprice.value = replaceChar(frm.apt_lease_inprice.value,',',''); //Àü¼¼°¡(º¸Áõ±Ý)
		frm.apt_lease_price.value = replaceChar(frm.apt_lease_price.value,',',''); //Àü¼¼°¡
		frm.apt_monthly_price.value = replaceChar(frm.apt_monthly_price.value,',',''); //¿ù¼¼°¡
		frm.apt_monthly_deposit.value = replaceChar(frm.apt_monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.apt_loan.value = replaceChar(frm.apt_loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('bunyang' == classes) {
		frm.apt_bunyang_price.value = replaceChar(frm.apt_bunyang_price.value,',',''); //ºÐ¾ç°¡
		frm.apt_premiun.value = replaceChar(frm.apt_premiun.value,',',''); //ÇÁ¸®¹Ì¾ö
		frm.apt_price.value = replaceChar(frm.apt_price.value,',',''); //¸Å¸Å°¡
		frm.apt_lease_price.value = replaceChar(frm.apt_lease_price.value,',',''); //Àü¼¼°¡
		frm.apt_monthly_price.value = replaceChar(frm.apt_monthly_price.value,',',''); //¿ù¼¼°¡
		frm.apt_monthly_deposit.value = replaceChar(frm.apt_monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.apt_loan.value = replaceChar(frm.apt_loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('capt' == classes) {
		frm.apt_price.value = replaceChar(frm.apt_price.value,',',''); //¸Å¸Å°¡
		frm.apt_lease_inprice.value = replaceChar(frm.apt_lease_inprice.value,',',''); //Àü¼¼°¡(º¸Áõ±Ý)
		frm.apt_lease_price.value = replaceChar(frm.apt_lease_price.value,',',''); //Àü¼¼°¡
		frm.apt_monthly_price.value = replaceChar(frm.apt_monthly_price.value,',',''); //¿ù¼¼°¡
		frm.apt_monthly_deposit.value = replaceChar(frm.apt_monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.apt_loan.value = replaceChar(frm.apt_loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('cbunyang' == classes) {
		frm.apt_bunyang_price.value = replaceChar(frm.apt_bunyang_price.value,',',''); //ºÐ¾ç°¡
		frm.apt_premiun.value = replaceChar(frm.apt_premiun.value,',',''); //ÇÁ¸®¹Ì¾ö
		frm.apt_price.value = replaceChar(frm.apt_price.value,',',''); //¸Å¸Å°¡
		frm.apt_lease_price.value = replaceChar(frm.apt_lease_price.value,',',''); //Àü¼¼°¡
		frm.apt_monthly_price.value = replaceChar(frm.apt_monthly_price.value,',',''); //¿ù¼¼°¡
		frm.apt_monthly_deposit.value = replaceChar(frm.apt_monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.apt_loan.value = replaceChar(frm.apt_loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('dev' == classes) {
		frm.dev_etc4.value = replaceChar(frm.dev_etc4.value,',','');//´ëÁöÆòÇü
		frm.dev_etc4m2.value = replaceChar(frm.dev_etc4m2.value,',','');//´ëÁö¸éÀû
		frm.dev_etc5.value = replaceChar(frm.dev_etc5.value,',','');//°ÇÃàÆòÇü
		frm.dev_etc5m2.value = replaceChar(frm.dev_etc5m2.value,',','');//°ÇÃà¸éÀû
		frm.dev_etc6.value = replaceChar(frm.dev_etc6.value,',','');//¿¹»ó¹èÁ¤ÆòÇü
		frm.dev_etc6m2.value = replaceChar(frm.dev_etc6m2.value,',','');//¿¹»ó¹èÁ¤¸éÀû

		frm.apt_price.value = replaceChar(frm.apt_price.value,',',''); //¸Å¸Å°¡
		frm.dev_etc1.value = replaceChar(frm.dev_etc1.value,',',''); //½ÇÅõÀÚºñ
		frm.dev_etc2.value = replaceChar(frm.dev_etc2.value,',',''); //ÀÌÁÖºñ(À¯ÀÌÀÚ)
		frm.dev_etc3.value = replaceChar(frm.dev_etc3.value,',',''); //ÀÌÁÖºñ(¹«ÀÌÀÚ)
	}else if ('officetel' == classes) {
		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.lease_inprice.value = replaceChar(frm.lease_inprice.value,',',''); //Àü¼¼°¡(º¸Áõ±Ý)
		frm.lease_price.value = replaceChar(frm.lease_price.value,',',''); //Àü¼¼°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('thouse' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//ÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//Àü¿ëÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//Àü¿ë¸éÀû
		frm.etc1.value = replaceChar(frm.etc1.value,',','');//´ëÁöÁöºÐÆòÇü
		frm.etc1m2.value = replaceChar(frm.etc1m2.value,',','');//´ëÁöÁöºÐ¸éÀû

		frm.etc2.value = replaceChar(frm.etc2.value,',','');//ÃÑ¼¼´ë¼ö

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.lease_inprice.value = replaceChar(frm.lease_inprice.value,',',''); //Àü¼¼º¸Áõ±ÝÃÑ¾×
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //¿ù¼¼º¸Áõ±ÝÃÑ¾×
		frm.lease_price.value = replaceChar(frm.lease_price.value,',',''); //Àü¼¼°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('shouse' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü(ÆòÇü)
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû(¸éÀû)
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//¿¬ÆòÇü(Àü¿ëÆòÇü)
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//¿¬¸éÀû(Àü¿ë¸éÀû)
		frm.etc1.value = replaceChar(frm.etc1.value,',','');//°ÇÃàÆòÇü
		frm.etc1m2.value = replaceChar(frm.etc1m2.value,',','');//°ÇÃà¸éÀû

		frm.etc2.value = replaceChar(frm.etc2.value,',','');//ÃÑ¼¼´ë¼ö

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.lease_inprice.value = replaceChar(frm.lease_inprice.value,',',''); //Àü¼¼º¸Áõ±ÝÃÑ¾×
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //¿ù¼¼º¸Áõ±ÝÃÑ¾×
		frm.lease_price.value = replaceChar(frm.lease_price.value,',',''); //Àü¼¼°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('otroom' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//¿¬ÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//¿¬¸éÀû
		frm.etc1.value = replaceChar(frm.etc1.value,',','');//°ÇÃàÆòÇü
		frm.etc1m2.value = replaceChar(frm.etc1m2.value,',','');//°ÇÃà¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.lease_inprice.value = replaceChar(frm.lease_inprice.value,',',''); //Àü¼¼º¸Áõ±ÝÃÑ¾×
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //¿ù¼¼º¸Áõ±ÝÃÑ¾×
		frm.lease_price.value = replaceChar(frm.lease_price.value,',',''); //Àü¼¼°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('storehouse' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//¿¬ÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//¿¬¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //º¸Áõ±ÝÃÑ¾×
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //º¸Áõ±Ý
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
		frm.monthly_manager.value = replaceChar(frm.monthly_manager.value,',',''); //°ü¸®ºñ
	}else if ('store' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//ÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//Àü¿ëÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//Àü¿ë¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.premiun.value = replaceChar(frm.premiun.value,',',''); //±Ç¸®±Ý
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //º¸Áõ±ÝÃÑ¾×
		frm.lease_price.value = replaceChar(frm.lease_price.value,',',''); //Àü¼¼°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼º¸Áõ±Ý
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
		frm.monthly_manager.value = replaceChar(frm.monthly_manager.value,',',''); //°ü¸®ºñ
	}else if ('office' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//ÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//Àü¿ëÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//Àü¿ë¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.premiun.value = replaceChar(frm.premiun.value,',',''); //±Ç¸®±Ý
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //º¸Áõ±ÝÃÑ¾×
		frm.lease_price.value = replaceChar(frm.lease_price.value,',',''); //Àü¼¼°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼º¸Áõ±Ý
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
		frm.monthly_manager.value = replaceChar(frm.monthly_manager.value,',',''); //°ü¸®ºñ
	}else if ('building' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//¿¬ÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//¿¬¸éÀû
		frm.etc1.value = replaceChar(frm.etc1.value,',','');//Àü¿ëÆòÇü
		frm.etc1m2.value = replaceChar(frm.etc1m2.value,',','');//Àü¿ë¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //º¸Áõ±ÝÃÑ¾×
		frm.lease_inprice.value = replaceChar(frm.lease_inprice.value,',',''); //Àü¼¼(º¸Áõ±Ý)ÃÑ¾×
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
		frm.monthly_manager.value = replaceChar(frm.monthly_manager.value,',',''); //°ü¸®ºñ
	}else if ('house' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//°ÇÃàÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//°ÇÃà¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //Àü¼¼º¸Áõ±ÝÃÑ¾×
		frm.rent_monthly_total.value = replaceChar(frm.rent_monthly_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼º¸Áõ±ÝÃÑ¾×
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('land' == classes) {
		frm.land_pyong.value = replaceChar(frm.land_pyong.value,',','');//´ëÁöÆòÇü
		frm.land_pyongm2.value = replaceChar(frm.land_pyongm2.value,',','');//´ëÁö¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.land_pyong_price.value = replaceChar(frm.land_pyong_price.value,',',''); //3.3058§³´ç´Ü°¡
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
	}else if ('lodging' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//¿¬ÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//¿¬¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //º¸Áõ±ÝÃÑ¾×
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
		frm.monthly_manager.value = replaceChar(frm.monthly_manager.value,',',''); //°ü¸®ºñ
	}else if ('factory' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//¿¬ÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//¿¬¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //¸Å¸Å°¡
		frm.rent_total.value = replaceChar(frm.rent_total.value,',',''); //¿ù¼¼ÃÑ¾×
		frm.deposit_total.value = replaceChar(frm.deposit_total.value,',',''); //º¸Áõ±ÝÃÑ¾×
		frm.monthly_price.value = replaceChar(frm.monthly_price.value,',',''); //¿ù¼¼°¡
		frm.monthly_deposit.value = replaceChar(frm.monthly_deposit.value,',',''); //¿ù¼¼°¡(º¸Áõ±Ý)
		frm.loan.value = replaceChar(frm.loan.value,',',''); //À¶ÀÚ±Ý
		frm.monthly_manager.value = replaceChar(frm.monthly_manager.value,',',''); //°ü¸®ºñ
	}else if ('exchange' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//´ëÁöÆòÇü
		frm.pyongm2.value = replaceChar(frm.pyongm2.value,',','');//´ëÁö¸éÀû
		frm.excarea.value = replaceChar(frm.excarea.value,',','');//°ÇÃàÆòÇü
		frm.excaream2.value = replaceChar(frm.excaream2.value,',','');//°ÇÃà¸éÀû

		frm.price.value = replaceChar(frm.price.value,',',''); //±³È¯ÃÑ°¡°Ý
		frm.loan.value = replaceChar(frm.loan.value,',',''); //±³È¯Èñ¸Á°¡°Ý
	}else if ('buysell' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//ÆòÇü1
		frm.m2.value = replaceChar(frm.m2.value,',','');//¸éÀû1
		frm.pyong_suffix.value = replaceChar(frm.pyong_suffix.value,',','');//ÆòÇü2
		frm.m2_suffix.value = replaceChar(frm.m2_suffix.value,',','');//¸éÀû2

		frm.price.value = replaceChar(frm.price.value,',',''); //Èñ¸Á¸Å¸Å°¡ ÃÖÀú
		frm.price_suffix.value = replaceChar(frm.price_suffix.value,',',''); //Èñ¸Á¸Å¸Å°¡ ÃÖ°í
		frm.price_lease.value = replaceChar(frm.price_lease.value,',',''); //Èñ¸ÁÀü¼¼°¡ ÃÖÀú
		frm.price_lease_suffix.value = replaceChar(frm.price_lease_suffix.value,',',''); //Èñ¸ÁÀü¼¼°¡ ÃÖ°í

		frm.price_monthly.value = replaceChar(frm.price_monthly.value,',',''); //Èñ¸Á¿ù¼¼°¡ ÃÖÀú
		frm.price_monthly_suffix.value = replaceChar(frm.price_monthly_suffix.value,',',''); //Èñ¸Á¿ù¼¼°¡ ÃÖ°í
		frm.price_deposit.value = replaceChar(frm.price_deposit.value,',',''); //Èñ¸Á¿ù¼¼°¡(º¸Áõ±Ý) ÃÖÀú
		frm.price_deposit_suffix.value = replaceChar(frm.price_deposit_suffix.value,',',''); //Èñ¸Á¿ù¼¼°¡(º¸Áõ±Ý) ÃÖ°í
	}else if ('invest' == classes) {
		frm.m2.value = replaceChar(frm.m2.value,',','');//¸éÀû
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//ÆòÇü

    	frm.price.value = replaceChar(frm.price.value,',',''); //Èñ¸Á¸Å¸Å°¡ ÃÖÀú
	}else if ('tender' == classes) {
		frm.apprprice_upper.value = replaceChar(frm.apprprice_upper.value,',',''); //°¨Á¤Æò°¡¾×
		frm.apprprice_lower.value = replaceChar(frm.apprprice_lower.value,',',''); //ÃÖÀú°æ¸Å°¡

	}else if ('forge' == classes) {
		frm.pyong.value = replaceChar(frm.pyong.value,',','');//ÆòÇü1
		frm.m2.value = replaceChar(frm.m2.value,',','');//¸éÀû1
		frm.pyong_suffix.value = replaceChar(frm.pyong_suffix.value,',','');//ÆòÇü2
		frm.m2_suffix.value = replaceChar(frm.m2_suffix.value,',','');//¸éÀû2

		frm.price.value = replaceChar(frm.price.value,',',''); //Èñ¸Á¸Å¸Å°¡ ÃÖÀú
		frm.price_suffix.value = replaceChar(frm.price_suffix.value,',',''); //Èñ¸Á¸Å¸Å°¡ ÃÖ°í

	}
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Robert Nyman | http://www.robertnyman.com */
/*
    GLT is developed by Robert Nyman, http://www.robertnyman.com
    For more information and copyright information,
please see http://www.robertnyman.com/glt


var GLT = {
    // Customization parameters
    titleClassName : "all-tle",
	//top,bottom-images
    topImagePath : null,
    bottomImagePath : null,
    suppressAltTooltipsInIE : true,
    timeBeforeShow : 100,
    
    //Ç³¼±µµ¿ò¸» À§Ä¡ ÁöÁ¤
    titleOffsetX : 10, //xÃà ÁÂÇ¥°ª ÁöÁ¤
    titleOffsetY : 0, //yÃà ÁÂÇ¥°ª ÁöÁ¤

    //ÆäÀÌµåÀÎ¾Æ¿ô È¿°ú ¼³Á¤
    fadeInTitle : true,
    fadeOutTitle : true,
    fadeStartLevel : 0.5,
    originalFadeLevel : 0.9,
    fadeIncrement : 0.1,
    timePerFadeStep : 50,

    // GLT parameters
    titleElm : null,
    titleTextElm : null,
    titleTopImage : null,
    titleBottomImage : null,
    elementsWithTitles : null,
    currentElm : null,
    currentTitle : "",
    currentFadeLevel : 0,
    fadeTimer : null,

    init : function (){
        if(document.getElementById){
            this.elementsWithTitles = getElementsByAttribute(document, "*", "title");
            if(this.elementsWithTitles.length > 0){
                this.titleElm = document.createElement("div");
                this.titleElm.className = this.titleClassName;
                if(this.topImagePath){
                    this.titleTopImage = document.createElement("img");
                    this.titleTopImage.setAttribute("src", this.topImagePath);
                    this.titleElm.appendChild(this.titleTopImage);
                }
                this.titleTextElm = document.createElement("p");
                this.titleElm.appendChild(this.titleTextElm);
                if(this.bottomImagePath){
                    this.titleBottomImage = document.createElement("img");
                    this.titleBottomImage.setAttribute("src", this.bottomImagePath);
                    this.titleElm.appendChild(this.titleBottomImage);
                }
                document.body.appendChild(this.titleElm);
                this.useMSFilter = typeof this.titleElm.style.filter != "undefined";
                this.applyEvents();
            }
        }
    },

    applyEvents : function (){
        var oElm;
        var strClassName;
        for(var i=0; i<this.elementsWithTitles.length; i++){
            oElm = this.elementsWithTitles[i];
            if(this.suppressAltTooltipsInIE){
                oElm.setAttribute("alt", "");
            }
            oElm.onmouseover = GLT.mouseOverElm;
            oElm.onmouseout = GLT.mouseOutElm;
        }
        if(this.clickDocumentToClearFocus){
            this.addEvent(document, "click", function(){FaT.clearFocus();}, false);
        }
    },

    mouseOverElm : function (oEvent){
        var oEvent = (typeof oEvent != "undefined")? oEvent : event;
        if(typeof GLT != "undefined"){
            GLT.startTimer(this, oEvent);
            oEvent.cancelBubble = true;
            oEvent.returnValue = false;
            if(oEvent.stopPropagation){
                oEvent.stopPropagation();
            }
        }
    },

    mouseOutElm : function (oEvent){
        var oEvent = (typeof oEvent != "undefined")? oEvent : event;
        if(typeof GLT != "undefined"){
            GLT.hideTitle(this, oEvent);
        }
    },

    startTimer : function (oElm, oEvent){
        if(!this.currentElm || this.currentElm != oElm || this.fadeTimer > 0){
            if(this.fadeTimer){
                clearTimeout(this.fadeTimer);
            }
            if(this.currentElm){
                this.hideTitle(null, false, true);
            }
            this.currentElm = oElm;
            this.currentTitle = this.currentElm.getAttribute("title");
            this.currentElm.setAttribute("title", "");
            this.currentX = oEvent.clientX;
            this.currentY = oEvent.clientY;
            this.fadeTimer = setTimeout("GLT.showTitle()", GLT.timeBeforeShow);
        }
    },

    stopTimer : function (oElm){
        clearTimeout(GLT.fadeTimer);
    },

    showTitle : function (){
        this.setTitlePos();
        this.titleTextElm.innerHTML = this.currentTitle;
        this.titleElm.style.visibility = "visible";
        if(this.fadeInTitle){
            this.currentFadeLevel = this.fadeStartLevel;
            this.fadeIn();
        }
    },

    hideTitle : function (oElm, oEvent, forceHide){
        if(this.currentElm && (oElm || forceHide)){
            var bIsChildOfCurrentElm = false;
            if(typeof oEvent != "undefined" && typeof oEvent == "object"){
                var oEventTarget = (typeof oEvent.relatedTarget != "undefined")? oEvent.relatedTarget : oEvent.toElement;
                if(oEventTarget){
                    while(!bIsChildOfCurrentElm && oEventTarget && oEventTarget.nodeName && oEventTarget.nodeName.search(/body/i) == -1){
                        if(oEventTarget == oElm){
                            bIsChildOfCurrentElm = true;
                            break;
                        }
                        oEventTarget = oEventTarget.parentNode;
                    }
                }
            }
            if(!bIsChildOfCurrentElm){
                this.stopTimer();
                if(this.fadeOutTitle && (typeof forceHide == "undefined" || !forceHide)){
                    this.fadeOut();
                }
                else{
                    clearTimeout(this.fadeTimer);
                    this.currentElm.setAttribute("title", this.currentTitle);
                    this.currentElm = null;
                    this.titleElm.style.visibility = "hidden";
                }
            }
        }
    },

    setTitlePos : function (){
        var arrScroll = this.getWinSizeAndScroll();
        var intTitleElmWidthAndPos = this.titleElm.offsetWidth + this.currentX + this.titleOffsetX;
        var intDiff = intTitleElmWidthAndPos - arrScroll[0];
        var intX = (intDiff > 0)? (this.currentX - intDiff) : (this.currentX + this.titleOffsetX);
        this.titleElm.style.left = intX + arrScroll[2] + "px";
        this.titleElm.style.top = this.currentY + arrScroll[3] + this.titleOffsetY + "px";
    },

    fadeIn : function (fadeOut){
        this.currentFadeLevel = this.currentFadeLevel + this.fadeIncrement;
        if(this.currentFadeLevel < this.originalFadeLevel){
            this.fadeTimer = setTimeout("GLT.fadeIn()", GLT.timePerFadeStep);
        }
        else{
            this.currentFadeLevel = this.originalFadeLevel;
            clearTimeout(this.fadeTimer);
        }
        this.setFade();
    },

    fadeOut : function (){
        this.currentFadeLevel = this.currentFadeLevel - this.fadeIncrement;
        if(this.currentFadeLevel > this.fadeStartLevel){
            this.fadeTimer = setTimeout("GLT.fadeOut()", GLT.timePerFadeStep);
        }
        else{
            this.currentFadeLevel = this.originalFadeLevel;
            this.hideTitle(null, false, true);
        }
        this.setFade();
    },

    setFade : function (){
        // This line is b/c of a floating point bug in JavaScript
        this.currentFadeLevel = Math.round(this.currentFadeLevel * 10) / 10;
        if(this.titleElm){
            if(this.useMSFilter){
                this.titleElm.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + (this.currentFadeLevel * 100) + ")";
            }
            else{
                this.titleElm.style.opacity = this.currentFadeLevel;
            }
        }
    },

    getWinSizeAndScroll : function (){
        var intWidth = document.body.offsetWidth;
        var intHeight = (typeof window.innerHeight != "undefined")? window.innerHeight : (document.documentElement && document.documentElement.clientHeight > 0)? document.documentElement.clientHeight : document.body.clientHeight;
        var intXScroll = (typeof window.pageXOffset != "undefined")? window.pageXOffset : document.body.scrollLeft;
        var intYScroll = (typeof window.window.pageYOffset != "undefined")? window.window.pageYOffset : (document.documentElement && document.documentElement.scrollTop > 0)? document.documentElement.scrollTop : document.body.scrollTop;
        return [intWidth, intHeight, intXScroll, intYScroll];
    },

    closeSession : function (oEvent){
        this.removeEvent(window, "load", function(){GLT.init();}, false);
        GLT = null;
        delete GLT;
    },

    addEvent : function (oObject, strEvent, oFunction, bCapture){
        if(oObject){
            if(oObject.addEventListener){
                oObject.addEventListener(strEvent, oFunction, bCapture);
            }
            else if(window.attachEvent){
                oObject.attachEvent(("on" + strEvent), oFunction)
            }
        }
    },

    removeEvent : function (oObject, strEvent, oFunction, bCapture){
        if(oObject){
            if(oObject.removeEventListener){
                oObject.removeEventListener(strEvent, oFunction, false);
            }
            else if(window.detachEvent){
                oObject.detachEvent(("on" + strEvent), oFunction)
            }
        }
    }
};
// ---
GLT.addEvent(window, "load", function(){GLT.init();}, false);
// ---
// Utility functions
// ---
function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue){
    var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
    var arrReturnElements = new Array();
    var oAttributeValue = (typeof strAttributeValue != "undefined")? new RegExp("(^|\\s)" + strAttributeValue + "(\\s|$)") : null;
    var oCurrent;
    var oAttribute;
    for(var i=0; i<arrElements.length; i++){
        oCurrent = arrElements[i];
        oAttribute = oCurrent.getAttribute && oCurrent.getAttribute(strAttributeName);
        if(typeof oAttribute == "string" && oAttribute.length > 0){
            if(typeof strAttributeValue == "undefined" || (oAttributeValue && oAttributeValue.test(oAttribute))){
                arrReturnElements.push(oCurrent);
            }
        }
    }
    return arrReturnElements;
}
// ---
if(typeof Array.prototype.push != "function"){
    Array.prototype.push = ArrayPush;
    function ArrayPush(value){
        this[this.length] = value;
    }
}
*/