///// ·Î±×ÀÎ ½ºÅ©¸³Æ® ////////////////// 
function check_submit(frm){
  if(!frm.id.value){
    alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
    frm.id.focus();
  }else if(!frm.pass.value){
    alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
    frm.pass.focus();
  }else return true;
  return false;
}
////////////////////////////////////////


///// ¾ÆµÚ,ÆÐ½º¿öµå Ã£±â //////////////
function Search_IDPW(){
    var popup_width=325;
    var popup_height=210;
    var screen_w=screen.width;
    var screen_h=screen.height;
    var popup_left=(screen_w - popup_width) / 2 ;
    var popup_top=(screen_h - popup_height) / 2 ;

    window.open("/shop/Search_IDPW.html","Search_IDPW","width=" + popup_width + ",height=" + popup_height + ",status=no,resizable=no,toolbar=no,menubar=no,scrollbars=no,titlebar=no,top=" + popup_top + ",left=" + popup_left);
}
//////////////////////////////////////


///// ¹®ÀÚ¿­ ¾ÕµÚ °ø¹éÁ¦°Å /////////////////////////
function blank_chk(obj){
  str_value=obj.value
  str_len=str_value.length;

  for(i=0;i<str_len;i++){
    if(str_value.charAt(0) == ' '){
      str_value=str_value.substr(1,str_value.length-1)
    }else{
      break;
    }
  }
  str_len=str_value.length;
  for(i=str_len;i>0;i--){
    if(str_value.charAt(str_value.length-1) == ' '){
      str_value=str_value.substr(0,i-1)
    }else{
      break;
    }
  }

  obj.value=str_value
  return(str_value);
}
/////////////////////////////////////////////////////



///// left ¸Þ´º ////////////////////////////////////////////////////////////////////////////////////

function JJ_findObj(n, d) { //v4.01
  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=JJ_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function JJ_showHideLayers() { //v6.0
  var i,p,v,obj,args=JJ_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=JJ_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

////////////////////////////////////////////////////////////////////////////////////////////////////


///// ÁØºñÁß ////////////////////////////////////////////////////////////////////////////////////
function Pop(){
	alert('ÁØºñÁßÀÔ´Ï´Ù');
}

////////////////////////////////////////////////////////////////////////////////////////////////////

///// ¸ÞÀÏÆË¾÷ ////////////////////////////////////////////////////////////////////////////////////
function Mail_Pop(Mode){
    var popup_width=500;
    var popup_height=435;
    var screen_w=screen.width;
    var screen_h=screen.height;
    var popup_left=(screen_w - popup_width) / 2 ;
    var popup_top=(screen_h - popup_height) / 2 ;

    window.open("/shop/mail/mailto.html?Mode=" + Mode + "","","width=" + popup_width + ",height=" + popup_height + ",status=no,resizable=no,toolbar=no,menubar=no,scrollbars=no,titlebar=no,top=" + popup_top + ",left=" + popup_left);
}
////////////////////////////////////////////////////////////////////////////////////////////////////

