//¼ýÀÚ¸¦ ÄÞ¸¶ Âï¾î¼­
String.prototype.comma = function(){
	tmp = this.split('.');
	var str = new Array();
	var v = tmp[0].replace(/,/gi,'');
	for (var i=0; i<=v.length; i++){
		str[str.length] = v.charAt(v.length-i);
		if (i%3==0 && i!=0 && i!=v.length){
			str[str.length]='.';
		}
	}
	str = str.reverse().join('').replace(/\./gi,',');
	return (tmp.length==2) ? str+'.'+tmp[1] : str;
}

function chargeMoney(){
	window.open("/member/inipay/chargeplugincheck.asp", "cymoney", "width=620, height=595, scrollbars=yes, toolbar=no");
}


function viewMoney(id){
	window.open("/member/charge.asp?oid="+id, "cymoney", "width=620, height=595, scrollbars=yes, toolbar=no");
}

function viewOrder(odx){
	window.open("/member/myorderview.asp?odx="+ odx, "oview", "width=620, height=600, menubar=no, toolbar=no,scrollbars=yes");
}


function receiptView(tid){
	var receiptUrl = "https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid=" + tid + "&noMethod=1";
	window.open(receiptUrl,"receipt","width=430,height=700, scrollbars=yes,resizable=yes");
}


function billtypechange(val){
	if (val == "CBank"){
		document.getElementById("spn_bank").style.display = "block";
	}
	else if (val == "VBank"){
		document.getElementById("spn_bank").style.display = "none";
		document.getElementById("hdnmid").value = document.getElementById("escrowID").value;
	}
	else {
		document.getElementById("spn_bank").style.display = "none";
		document.getElementById("hdnmid").value = document.getElementById("mymallID").value;
	}
}

//¿¡½ºÅ©·Î ¼­ºñ½º Ãß°¡ Á¦°Å (°¡°Ý, ¸®½ºÆ®°³Ã¼)
function escroAddDel(price, lst){
	
}

