
function word_check(a, b){
	var checkOK = b;
	var tok = 0;
	ch_var = a.value;

  for (i = 0;  i < ch_var.length;  i++) {
  	ch = ch_var.charAt(i);
  	tok=0;
	  for (j = 0;  j < checkOK.length;  j++){
			if (ch == checkOK.charAt(j)){
			tok = 1;
			break;
			}
		}
  	if(tok==0){
  		alert("사용할수 없는 문자열 '"+ch+"'을 사용하셨습니다.\n\n다시 입력해 주세요");
  		a.value = a.value.replace(ch, "");;
  		a.focus();
  	}
 }
	return true;
}


function printcode(s, d, m, w, h){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+w+" height="+h+" id="+d+">");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name=wmode value="+m+" />");
	document.write("<param name=movie value="+s+" />");
	document.write("<param name=quality value=high />");
	document.write("<param name=menu value=false />");
	document.write("<embed src="+s+" quality=high wmode="+m+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+">");
	document.write("</embed>");
	document.write("</object>");
}

function GetMPlayer(movie, x,y) {
	document.write("<OBJECT ID=WMPlayer Name=WMPlayer classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' bgcolor='#FF0000' width='"  + x + "' height='" + y + "'>");
	document.write("<PARAM NAME='Filename' value='" + movie + "'>");
	document.write("<PARAM NAME='AutoStart' VALUE='1'>");
	document.write("<PARAM NAME='AnimationAtStart' VALUE='1'>");
	document.write("<PARAM NAME='ShowPositionControls' VALUE='0'> ");
	document.write("<PARAM NAME='ShowControls' VALUE='0'>  ");
	document.write("<PARAM NAME='ShowDisplay' VALUE='0'> ");
	document.write("<PARAM NAME='ShowStatusBar' VALUE='0'>  ");
	document.write("<PARAM NAME='TransparentAtStart' VALUE='1'> ");
	document.write("<EMBED type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' ;id='WMPlayer' Name='WMPlayer' AutoStart = '1' AnimationAtStart = '0' ShowPositionControls='0' ShowControls='0' ShowDisplay='0' ShowStatusBar='0' TransparentAtStart = '1' width='" + x + "'  height='" + y + "' ");
	document.write("src='" + movie + "'>");
	document.write("</EMBED> ");
	document.write("</OBJECT>");
}



function GoMenu (P_Num, S_Num, D_Num) {
  var ServiceRoot = "";
  var url = "";
  var targetb = ""
  //alert(P_Num+"/"+S_Num+"/"+D_Num);
  if(P_Num == "0") {
  url = ServiceRoot + "/";
  }else if(P_Num == "1"){
  if(S_Num == "0"){url = ServiceRoot + "/brand/b_concept.asp";}
  else if(S_Num == "1"){url = ServiceRoot + "/brand/b_concept.asp";}
  else if(S_Num == "2"){url = ServiceRoot + "/brand/b_character.asp";}
  else if(S_Num == "3"){url = ServiceRoot + "/brand/b_bi.asp";}
  else if(S_Num == "4"){url = ServiceRoot + "/brand/b_history_n.asp";}
  else if(S_Num == "5"){url = ServiceRoot + "/brand/b_catalog.asp";}

  }else if(P_Num == "2"){
  if(S_Num == "0"){url = ServiceRoot + "/bcollection/bc_codi_new.asp?cotype=0";}
  else if(S_Num == "1"){url = ServiceRoot + "/bcollection/bc_codi_new.asp?cotype=0";}
   else if(S_Num == "2"){url = ServiceRoot + "/bcollection/bc_codi_new.asp?cotype=1";}
  else if(S_Num == "3"){url = ServiceRoot + "/bcollection/bc_codi_new.asp?cotype=2";}


  }else if(P_Num == "3"){
  if(S_Num == "0"){url = ServiceRoot + "/store/s_store_search.asp";}
  else if(S_Num == "1"){url = ServiceRoot + "/store/s_store_search.asp";}
  else if(S_Num == "2"){url = ServiceRoot + "/store/s_agent.asp";}
  else if(S_Num == "3"){url = ServiceRoot + "/store/s_agent_guide.asp";}
  else if(S_Num == "4"){url = ServiceRoot + "/store/s_application.asp";}


  }else if(P_Num == "4"){
  if(S_Num == "0"){url = ServiceRoot + "/customer/c_notic_list.asp";}
  else if(S_Num == "1"){url = ServiceRoot + "/customer/c_notic_list.asp";}
  else if(S_Num == "2"){url = ServiceRoot + "/pr/p_newspaper.asp";}
  else if(S_Num == "3"){url = ServiceRoot + "/pr/p_star_list.asp";}
  else if(S_Num == "4"){url = ServiceRoot + "/pr/p_movie.asp";}


  }else if(P_Num == "5"){
  if(S_Num == "0"){url = ServiceRoot + "/event/e_event_main.asp";}
  else if(S_Num == "1"){url = ServiceRoot + "/event/e_event_main.asp";}
  else if(S_Num == "2"){url = ServiceRoot + "/event/e_eventResult_list.asp";}
  else if(S_Num == "3"){url = ServiceRoot + "/pr/e_event_ing_view2.asp?idx=4";}
  else if(S_Num == "4"){url = ServiceRoot + "/pr/p_best_list.asp";}

  }else if(P_Num == "6"){
  if(S_Num == "0"){url = ServiceRoot + "/customer/c_faq_list.asp";}
  else if(S_Num == "1"){url = ServiceRoot + "/customer/c_faq_list.asp";}
  else if(S_Num == "2"){url = ServiceRoot + "/customer/c_inquiry.asp";}
  else if(S_Num == "3"){url = ServiceRoot + "/customer/c_membership.asp";}
  else if(S_Num == "4"){url = ServiceRoot + "/customer/c_as_info.asp";}
 

  }else if(P_Num == "7"){
  if(S_Num == "0"){url = ServiceRoot + "/pr/p_star_list.asp";}
    else if(S_Num == "1"){url = ServiceRoot + "/pr/p_star_list.asp";}
    else if(S_Num == "2"){url = ServiceRoot + "/pr/p_newspaper.asp";}
    else if(S_Num == "3"){url = ServiceRoot + "/pr/p_movie.asp";}
    else if(S_Num == "4"){url = ServiceRoot + "/pr/p_best_list.asp";}
	else if(S_Num == "5"){url = ServiceRoot + "/pr/e_event_ing_view2.asp?idx=4";}
  }


  if (url != ""){
    if (targetb == ""){
      window.location.href = url;
    }else{
      show(url, "1000","800");
      //window.open(url, targetb,"");
    }
  } else {
    alert("준비중 입니다. 곧 좋은 모습으로 찾아뵙겠습니다.");
  }

}


function Goutil(v1){

  if(v1 == "1"){//이용약관
    location.href="/etc/e_stipulation.asp";
  }else if(v1 == "2"){//개인정보취급방침
    location.href="/etc/e_privacy.asp";
  }else if(v1 == "3"){//이메일무단수집거부
	  location.href="/etc/e_mail_refusal.asp";
  }else if(v1 == "4"){//회사소개
	  location.href="http://www.chamzonapparel.com/";
	}else if(v1 == "5"){//로그인
		location.href="/member/e_mem_login.asp";
	}else if(v1 == "6"){//로그아웃
		location.href="/member/proc/procLogout.asp";
	}else if(v1 == "7"){//joinus
		location.href="/member/e_mem_join.asp";
	}else if(v1 == "8"){//고객센터
		location.href="/customer/c_as_info.asp";
	}else if(v1 == "9"){//sitemap
		location.href="/etc/e_sitemap.asp";
	}else if(v1 == "10"){//myinfo
		location.href="/member/e_mem_join_form.asp";
    }

}



function GoMaps (map, S_Num, D_Num) {
  var ServiceRoot = "/store/s_store_search.asp";
  var url = "";
  var targetb = "";
  //alert(map+"/"+S_Num+"/"+D_Num);
  if(map == "0") {
      url = ServiceRoot + "";
  }else if(map == "1"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=0";}//서울
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=0";}
  }else if(map == "2"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=7";}//경기도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=7";}
	}else if(map == "3"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=5";}//인천
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=5";}
	}else if(map == "4"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=8";}//강원도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=8";}
	}else if(map == "5"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=2";}//대전
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=2";}
	}else if(map == "6"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=10";}//충청남도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=10";}
	}else if(map == "7"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=9";}//충청북도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=9";}
	}else if(map == "8"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=3";}//대구
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=3";}
	}else if(map == "9"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=11";}//경상북도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=11";}
	}else if(map == "10"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=12";}//경상남도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=12";}
	}else if(map == "11"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=13";}//전라북도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=13";}
	}else if(map == "12"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=4";}//광주
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=4";}
	}else if(map == "13"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=14";}//전라남도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=14";}
	}else if(map == "14"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=6";}//울산
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=6";}
	}else if(map == "15"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=1";}//부산
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=1";}
	}else if(map == "16"){
        if(S_Num == "0"){url = ServiceRoot + "?areaCD=16";}//제주도
        else if(S_Num == "1"){url = ServiceRoot + "?areaCD=16";}
  }

  if (url != ""){
  	if (targetb == ""){//타겟
  		window.location.href = url;
  	}else{
  		show(url, "1000","800");
  		//window.open(url, targetb,"");
  	}
  } else {
      alert("준비중 입니다. 곧 좋은 모습으로 찾아뵙겠습니다.");
  }
}



/*

function word_check(a, b){
	var checkOK = b;
	var tok = 0;
	ch_var = a.value;
	for (i = 0;  i < ch_var.length;  i++) {
	ch = ch_var.charAt(i);
	tok=0;
	for (j = 0;  j < checkOK.length;  j++){
			if (ch == checkOK.charAt(j)){
			tok = 1;
			break;
			}
		}
	if(tok==0){
		return false;
		break;
		}
	}
	return true;
}

*/
