function LotteimallCoupon(){
		window.open("http://www.lotteimall.com/linkshop/CouponPop.jsp?code=2009120376&arg=2074935","coupon","width=420,height=300,left=100,top=100,scrollbars=no,resizable=no");
	}
	function cjmallCoupon(){
		window.open("http://www.cjmall.com/event/front/coupon/couponDownRst.jsp?offer_cd=R000000000063823&url=http://wizwid.cjmall.com/CSW/handler/wizwid/cj/MainView-Start","coupon","");
	}	
// ÃßÃµ ¸ÞÀÏ º¸³»±â ½ÃÀÛ
	function mailSendChk(defaultUrl, LoginReturnURL){
		alert('·Î±×ÀÎ ÈÄ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
		document.location.replace(defaultUrl+"/Login-Start?LoginReturnURL="+LoginReturnURL);
	}	
//»óÇ°Æò ±ÛÀÚÃ¼Å©
	function calculate_msglen(){
		var nbytes = 0;
	        var message = document.myform2.Content.value;
		for (i=0; i<message.length; i++) {
			var ch = message.charAt(i);
			if(escape(ch).length > 4) {
				nbytes += 2;
			} else if (ch == '\n') {
				if (message.charAt(i-1) != '\r') {
					nbytes += 1;
				}
			} else if (ch == '<' || ch == '>') {
				nbytes += 4;
			} else {
				nbytes += 1;
			}
		}
		if(nbytes > 1200) {
			alert("³»¿ëÀÇ ÀÔ·Â°¡´ÉÇÑ ±ÛÀÚ¼ö¸¦ ÃÊ°úÇß½À´Ï´Ù.");
			return false;
		} else {
		        return true;
		}
	}	
	function checkMMSBytes(form, max_length){
		var body_length = getLength(form.Content.value);
		if(body_length > max_length){
			alert(max_length + "bytes ÀÌ»ó ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù.");
			form.Content.value = stringCut(form.Content.value, max_length);
			body_length		   = getLength(form.Content.value);
		}
		form.msg_size.value = body_length;
	}	
/*******************************************************************************
* ¹®ÀÚ¿­ ±æÀÌ¸¦ ¸®ÅÏÇÑ´Ù.**/
	function getLength(str){
		var length = 0;
		for (i=0; i<str.length; i++) {
			var ch = str.charAt(i);
			if(escape(ch).length > 4) {
				length += 2;
			} else if (ch == '\n') {
				if (str.charAt(i-1) != '\r') {
					nbytes += 1;
				}
			} else if (ch == '<' || ch == '>') {
				length += 4;
			} else {
				length += 1;
			}
		}
		return length;
	}		
/*******************************************************************************
* »óÇ°Æò º¸±â ½ºÅ©¸³Æ®**/
		function viewContent(n, reteSize)	{
			for(var i = 0; i < parseInt(reteSize); i++) {
				obj_C = document.getElementById('content'+i);
				if(obj_C == null || obj_C == undefined) continue;
				if ( n == i ) {
					if(obj_C.style.display=='block'){
						obj_C.style.display = "none";
					}else{
						obj_C.style.display = "block";
					}
				} else {
					obj_C.style.display = "none";
				}
			}
			try{
				if(document.getElementById('AttachImagefile'+n).width > 560)
					document.getElementById('AttachImagefile'+n).width = 560;
			}catch(e){}
		}
/*******************************************************************************
* »óÇ°¹®ÀÇ º¸±â ½ºÅ©¸³Æ®**/		
		function viewContentQna(n, closeYn, userId, loginId, qnaSize)	{
			if(closeYn == "02" && userId != loginId ){
				alert("ºñ°ø°³ ±ÛÀÔ´Ï´Ù.");
				return;
			}
		
			for(var i = 0; i < parseInt(qnaSize); i++) {
				obj_C = document.getElementById('contentQna'+i);
				if(obj_C == null || obj_C == undefined) continue;
				if ( n == i ) {
					if(obj_C.style.display=='block')
					{obj_C.style.display = "none";}
					else
					{obj_C.style.display = "block";}
				} else {
					obj_C.style.display = "none";
				}
			}
		}