//ÇÃ·¡½Ã ºÒ·¯¿À±â
function flash_view(u,d,w,h)  {
//document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0 width="' + w + '" height="' + h + '" id="' + d + '" align="middle">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + w + '" height="' + h + '" id="' + d + '" align="middle">');
document.write('<param NAME="AllowScriptAccess" VALUE="always">');
document.write('<param name="movie" value="' + u + '" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="scale" value="exactfit" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed wmode="transparent" src="' + u + '" quality="high" width="' + w + '" height="' + h + '" name="' + d + '" align="middle" AllowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}

function flash_view_m(u,d,w,h,tg) { 
 str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="' + w + '" height="' + h + '" id="' + d + '" align="middle">'; 
 str += '<param NAME="AllowScriptAccess" VALUE="always">'; 
 str += '<param name="movie" value="' + u + '" />'; 
 str += '<param name="quality" value="high" />'; 
 str += '<param name="wmode" value="transparent" />'; 
 str += '<embed wmode="transparent" src="' + u + '" quality="high" width="' + w + '" height="' + h + '" name="' + d + '" align="middle" AllowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'; 
 str += '</object>'; 

var f_load = eval("document.all."+tg);
f_load.innerHTML = str;
}

//q&a ÆîÃÄÁö´Â ¼Ò½º
var old_menu = '';
function menuclick(
submenu)
{
if( old_menu != submenu ) {
if( old_menu !='' )
{
old_menu.style.display = 'none';
}
submenu.style.display =
'block';
old_menu = submenu;
} else {
submenu.style.display =
'none';
old_menu = '';
}
}

//·Ñ ¿À¹ö ¼Ò½º
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function Mem_Select(gubun) {

if(gubun=="P") {//°³ÀÎÈ¸¿ø
document.auth.mem_gubun.value='P';
} else if(gubun=="C") {//±â¾÷È¸¿ø
document.auth.mem_gubun.value='C';
}

document.auth.action='agree.neo';
document.auth.submit();

}

function Auth_Agree(gubun) {

if(document.auth.agree[0].checked == true&&document.auth.agree2[0].checked == true) {

if(gubun=="P") {
document.auth.action='join2_normal.neo';
} else {
document.auth.action='join2_business.neo';
}
document.auth.submit();
} else {
alert('ÀÌ¿ë¾à°ü ¹× °³ÀÎÁ¤º¸Ãë±Þ¹æÄ§¿¡ µ¿ÀÇÇÏÁö ¾ÊÀ¸½Ã¸é\n°¡ÀÔ½ÅÃ»À» ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
false;
}

}

function Change_Method() {

if(document.auth.auth_gubun[0].checked == true) {//ÇÚµåÆùÀÎÁõ ¼±ÅÃ
document.all.auth_sel_1.style.display='block';
document.all.auth_sel_2.style.display='none';
document.auth.method_chk.value='P';
} else {//ÀÌ¸ÞÀÏÀÎÁõ ¼±ÅÃ
document.all.auth_sel_2.style.display='block';
document.all.auth_sel_1.style.display='none';
document.auth.method_chk.value='E';
}

}
 
function Send_Code() {

if(document.auth.method_chk.value=="P") {//¶óµð¿À¹öÆ°¿¡¼­ ÇÚµåÆùÀÎÁõ Å¬¸¯

if(!document.auth.hphone1.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÇÚµåÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.hphone1.focus();
return;
} else if(!document.auth.hphone2.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÇÚµåÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.hphone2.focus();
return;
} else if(!document.auth.hphone3.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÇÚµåÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.hphone3.focus();
return;
} 

} else {//¶óµð¿À¹öÆ°¿¡¼­ ÀÌ¸ÞÀÏÀÎÁõ Å¬¸¯
	
if(!document.auth.email1.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.email1.focus();
return;
} else if(!document.auth.email2.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.email2.focus();
return;
} 

}

document.auth.target='inner_frame';
document.auth.action='auth_code_send.neo';
document.auth.submit();

}

function Compare_Code(gubun) {

if(!document.auth.auth_code.value) {
alert('ÀÎÁõÄÚµå¸¦ ÀÔ·ÂÇÏ½ÅÈÄ È®ÀÎÀ» Å¬¸¯ÇÏ¼¼¿ä');
document.auth.auth_code.focus();
} else {
document.auth.target='inner_frame';
document.auth.action='auth_code_compare.neo';
document.auth.submit();
}

}

function Mail_Sel(smail,sform) {

var t_form = eval("document." + sform);

if(smail != "self") {
t_form.email2.value=smail;
t_form.email2.readOnly=true;
} else {
t_form.email2.value=""
t_form.email2.readOnly=false;
t_form.email2.focus();
}

}

function Open_Post() {
document.all.pop_sw_l.style.display='block';
}

function Close_Post() {
document.all.pop_sw_l.style.display='none';
}

function Post_Input(str) {
var basic_val = str.split("|",2);
var post_val = basic_val[0].split("-",2);
document.joinform.post1.value=post_val[0];
document.joinform.post2.value=post_val[1];
document.joinform.addr1.value=basic_val[1];
document.joinform.addr2.focus();
}

function Out_Mess(comm) {
alert(comm);
}

function Chk_Exist(g) {

var pattern = /(^[a-zA-Z0-9\-_]+$)/; 

if(g == "N") {//¾ÆÀÌµðÁßº¹°Ë»ç

    if(!document.joinform.m_id.value) {
    alert('È¸¿ø¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ã°í Ã¼Å©ÇÏ¼¼¿ä.');
    document.joinform.m_id.focus();
	return;
    } else if( !pattern.test( document.joinform.m_id.value )) {
    alert('¾ÆÀÌµð¿¡ ÇÑ±ÛÀÌ³ª Æ¯¼ö¹®ÀÚ¸¦ ÀÔ·ÂÇÏÁö ¸¶¼¼¿ä.');
	document.joinform.m_id.value="";
	return;
    } else {    
	document.joinform.target='inner_frame';
    document.joinform.action='m_id_chk.neo';
    document.joinform.submit();
    }

} 

}

function Mem_Join_P() {

	var pattern = /(^[a-zA-Z0-9\-_]+$)/; 

    if(!document.joinform.m_id.value) {
      alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
      document.joinform.m_id.focus();
      return;
    } else if(document.joinform.m_id.value && document.joinform.m_id_chk.value=="N") {
      alert('¾ÆÀÌµð Áßº¹°Ë»çÀ» ÇÏ½Ã°í ÁøÇàÇÏ¼¼¿ä');
	  return;
    } else if(!document.joinform.name.value) {///ÀÌ¸§
      alert('¼º¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.name.focus();
	  return;
    } else if(!document.joinform.passwd.value) {
    alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.passwd.focus();
	  return;
    } else if(!document.joinform.repasswd.value) {
    alert('ºñ¹Ð¹øÈ£È®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.repasswd.focus();
	  return;
    } else if (document.joinform.passwd.value != document.joinform.repasswd.value) {
	alert("ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£È®ÀÎÀÌ ¼­·Î ´Ù¸¨´Ï´Ù.");
	document.joinform.repasswd.focus();
	  return;
    } else if(!document.joinform.birthyear.value) {
    alert('»ý³â¿ùÀÏÀ» Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.birthyear.focus();
	  return;
    } else if(!document.joinform.birthmonth.value) {
    alert('»ý³â¿ùÀÏÀ» Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.birthmonth.focus();
	  return;
    } else if(!document.joinform.birthday.value) {
    alert('»ý³â¿ùÀÏÀ» Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.birthday.focus();
	  return;
    } else if(!document.joinform.email1.value) {
    alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä');
	  return;
    } else if(!document.joinform.email2.value) {
    alert('ÀÌ¸ÞÀÏÀ» ¼±ÅÃÇÏ½Ã°Å³ª Á÷Á¢ÀÔ·Â ÇÏ¼¼¿ä');
	  return;
    } else if(!document.joinform.post1.value) {
    alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.post1.focus();
	  return;
    } else if(!document.joinform.post2.value) {
    alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.post2.focus();
	  return;
    } else if(!document.joinform.addr1.value) {
    alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.addr1.focus();
	  return;
    } else if(!document.joinform.addr2.value) {
    alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.addr2.focus();
	  return;
    } else {

     if(document.joinform.m_jumin_chk.value=="N") {
      alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ »èÁ¦ÇÏ±â¸¦ Å¬¸¯ÇÏ¼¼¿ä.');
	  return;
	 }

	document.joinform.target='inner_frame';
    document.joinform.action='join_03_normal_save.neo';
    document.joinform.submit();
    }
}

function Mem_Join_C() {

	var pattern = /(^[a-zA-Z0-9\-_]+$)/; 

    if(!document.joinform.m_id.value) {
      alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
      document.joinform.m_id.focus();
      return;
    } else if(document.joinform.m_id.value && document.joinform.m_id_chk.value=="N") {
      alert('¾ÆÀÌµð Áßº¹°Ë»çÀ» ÇÏ½Ã°í ÁøÇàÇÏ¼¼¿ä');
	  return;
    } else if(!document.joinform.com_name.value) {
      alert('È¸»ç¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.com_name.focus();
	  return;
    } else if(!document.joinform.dam_name.value) {
      alert('´ã´çÀÚ¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.dam_name.focus();
	  return;
    } else if(!document.joinform.passwd.value) {
    alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.passwd.focus();
	  return;
    } else if(!document.joinform.repasswd.value) {
    alert('ºñ¹Ð¹øÈ£È®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.repasswd.focus();
	  return;
    } else if (document.joinform.passwd.value != document.joinform.repasswd.value) {
	alert("ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£È®ÀÎÀÌ ¼­·Î ´Ù¸¨´Ï´Ù.");
	document.joinform.repasswd.focus();
	  return;
    } else if(!document.joinform.biz_num.value) {
    alert('»ç¾÷ÀÚ¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.biz_num.focus();
	  return;
    } else if(!document.joinform.biz_field_1.value) {
    alert('¾÷ÅÂ¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.biz_field_1.focus();
	  return;
    } else if(!document.joinform.biz_field_2.value) {
    alert('Á¾¸ñÀ» Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.biz_field_2.focus();
	  return;
    } else if(!document.joinform.ceo_name.value) {
    alert('´ëÇ¥ÀÚ¸íÀ» Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.ceo_name.focus();
	  return;
    } else if(!document.joinform.phone1.value) {
    alert('È¸»çÀüÈ­¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.phone1.focus();
	  return;
    } else if(!document.joinform.phone2.value) {
    alert('È¸»çÀüÈ­¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.phone2.focus();
	  return;
    } else if(!document.joinform.phone3.value) {
    alert('È¸»çÀüÈ­¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.phone3.focus();
	  return;
    } else if(!document.joinform.email1.value) {
    alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä');
	  return;
    } else if(!document.joinform.email2.value) {
    alert('ÀÌ¸ÞÀÏÀ» ¼±ÅÃÇÏ½Ã°Å³ª Á÷Á¢ÀÔ·Â ÇÏ¼¼¿ä');
	  return;
    } else if(!document.joinform.post1.value) {
    alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.post1.focus();
	  return;
    } else if(!document.joinform.post2.value) {
    alert('¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.post2.focus();
	  return;
    } else if(!document.joinform.addr1.value) {
    alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.addr1.focus();
	  return;
    } else if(!document.joinform.addr2.value) {
    alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
    document.joinform.addr2.focus();
	  return;
    } else {
	document.joinform.target='inner_frame';
    document.joinform.action='join_03_business_save.neo';
    document.joinform.submit();
    }
}

function Logout() {
	answer=window.confirm('·¹¶¼¿¡¼­ ·Î±×¾Æ¿ôÇÏ½Ã°Ú½À´Ï±î?')
	if (answer==false) { return; }else{ location.href="http://www.lettee.com/Member/logout_process.neo"; }
}

function Del_Jumin(mid) {
	answer=window.confirm('ÀúÀåµÈ ÁÖ¹Î¹øÈ£¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')
	if (answer==false) { return; }else{ document.inner_frame.location.href="/Member/jumin_del_process.neo"; }
}

 //ÅÇ ¼Ò½º
	function se1(value){
		if(value=='11')
			t1.style.display = '';
		else
			t1.style.display = 'none';
		}
	function se2(value){
		if(value=='22')
			t2.style.display = '';
		else
			t2.style.display = 'none';
	}
	function se3(value){
		if(value=='33')
			t3.style.display = '';
		else
			t3.style.display = 'none';
	}
	function se4(value){
		if(value=='44')
			t4.style.display = '';
		else
			t4.style.display = 'none';
	}
	function se5(value){
		if(value=='55')
			t5.style.display = '';
		else
			t5.style.display = 'none';
		}
	function se6(value){
		if(value=='66')
			t6.style.display = '';
		else
			t6.style.display = 'none';
	}
	function se7(value){
		if(value=='77')
			t7.style.display = '';
		else
			t7.style.display = 'none';
	}
	function se8(value){
		if(value=='88')
			t8.style.display = '';
		else
			t8.style.display = 'none';
	}
	function se9(value){
		if(value=='99')
			t9.style.display = '';
		else
			t9.style.display = 'none';
		}
	function se10(value){
		if(value=='100')
			t10.style.display = '';
		else
			t10.style.display = 'none';
	}
	function se11(value){
		if(value=='111')
			t11.style.display = '';
		else
			t11.style.display = 'none';
	}
	function se12(value){
		if(value=='122')
			t12.style.display = '';
		else
			t12.style.display = 'none';
	}
	function se13(value){
		if(value=='133')
			t13.style.display = '';
		else
			t13.style.display = 'none';
	}
	function se14(value){
		if(value=='144')
			t14.style.display = '';
		else
			t14.style.display = 'none';
	}
	function se15(value){
		if(value=='155')
			t15.style.display = '';
		else
			t15.style.display = 'none';
	}
	function se16(value){
		if(value=='166')
			t16.style.display = '';
		else
			t16.style.display = 'none';
	}
	function se17(value){
		if(value=='177')
			t17.style.display = '';
		else
			t17.style.display = 'none';
	}
	function se18(value){
		if(value=='188')
			t18.style.display = '';
		else
			t18.style.display = 'none';
	}
	function se19(value){
		if(value=='199')
			t19.style.display = '';
		else
			t19.style.display = 'none';
	}
	function se20(value){
		if(value=='200')
			t20.style.display = '';
		else
			t20.style.display = 'none';
	}
	function se21(value){
		if(value=='211')
			t21.style.display = '';
		else
			t21.style.display = 'none';
	}
	function se22(value){
		if(value=='222')
			t22.style.display = '';
		else
			t22.style.display = 'none';
	}
	function se23(value){
		if(value=='233')
			t23.style.display = '';
		else
			t23.style.display = 'none';
	}
	function se31(value){
		if(value=='311')
			t31.style.display = '';
		else
			t31.style.display = 'none';
	}
	function se32(value){
		if(value=='322')
			t32.style.display = '';
		else
			t32.style.display = 'none';
	}
	function se33(value){
		if(value=='333')
			t33.style.display = '';
		else
			t33.style.display = 'none';
	}
	function se34(value){
		if(value=='344')
			t34.style.display = '';
		else
			t34.style.display = 'none';
	}
	function se35(value){
		if(value=='355')
			t35.style.display = '';
		else
			t35.style.display = 'none';
	}
	function se36(value){
		if(value=='366')
			t36.style.display = '';
		else
			t36.style.display = 'none';
	}
	function se36(value){
		if(value=='366')
			t36.style.display = '';
		else
			t36.style.display = 'none';
	}
	function se37(value){
		if(value=='377')
			t37.style.display = '';
		else
			t37.style.display = 'none';
	}
	function se38(value){
		if(value=='388')
			t38.style.display = '';
		else
			t38.style.display = 'none';
	}
	function se39(value){
		if(value=='399')
			t39.style.display = '';
		else
			t39.style.display = 'none';
	}
	function se40(value){
		if(value=='400')
			t40.style.display = '';
		else
			t40.style.display = 'none';
	}

	<!--¸ð¹ÙÀÏ ¸Þ´º-->
	function se48(value){
		if(value=='480')
			t48.style.display = '';
		else
			t48.style.display = 'none';
	}
	function se49(value){
		if(value=='490')
			t49.style.display = '';
		else
			t49.style.display = 'none';
	}

	<!-- Ä«µå ¸Þ´º-->
	function se100(value){
		if(value=='1000')
			t100.style.display = '';
		else
			t100.style.display = 'none';
	}
	function se110(value){
		if(value=='1100')
			t110.style.display = '';
		else
			t110.style.display = 'none';
	} 
	function se120(value){
		if(value=='1200')
			t120.style.display = '';
		else
			t120.style.display = 'none';
	} 
	<!-- °ÔÀÓ ¸Þ´º-->.
	function se200(value){
		if(value=='2000')
			t200.style.display = '';
		else
			t200.style.display = 'none';
	} 
	function se210(value){
		if(value=='2100')
			t210.style.display = '';
		else
			t210.style.display = 'none';
	} 

function Swf_Change(ser,gubun,sp) {
var link_url = "http://image.lettee.com/Link_Script/mobile_main_pop.swf?gubun=" + gubun;
flash_view_m(link_url,'m_main','540','265',sp);

for( i=1 ; i <= 4 ; i++ ) {
var menu = eval("document.all.cat_"+i);
menu.style.fontWeight = "normal";
}
var tg = eval("document.all.cat_"+ser);
tg.style.fontWeight = "bold";

}

function Swf_Change_N(ser,gubun,sp) {
var link_url = "http://image.lettee.com/Link_Script/mobile_main_new.swf?gubun=" + gubun;
flash_view_m(link_url,'m_main','710','140',sp);

for( i=5 ; i <= 8 ; i++ ) {
var menu = eval("document.all.cat_"+i);
menu.style.fontWeight = "normal";
}
var tg = eval("document.all.cat_"+ser);
tg.style.fontWeight = "bold";

}

function Repl_Act(g) {
var dis = eval("document.all."+g);
if(dis.style.display=="none") {
dis.style.display="block";
} else {
dis.style.display="none";
}

}

function Select_Act(num) {
	var sel_url = "select_process.neo?num=" + num;
	answer=window.confirm('ÀÌ ´äº¯À» º£½ºÆ® ´äº¯À¸·Î Ã¤ÅÃÇÏ½Ã°Ú½À´Ï±î?');
	if (answer==false) { return; }else{ document.inner_frame.location.href=sel_url; }
}

function Chk_Act(num) {
	var chk_url = "chk_process.neo?num=" + num;
	document.inner_frame.location.href=chk_url;
}

function Delete_Act(num1,num2,gubun) {

if(gubun=="Y") {

if(num1==0&&num2==0) {
alert('´äº¯±ÛÀÌ ÀÖÀ¸¹Ç·Î ¿ø±Û(Áú¹®±Û)À» »èÁ¦ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
} else {
	var del_url = "delete_process.neo?num=" + num1 + "&p_num=" + num2;
   if(num1==num2) {//¿ø±ÛÀÎ °æ¿ì
	answer=window.confirm('ÀÌ Áú¹®À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?');
   } else {
	answer=window.confirm('ÀÌ ´äº¯À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?');
   }

	if (answer==false) { return; }else{ document.inner_frame.location.href=del_url; }
}

} else {
alert('º£½ºÆ®´äº¯À¸·Î Ã¤ÅÃµÈ±ÛÀº »èÁ¦ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
}

}

function Mod_Act(num1,num2,gubun) {

if(gubun=="Y") {

if(num1==0&&num2==0) {
alert('º£½ºÆ®´äº¯ÀÌ Ã¤ÅÃµÈ Áú¹®ÀÌ¹Ç·Î ¼öÁ¤ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
} else {
	var mod_url = "question_mod.neo?num=" + num1 + "&p_num=" + num2;
    document.location.href=mod_url;
} 

} else {
alert('º£½ºÆ®´äº¯À¸·Î Ã¤ÅÃµÈ±ÛÀº ¼öÁ¤ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
}

}

function Knowhow_Search() {

if(!document.s_ser.key.value) {
alert('°Ë»öÇÒ Å°¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
document.s_ser.key.focus();
return;
} else {
document.s_ser.submit();
}

}

function Full_Search(gubun,word) {
document.fsearch.gubun.value = gubun;
document.fsearch.skey.value = word;
document.fsearch.action = "/DetailSearch/";
document.fsearch.submit();
}

function Add_Good(num) {
	var chk_url = "game_good_process.neo?num=" + num;
    document.inner_frame.location.href=chk_url;
}

function Add_Bad(num) {
	var chk_url = "game_bad_process.neo?num=" + num;
    document.inner_frame.location.href=chk_url;
}

function Wish_Card(num) {
	var chk_url = "wish_card_process.neo?num=" + num;
    document.inner_frame.location.href=chk_url;
}

function Open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  var winX = 0;
  var winY = 0;
  if (parseInt(navigator.appVersion) >= 4) {
    winX = (screen.availWidth - width)*.5;
    winY = (screen.availHeight - height)*.5;
  }

  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+winX+',top='+winY+',width='+width+',height='+height+',toolbar=no,menubar=no,status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function Notice_Pop(num) {
if(num!='0') {
var go_url = "/Notice/Notice_View.neo?num=" + num;
} else {
var go_url = "/Notice/Notice_List.neo"
}
Open_window('Notice',go_url,'0','0','373','306');
}

function Apply_Ad(ser) {

for( i=0 ; i <20 ; i++ ) {
var tg = eval("document.all.ban_gubun["+ i + "].checked");
if( tg == true ) {
var this_chk = i;
}
}

if(this_chk != ser) {
alert('¼±ÅÃÇÏ½Å ±¤°í»óÇ°ÀÇ ½ÅÃ»¹öÆ°À» Å¬¸¯ÇÏ¼¼¿ä');
} else {
	var chk_url = "ad_market_apply_form.neo";
	document.apply.sel_num.value=ser;
    document.apply.action=chk_url;
	document.apply.submit();
}

}

function Req_AD() {

if(!document.reqform.ban_file.value) {
alert('¾÷·ÎµåÇÏ½Ç ¹è³ÊÆÄÀÏÀ» ¼±ÅÃÇÏ¼¼¿ä');
return;
} else if(!document.reqform.home_url.value) {
alert('±Í»çÀÇ È¨ÆäÀÌÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
document.reqform.home_url.focus();
return;
} else if(!document.reqform.link_url.value) {
alert('¹è³Ê±¤°í¿¡ ¸µÅ©ÇÏ½Ç URLÀ» ÀÔ·ÂÇÏ¼¼¿ä');
document.reqform.link_url.focus();
return;
//} else if(!document.reqform.req_keyword.value) {
//alert('ÅëÇÕ°Ë»ö¿ë Å°¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
//document.reqform.req_keyword.focus();
//return;
} else if(!document.reqform.com_name.value) {
alert('È¸»ç¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä');
document.reqform.com_name.focus();
return;
} else if(!document.reqform.dam_name.value) {
alert('´ã´çÀÚ¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä');
document.reqform.dam_name.focus();
return;
} else if(!document.reqform.dam_email1.value||!document.reqform.dam_email2.value) {
alert('ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
return;
} else if(!document.reqform.com_tel.value) {
alert('È¸»ç ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
document.reqform.com_tel.focus();
return;
} else {

if(document.reqform.ttl_cash.value <= document.reqform.curr_cash.value) {
document.reqform.submit();
} else {
alert('·¹¶¼Ä³½Ã ÀÜ¾×ÀÌ ºÎÁ·ÇÏ¿© ½ÅÃ»À» ÁøÇàÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
}

}

}

        var stmnLEFT = 0;
        var stmnGAP1 = 10;
        var stmnGAP2 = 80;
        var stmnBASE = 80;
        var stmnActivateSpeed = 5;
        var stmnScrollSpeed = 1;
        var stmnTimer;

        function RefreshStaticMenu()
        {
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

                stmnStartPoint = parseInt(document.getElementById('Right_Ban').style.top, 10);
                stmnEndPoint = document.body.scrollTop + stmnGAP2;
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

                stmnRefreshTimer = stmnActivateSpeed;

                if ( stmnStartPoint != stmnEndPoint ) {
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
                        document.getElementById('Right_Ban').style.top = parseInt(document.getElementById('Right_Ban').style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
                        stmnRefreshTimer = stmnScrollSpeed;
                }
                document.getElementById('Right_Ban').style.left = stmnLEFT;

                stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
        }

        function RightBanerStart()  {
                        document.getElementById('Right_Ban').style.top = document.body.scrollTop + stmnBASE; // ±âº»À§Ä¡·Î ÀÌµ¿ÇÑ´Ù.
                        RefreshStaticMenu();
        }	

function Swf_Change_V(link_url) {
flash_view_m(link_url,'v_card','450','300','swf_space');
}

function Theme_Change(ser) {
var change_url = "theme_change.neo?snum=" + ser;
document.inner_frame.location.href=change_url;
}

function Layer_Hide(lnum) {
document.all.m_layer.style.display = 'none';
setTimeout ("Layer_Show();", 3000);
}

function Layer_Show() {
document.all.m_layer.style.display = 'block';
}

<!--Å×ÀÌºíÅ×µÎ¸® µÕ±Û°ÔÇÏ´Â ¼Ò½º-->
function roundTable(objID) {
var obj = document.getElementById(objID);
var Parent, objTmp, Table, TBody, TR, TD;
var bdcolor, bgcolor, Space;
var trIDX, tdIDX, MAX;
var styleWidth, styleHeight;

// get parent node
Parent = obj.parentNode;
objTmp = document.createElement('SPAN');
Parent.insertBefore(objTmp, obj);
Parent.removeChild(obj);

// get attribute
bdcolor = obj.getAttribute('rborder');
bgcolor = obj.getAttribute('rbgcolor');
radius = parseInt(obj.getAttribute('radius'));
if (radius == null || radius < 1) radius = 1;
else if (radius > 6) radius = 6;

MAX = radius * 2 + 1;

/*
create table {{
*/
Table = document.createElement('TABLE');
TBody = document.createElement('TBODY');

Table.cellSpacing = 0;
Table.cellPadding = 0;

for (trIDX=0; trIDX < MAX; trIDX++) {
TR = document.createElement('TR');
Space = Math.abs(trIDX - parseInt(radius));
for (tdIDX=0; tdIDX < MAX; tdIDX++) {
TD = document.createElement('TD');

styleWidth = '1px'; styleHeight = '1px';
if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
else if (radius > 2) {
if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
}

if (styleWidth != null) TD.style.width = styleWidth;
if (styleHeight != null) TD.style.height = styleHeight;

if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
else if (tdIDX > Space && Space < MAX - tdIDX - 1) TD.style.backgroundColor = bgcolor;

if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
TR.appendChild(TD);
}
TBody.appendChild(TR);
}

/*
}}
*/

Table.appendChild(TBody);

// insert table and remove original table
Parent.insertBefore(Table, objTmp);
}

function Album_Box(url) {
var album_url = url + "/lettee_album.neo";
window.open(album_url,'win','top=60,left=300,width=800,height=500,menubar=0,resizable=0,scrollbars=no');
self.close();
}

function Address_Box() {
var album_url = "http://www.lettee.com/MyPage/address.neo";
window.open(album_url,'win','top=60,left=300,width=725,height=540,menubar=0,resizable=0,scrollbars=no');
}

function Re_Send_Code(gubun) {

if(gubun=="P") {//¶óµð¿À¹öÆ°¿¡¼­ ÇÚµåÆùÀÎÁõ Å¬¸¯

if(!document.auth.hphone1.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÇÚµåÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.hphone1.focus();
return;
} else if(!document.auth.hphone2.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÇÚµåÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.hphone2.focus();
return;
} else if(!document.auth.hphone3.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÇÚµåÆù¹øÈ£¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.hphone3.focus();
return;
} 

} else {//¶óµð¿À¹öÆ°¿¡¼­ ÀÌ¸ÞÀÏÀÎÁõ Å¬¸¯
	
if(!document.auth.email1.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.email1.focus();
return;
} else if(!document.auth.email2.value) {
alert('ÀÎÁõÄÚµå¸¦ ¹ÞÀ¸½Ç ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
document.auth.email2.focus();
return;
} 

}

document.auth.action='../Member/auth_code_send_re.neo';
document.auth.submit();

}

function Re_Compare_Code() {

if(!document.auth.auth_code.value) {
alert('ÀÎÁõÄÚµå¸¦ ÀÔ·ÂÇÏ½ÅÈÄ È®ÀÎÀ» Å¬¸¯ÇÏ¼¼¿ä');
document.auth.auth_code.focus();
} else {
document.auth.action='../Member/auth_code_compare_re.neo';
document.auth.submit();
}

}

function Nick_Chk() {

    if(!document.joinform.nickname.value) {
    alert('º°¸íÀ» ÀÔ·ÂÇÏ½Ã°í Ã¼Å©ÇÏ¼¼¿ä.');
    document.joinform.nickname.focus();
	return;
    } else {    
	document.joinform.target='inner_frame';
    document.joinform.action='nick_chk.neo';
    document.joinform.submit();
    }

}

function Mod_Pass() {
    if(!document.modform.curr_pw.value) {
    alert('±âÁ¸ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
    document.modform.curr_pw.focus();
	return;
	} else if(!document.modform.new_pw.value) {
    alert('º¯°æºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
    document.modform.new_pw.focus();
	return;
	} else if(!document.modform.re_new_pw.value) {
    alert('º¯°æºñ¹Ð¹øÈ£È®ÀÎ¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');
    document.modform.re_new_pw.focus();
	return;
    } else if (document.modform.new_pw.value != document.modform.re_new_pw.value) {
	alert("ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£È®ÀÎÀÌ ¼­·Î ´Ù¸¨´Ï´Ù.");
	document.modform.re_new_pw.focus();
	return;
    } else {    
	document.modform.target='inner_frame';
    document.modform.action='pw_change.neo';
    document.modform.submit();
    }
}	

function Delete_Mem() {
	var sel_url = "delete_mem_process.neo";
	answer=window.confirm('Áö±Ý ·¹¶¼È¸¿ø¿¡¼­ Å»ÅðÇÏ½Ã°Ú½À´Ï±î?\n\nÅ»ÅðÈÄ¿¡´Â È¸¿øÁ¤º¸¸¦ º¹±¸ÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');
	if (answer==false) { return; }else{ document.inner_frame.location.href=sel_url; }
}

function Reg_Coupon() {

if(!document.auth.c_num_1.value||!document.auth.c_num_2.value||!document.auth.c_num_3.value||!document.auth.c_num_4.value) {
alert('µî·ÏÇÏ½Ç ÄíÆù¹øÈ£¸¦ 16ÀÚ¸®·Î Á¤È®ÇÏ°Ô ÀÔ·ÂÇÏ¼¼¿ä');
} else {
var reg_url = "coupon_reg_process.neo";
document.auth.target='inner_frame';
document.auth.action=reg_url;
document.auth.submit();
}

}

function Coupon_Use(cnum) {

var use_url = "coupon_use_process.neo?cnum=" + cnum;
answer=window.confirm('¼±ÅÃÇÏ½Å ÄíÆùÀ» »ç¿ë ÇÏ½Ã°Ú½À´Ï±î?');
if (answer==false) { return; }else{ document.inner_frame.location.href=use_url;}

}

function Del_Ucc(durl) {

answer=window.confirm('¼±ÅÃÇÏ½Å UCC¸ð¹ÙÀÏ Ä«µå¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?');
if (answer==false) { return; }else{ document.inner_frame.location.href=durl;}

}

function Del_Wish(num) {

var durl = "del_wish.neo?num=" + num;
answer=window.confirm('¼±ÅÃÇÏ½Å Âò¸®½ºÆ®¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?');
if (answer==false) { return; }else{ document.inner_frame.location.href=durl;}

}

