<!--SMS È®ÀÎ -->
function IsNumber(formname){
   var form=eval("document.form."+formname);
   for(var i=0;i<form.value.length;i++){
      var chr=form.value.substr(i,1);
      if(chr<'0' || chr>'9'){
         return false;
      }
   }
   return true;
}

function check1(form){
      if(form.sms[0].checked == true){
		  if(form.mobile2.value=="" ||form.mobile3.value=="" ){
			alert("SMS ¼­ºñ½º¸¦ ¹ÞÀ¸½Ã·Á¸é ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			form.mobile2.focus();
			return false;
		  }
		  if(!IsNumber(form.mobile2.name)){
			alert("ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¿©¾ß ÇÕ´Ï´Ù");
			form.mobile2.focus();
			return false;
		}
		if(!IsNumber(form.mobile3.name)){
			alert("ÇÚµåÆù¹øÈ£´Â ¼ýÀÚ¿©¾ß ÇÕ´Ï´Ù");
			form.mobile3.focus();
			return false;
		}
      }
      return true;
}

<!--¿Â¶óÀÎ °áÁ¦ -->
function check2(form){
      if(!form.money_name.value){
          alert("ÀÔ±ÝÀÎ ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä");
          form.money_name.focus();
          return false;
      }
      else{
          return true;
      }
    }

<!--card°áÁ¦-->
var child = null;
var count = 0;

function openPayWin(cash_num) {
	var url;
	var base = "https://smartpay.lg.co.kr:8443/cgi-bin/epp_order_010.cgi?";  
	var sParam = "";
	var winName = "PayWindow";
    var option = "status=no, help=no, toolbar=no, location=no, menu=no, menubar=no, resizable=no, scrollbars=no,width=540,height=470, copyhistory=no";

	var sOP;
	var sMALLID;
	var sDEALID;
	var sAMOUNT;
	var sCOMEBACK1;
    var sCOMEBACK2;
	var sUSERNAME;

	sOP = document.card.OP.options[document.card.OP.selectedIndex].value;
  sMALLID = document.card.MALLID.value;
	sDEALID = cash_num;
	sAMOUNT = document.card.AMOUNT.value;
	sMONTH = document.card.FREE_MONTH.options[document.card.FREE_MONTH.selectedIndex].value;
	sCOMEBACK1 = document.card.COMEBACK1.value;
	sCOMEBACK2 = document.card.COMEBACK2.value;
	sUSERNAME = document.card.USERNAME.value;

	if ( sOP == 'G' || sOP == 'S' )
		sParam = 'cOP=' + sOP + '&MALLID=' + sMALLID + '&DEALID=' + sDEALID + '&AMOUNT=' + sAMOUNT + '&COMEBACK1=' + sCOMEBACK1 + '&COMEBACK2=' + sCOMEBACK2 + '&USERNAME=' + sUSERNAME;
	else if ( sOP == 'F' || sOP == 'T' )
		sParam = 'cOP=' + sOP + '&MALLID=' + sMALLID + '&DEALID=' + sDEALID + '&AMOUNT=' + sAMOUNT + '&MONTH=' + sMONTH + '&COMEBACK1=' + sCOMEBACK1 + '&COMEBACK2=' + sCOMEBACK2 + '&USERNAME=' + sUSERNAME;

  // alert( "sParam=["+sParam+"]");

	window.open( base + sParam, winName, option );
}


// Ä«µå°áÀç ½Å¹öÁ¯
function openPayWin_new(){
        window.open("", "Ucesspay", "width=540, height=500, status, scrollbars");
        document.card.action = "https://ucesspay.lgcns.com:9443/servlet/CDTxnWeb";
        document.card.target = "Ucesspay";
        document.card.submit();
}

function LoginPopup(url) {
    var childname = 'LGEDS' + count++;
    var option = "status=no, help=no, toolbar=no, location=no, menu=no, menubar=no, resizable=no, scrollbars=no,width=540,height=580, copyhistory=no";

    term();

    child = window.open(url, childname, option);
}

function term() {
    if(child != null) {
        if(!child.closed) child.close();
    }
    return;
}

// ÇÚµåÆù °áÁ¦
function Mcharge(){

var WinWidth = 440; // °áÁ¦Ã¢ ³ÐÀÌ
var WinHeight = 570; // °áÁ¦Ã¢ ³ôÀÌ
var x=screen.width/2-WinWidth/2; //°áÁ¦Ã¢À» È­¸é Áß¾ÓÀ¸·Î À§Ä¡
var y=screen.height/2-WinHeight/2;
winopen = window.open('','Mcharge','left='+ x +',top='+ y +',width='+ WinWidth +', height='+ WinHeight +' , menubar=no, scrollvars=no, staus=no, resizable=no, titlebar=no, toolbar=no, hotkey=0,closeable=no');  
window.location.href='/member/member_intro.php?page=re_cashform';
document.mcharge.action='https://pay.mcharge.co.kr:6790/check_it.php'; 
// ¿¥Â÷Áö °áÁ¦ ÇÁ·Î±×·¥ URL ¹Ýµå½Ã ÀÌÀ§Ä¡·Î ÇØ¾ßÇÕ´Ï´Ù.
document.mcharge.method='post';
document.mcharge.target='Mcharge';
document.mcharge.submit();

}

<!--ecoin°áÁ¦-->
function ecoin(member_id,cost,cash_num){
   var level,url;
   url ="http://www.i-born.net/member/ecoin.php?member_id="+member_id+"&cost="+cost+"&cash_num="+cash_num+"&step=1&site=momlife";
   myWindow = window.open(url,"move","HEIGHT=470,WIDTH=470,left=200,top=100")
}
<!--ÇÚµåÆù °áÁ¦ ¾Ù¹ü-->
function Mcharge_album(){

var WinWidth = 440; // °áÁ¦Ã¢ ³ÐÀÌ
var WinHeight = 570; // °áÁ¦Ã¢ ³ôÀÌ
var x=screen.width/2-WinWidth/2; //°áÁ¦Ã¢À» È­¸é Áß¾ÓÀ¸·Î À§Ä¡
var y=screen.height/2-WinHeight/2;
winopen = window.open('','Mcharge','left='+ x +',top='+ y +',width='+ WinWidth +', height='+ WinHeight +' , menubar=no, scrollvars=no, staus=no, resizable=no, titlebar=no, toolbar=no, hotkey=0,closeable=no');  
window.location.href='/mypage.php?sub_page_value=re_cashform';
document.mcharge.action='https://pay.mcharge.co.kr:6790/check_it.php'; 
// ¿¥Â÷Áö °áÁ¦ ÇÁ·Î±×·¥ URL ¹Ýµå½Ã ÀÌÀ§Ä¡·Î ÇØ¾ßÇÕ´Ï´Ù.
document.mcharge.method='post';
document.mcharge.target='Mcharge';
document.mcharge.submit();

}