function show(object) {
 var layer = document.getElementById(object);
 if(layer)layer.style.display = 'block';
}

function hide(object) {
 var layer = document.getElementById(object);
 if(layer)layer.style.display = 'none';
}

/* png */
function setPng24(obj) {
 obj.width=obj.height="1";
 obj.className=obj.className.replace(/\bpng24\b/i,"");
 obj.style.filter= "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
 obj.src=""; 
 return "";
}

/*퀵메뉴 jquery */
$(document).ready(function(){
	$(".click1").click(function(){
			$("#quick").animate({"width":"357px","height":"536px"},500);
			$("#quick .quickBox").css("display","block");
			$("#quick .click1").css("display","none");
			$("#quick .click2").css("display","block");
			$("#quick .click2").css("left","10px");
	});
	$(".click2").click(function(){
			$("#quick").animate({"width":"43px","height":"190px"},500);
			$("#quick .click2").css("display","none");
			$("#quick .click1").css("display","block");
	});
});


function layerOn(e){
	var layer = document.getElementById("layer"+e);
	if(layer){
		layer.style.display='block';
	}
}
function layerOff(e){
	var layer = document.getElementById("layer"+e);
	if(layer){
		layer.style.display='none';
	}
}


//window open
function openWinCen(theURL,winName,w,h,features) {
	var winl = (screen.width - w) / 3;
	var wint = (screen.height - h) / 3;
	features = 'width='+w+',height='+h+',left='+winl+',top='+wint+','+features;
	window.open(theURL,winName,features);
}

function goMemPop(param) {
	var features = 'scrollbars=yes ';
	openWinCen('/memBbsViewPop.do?method=memBbsViewPop&param='+param,'memInfo_v','857','700',features);
}

function goPrdView(seq) {
	location.href = "/productView.do?method=productView&seq=" + seq;
}

function goPrdViewPop(seq) {
	window.open("/productView.do?method=productView&seq=" + seq,"prdpop_v");
}


function menuOn(imgEl) {
imgEl.src = imgEl.src.replace("_off.jpg", "_on.jpg");
}

function menuOut(imgEl) {
imgEl.src = imgEl.src.replace("_on.jpg", "_off.jpg");
}

function menuOn2(imgEl) {
imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}

function menuOut2(imgEl) {
imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}




//=========================================== 구 common.js



//강제 실행 스크립트
//goSSL();	
/*
function goSSL(){
	try{
		var addr = document.location.href;
		
		if(isSSLPageCheck(addr)){
			if(addr.indexOf("https")<0 && isIPCheck(addr)==false){
				document.location.href = addr.replace("http://","https://");
			}			
		}else{
			if(addr.indexOf("https://")>-1 && !isSSLSWPageCheck(addr)){
				document.location.href = addr.replace("https://","http://");
			}
		}
	}catch(e){
		//alert(e.message); //- 디버깅시 사용
	}
}

//상단에 정의된 SSL페이지인지 여부를 반환 (true: SSL적용페이지, false:비대상 페이지)
function isSSLPageCheck(_url){
	if(document.getElementById("sslpageyn")!=null && document.getElementById("sslpageyn").value=="yes"){
		return true;
	}

	arrSSLs = sslPageList.split("$");
	for(i=0; i<arrSSLs.length;i++){
		if(arrSSLs[i]!="" && _url.indexOf(arrSSLs[i])>-1)
			return true;
	}
	return false;
}

//상단에 정의된 SSL 적용/미적용 구분
function isSSLSWPageCheck(_url){
	
	arrSSLs = sslSWPageList.split("$");
	for(i=0; i<arrSSLs.length;i++){
		if(arrSSLs[i]!="" && _url.indexOf(arrSSLs[i])>-1)
			return true;
	}
	return false;
}
*/
//전달받은 주소가 아이피형식인지 체크-개발서버를 가려내기 위함(true:아이피형주소, false:도메인형주소)
function isIPCheck(_url){
	_url = _url.replace("https://","");
	_url = _url.replace("http://","");
	arrDgit = _url.split(".");			
	isIP = true;
	if(arrDgit.length>4){
		for(i=0; i<3; i++){
			if(arrDgit[i].search(/[^0-9]/g)!=-1){
				return false;
			}
		}
	}else{
		return false;
	}			
	return true;
}

//마우스 오른쪽 금지
/*
document.oncontextmenu = function(){
var url_split = document.location.href.split("/");

if(url_split.length >= 4 && url_split[3].length > 5 && url_split[3].substr(0,5) == "admin") {
return true;
} else {
return false;
}
}

//드래그 금지
document.onselectstart = function(){
var url_split = document.location.href.split("/");

if(url_split.length >= 4 && url_split[3].length > 5 && url_split[3].substr(0,5) == "admin") {
return true;
} else {
return false;
}
}
*/

//window open
function openWinCen(theURL,winName,w,h,features) {
var winl = (screen.width - w) / 3;
var wint = (screen.height - h) / 3;
features = 'width='+w+',height='+h+',left='+winl+',top='+wint+','+features;
window.open(theURL,winName,features);
}

//check radio button
function hasCheckedRadio(input) {
if (input.length > 1) {
for (var inx = 0; inx < input.length; inx++) {
    if (input[inx].checked) return true;
}
} else {
if (input.checked) return true;
}
return false;
}

//get value - radio
function getValueCheckedRadio(input) {
if (input.length > 1) {
for (var inx = 0; inx < input.length; inx++) {
    if (input[inx].checked) return input[inx].value;
}
} else {
if (input.checked) return input.value;
}
return "";
}

//체크박스 처리 분기
function CheckBox(obj,f){
if ( obj.checked == true ) CheckBoxAll(f)
else CheckBoxReset(f)
}

//체크박스 모두 체크
function CheckBoxAll(f){
for( i=0; i<f.elements.length; i++) {
if ( f.elements[i].type == 'checkbox' && f.elements[i].checked == false ) f.elements[i].checked = true;
}
}

//체크박스 모두 리셋
function CheckBoxReset(f){
for ( i=0; i<f.elements.length; i++ ) {
if ( f.elements[i].type == 'checkbox' && f.elements[i].checked == true ) f.elements[i].checked = false;
}
}

//숫자만 입력
function fnCheckNum(objInput) { 
var szBuff = "";
var chBuff = '';
var szTemp = "";
var i = 0;

szBuff = objInput.value;
for(i=0; i<szBuff.length; i++) {
chBuff = szBuff.charAt(i);
if( (chBuff < '0' || chBuff > '9') ) {
for(var j=0; j<szBuff.length; j++) {
chBuff = szBuff.charAt(j);
if( (chBuff < '0' || chBuff > '9') ) {
  continue;
} else {
  szTemp = szTemp + chBuff;
}
}
objInput.value = szTemp;

return;
}
}
} 

//영문만 입력
function fnCheckAlpha(objInput) {
var szBuff = "";
var chBuff = '';
var szTemp = "";
var i = 0;

szBuff = objInput.value;
for(i=0; i<szBuff.length; i++) {
chBuff = szBuff.charAt(i);
if( (chBuff < "A" || chBuff > "Z") && (chBuff < "a" || chBuff > "z")) {
for(var j=0; j<szBuff.length; j++) {
chBuff = szBuff.charAt(j);
if( (chBuff < "A" || chBuff > "Z") && (chBuff < "a" || chBuff > "z")) {
  continue;
} else {
  szTemp = szTemp + chBuff;
}
}
objInput.value = szTemp;

return;
}
}
}

//대문자만 입력
function fnToUpperCase(obj)
{
obj.value=obj.value.toUpperCase();
}

//오늘 이전일 체크
function CheckTime(f,year,month,day,hour,minute){
c = new Date();
c.setDate(c.getDate()-1); // 하루 빼서 처리했음 오늘이 2008-09-19 이면 실제로는 2008-09-18 로 처리했음

cYY = c.getYear()
cMM = c.getMonth()+1
cDD = c.getDate()
cHH = c.getHours()
cMI = c.getMinutes()
cSE = c.getSeconds()

check1 = cYY
check1 = ( cMM<10 ) ? check1 + '0' + cMM : check1 + ' ' + cMM
check1 = ( cDD<10 ) ? check1 + '0' + cDD : check1 + ' ' + cDD
check1 = ( cHH<10 ) ? check1 + '0' + cHH : check1 + ' ' + cHH
check1 = ( cMI<10 ) ? check1 + '0' + cMI : check1 + ' ' + cMI
check1 = ( cSE<10 ) ? check1 + '0' + cSE : check1 + ' ' + cSE
check1 = check1.replace(/ /gi,'');

check2 = year + month + day + hour + minute + '00'

//alert(check1 + " / " + check2)

if ( parseInt(check1) > parseInt(check2) ){
return false;
} else {
return true;
}
}

//파일 다운로드 모듈
//dir : 파일 위치, 서버경로 ex) /upload/bbs/
//fileNm : 파일명
//fileName : 다운로드 파일명
function fileDown(dir,fileNm,fileName){
p = process.frm;

p.action = '/fileDownload.do';
p.dir.value = dir;
p.fileNm.value = fileNm;
p.fileName.value = fileName;

p.submit();
}

//######################################### 디자이너 께서 주신 소스

//롤오보 이미지 스크립트
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_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 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 show(object) {
//if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'visible';
//else if (document.all) document.all[object].style.visibility = 'visible';
//}
//function hide(object) {
//if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden';
//else if (document.all) document.all[object].style.visibility = 'hidden';
//}
function goShow(seq) {
fNew.location.href='/productViewDiv.do?method=productView&seq='+seq
}

//######################################### 풍선도움말
function popUpHlp(L, e, img, name, price) {
if(n4) {
	var barron = document.layers[L]
	
	barron.left = e.pageX - 270
	barron.top = e.pageY + 5
	barron.visibility = "visible"
} else if(e4) {
	var barron = document.all[L]

	//encodeURI() / decodeURI()
    
	barron.style.pixelLeft = event.clientX + document.body.scrollLeft - 270
    barron.style.pixelTop = event.clientY + document.body.scrollTop + 5
	barron.innerHTML = "\
	\
	<table cellpadding=0 cellspacing=1 bgcolor=A96943>\
		<tr>\
			<td bgcolor=ffffff height=57>\
	\
			<table cellspacing=0 cellpadding=0>\
				<tr>\
					<!--td rowspan=2> &nbsp; <img src=/images/etc/002.gif></td-->\
					<td rowspan=2><img src=/upload/product/"+img+" width=50 height=50></td>\
					<td> &nbsp; <font style=color:74410A;font-weight:bold>"+(name.replace("???","")).replace("?毁","")+"</font> <font style=color:BAA98B>| 200ml &nbsp; </td>\
				</tr>\
				<tr>\
					<td> &nbsp; <img src=/images/etc/001.gif align=absmiddle> <font style=color:A86A41;font-weight:bold>"+price+"원</font></td>\
				</tr>\
			</table>\
	\
			</td>\
		</tr>\
	</table>"

    barron.style.visibility = "visible"
}
}

function popDownHlp(L) {
if(n4) document.layers[L].visibility = "hidden"
else if(e4) document.all[L].style.visibility = "hidden"
}

var arrayTelNo = new Array(
new Array('02', '02'), 
new Array('031', '031'), 
new Array('032', '032'), 
new Array('033', '033'), 
new Array('041', '041'), 
new Array('042', '042'), 
new Array('043', '043'), 
new Array('051', '051'), 
new Array('052', '052'), 
new Array('053', '053'), 
new Array('054', '054'),
new Array('055', '055'),
new Array('061', '061'),
new Array('062', '062'),
new Array('063', '063'),
new Array('064', '064'),
new Array('070', '070')
);
var arrayHpNo = new Array(
new Array('010', '010'), 
new Array('011', '011'), 
new Array('016', '016'), 
new Array('017', '017'), 
new Array('018', '018'), 
new Array('019', '019')
);
//######################################### 전화번호 국번
function printTelNo(key) {
var txt = "";
for(var i=0; i < arrayTelNo.length; i++) {
var arr = arrayTelNo[i];
var selected = (key == arr[0])?"selected":"";
txt += "<option value='"+arr[0]+"' "+selected+">"+arr[1]+"</option>";
}
//txt = "<option value='02'>02</option>"
//+ "<option value='031'>031</option>"
//+ "<option value='032'>032</option>"
//+ "<option value='033'>033</option>"
//+ "<option value='041'>041</option>"
//+ "<option value='042'>042</option>"
//+ "<option value='043'>043</option>"
//+ "<option value='051'>051</option>"
//+ "<option value='052'>052</option>"
//+ "<option value='053'>053</option>"
//+ "<option value='054'>054</option>"
//+ "<option value='055'>055</option>"
//+ "<option value='061'>061</option>"
//+ "<option value='062'>062</option>"
//+ "<option value='063'>063</option>"
//+ "<option value='064'>064</option>";
return txt;
}

function printTelNo2(key) {
for(var i=0; i < arrayTelNo.length; i++) {
var arr = arrayTelNo[i];
//var selected = (key == arr[0])?"selected":"";
//document.write("<option value='"+arr[0]+"' "+selected+">"+arr[1]+"</option>");
if(key == arr[0]) {
	document.write("<option value='"+arr[0]+"' selected>"+arr[1]+"</option>");
}
else
	document.write("<option value='"+arr[0]+"'>"+arr[1]+"</option>");
}
}

//######################################### 핸드폰 국번
function printHpNo() {
var txt = "";
txt = "<option value='010'>010</option>"
+ "<option value='011'>011</option>"
+ "<option value='016'>016</option>"
+ "<option value='017'>017</option>"
+ "<option value='018'>018</option>"
+ "<option value='019'>019</option>";
return txt;
}

function printHpNo2(key) {
for(var i=0; i < arrayHpNo.length; i++) {
var arr = arrayHpNo[i];
//var selected = (key == arr[0])?"selected":"";
//document.write("<option value='"+arr[0]+"' "+selected+">"+arr[1]+"</option>");
if(key == arr[0]) {
	document.write("<option value='"+arr[0]+"' selected>"+arr[1]+"</option>");
}
else
	document.write("<option value='"+arr[0]+"'>"+arr[1]+"</option>");
}
}

//우편번호 검색
function zipSearch(targ0, targ1, type) {
var addr = document.location.href;
var _url = 'zipSearch.do?method=zipSearch&targ0='+targ0+'&targ1='+targ1+'&type='+type;
if(addr.indexOf('https://') > -1) {
_url = strSecureUrl + _url;
}

//openWinCen('zipSearch.do?method=zipSearch&targ0='+targ0+'&targ1='+targ1+"&type="+type,'zipSearch',592,338,'scrollbar=no');
openWinCen(_url,'zipSearch',592,338,'scrollbar=no');
}

//개체가 배열인지 확인
function hasArrayObj(arg0) {
if(arg0.length) 
return true;
else
return false;
}

//전체 체크 함수
//input :  arg0 => 전체선택 체크박스
//	arg1 => 타겟
function fnChkAll(arg0, arg1) {
if(arg1) {
var chkfl = (arg0.checked)?'checked':'';
if(hasArrayObj(arg1)) {			
	for(var i=0; i < arg1.length; i++ ) {
		if(!arg1[i].disabled) 
			arg1[i].checked = chkfl;
	}
} else {
	if(!arg1.disabled) 
		arg1.checked = chkfl;
}
}

}

n4 = (document.layers) ? 1 : 0
e4 = (document.all) ? 1 : 0

//장바구니 넣기
function fnCart(mode,prodInfo){
location.href = 'cart.do?method=cartAction&mode='+mode+'&prodInfo='+prodInfo

// mode : 장바구니:CART, 즉시구매:ORDER
// prodInfo : 제품코드$Sap코드$수량$판매가@제품코드$Sap코드$수량$판매가@제품코드$Sap코드$수량$판매가@
}

//장바구니 넣기
function fnCart2(mode,prodInfo, rtnUrl){	
location.href = 'cart.do?method=cartAction&mode='+mode+'&prodInfo='+prodInfo+'&returnUrl='+rtnUrl

// mode : 장바구니:CART, 즉시구매:ORDER
// prodInfo : 제품코드$Sap코드$수량$판매가@제품코드$Sap코드$수량$판매가@제품코드$Sap코드$수량$판매가@
}

//비교상품
function fnSaveCompare(prdSeqArr) {
p = process.frm

p.action = '/compareExecute.do?method=compareExecute'
p.prdSeqArr.value = prdSeqArr

p.submit();
}

//상품순서
function fnSaveStep(prdSeqArr,orderByArr) {
p = process.frm

p.action = '/stepExecute.do?method=stepExecute'
p.prdSeqArr.value = prdSeqArr
p.orderByArr.value = orderByArr

p.submit();
}

//상품순서 삭제
function fnDeleteStep(prdSeqArr) {
p = process.frm

p.action = '/stepExecute.do?method=stepExecute'
p.mode.value = 'delete'
p.prdSeqArr.value = prdSeqArr

p.submit();
}

//상품순서 전체 삭제
function fnDeleteStepAll() {
if ( confirm('모든 상품 순서가 삭제 됩니다.\n\n삭제 하시겠습니까?') ){
p = process.frm

p.action = '/stepExecute.do?method=stepExecute'
p.mode.value = 'deleteAll'

p.submit();
}
}

//입력값 콤마 제거하기
function fnDelComma(src, flag) {
if(flag == 1) {	// By Value
return src.replace(/,/g,"");
} else {
src.value = src.value.replace(/,/g,"");
}
}

//입력값콤마 붙이기
function fnSetComma(src, flag) {
if(flag == 1) {
return fnComma1000(src, flag);
}
}

function fnComma1000(obj1, flag) { 
var sOrg;
if(flag == 1) { // byval
//sOrg = obj1.replace(/ /g, "");
sOrg = obj1;
} else {
sOrg = eval(obj1).value.replace(/ /g, "");   
}

if(isNaN(sOrg) || sOrg.length==0) return "";

var sRetVal     = "";
var sTmpVal     = "";
var sFractionVal  = "";

sOrg = sOrg.toString();
sOrg = sOrg.replace(/,/g,"");


var lLengh = sOrg.search(/\./);

if (lLengh<0) {
lLengh = sOrg.length;
}
else
sFractionVal = sOrg.substr(lLengh);

lLengh    = lLengh;
var lRemainder  = lLengh % 3;

if (lRemainder == 0 && lLengh > 0)
lRemainder  = 3;

sRetVal = sOrg.substr(0,lRemainder);

while(lRemainder < lLengh) {
sTmpVal = sTmpVal + "," + sOrg.substr(lRemainder,3);
lRemainder  += 3;
}
if(sRetVal == "-") sTmpVal = sTmpVal.substr(1,sTmpVal.length);
sRetVal = sRetVal + sTmpVal + sFractionVal;  
if(flag == 1) {
return sRetVal;
} else {
eval(obj1).value = sRetVal ;
}
}

//select 옵션 추가
function fncSelectAdd(obj,value,text){
oOption=document.createElement("OPTION");
oOption.value = value
oOption.text = text
obj.options.add(oOption);
}

//select 옵션 삭제
function fncSelectDel(obj){
if ( obj.value != '' ) 
obj[obj.selectedIndex] = null
else 
alert('값을 선택해 주세요')
}

//즐겨찾기
function favor(){
window.external.AddFavorite('http://shop.innisfree.co.kr','♥♥ 이니스프리 쇼핑몰 ♥♥')
}


function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
}
else {
return document[movieName];
}
}

//플래시 메인비쥬얼(로그인/리아 포함)함수 시작
function SWFLoader(width,height,dir,num1,num2,num3,url1,url2,url3,url4,url5) {
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
document.write("<param name='allowScriptAccess' value='always'>");
document.write("<param name='allowFullScreen' value='false'>");
document.write("<param name='movie' value='"+dir+"'>");
document.write("<param name='quality' value='high'>");
document.write("<param name='wmode' value='transparent'>");
document.write("<param name='base' value='.'>");
document.write("<param name=FlashVars value='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"&url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' />");
document.write("<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='//www.macromedia.com/go/getflashplayer'>");
document.write("</object>");
}
//플래시 메인비쥬얼(로그인/리아 포함)함수 끝


//동영상 플레이어
function fncPlayer(file){
window.open('/common/player.jsp?file='+file,'','left=50,height=50,width=479,height=421')
}


//스킨트러블
/*
function skinTrouble(e) {
var width = 79;
var height = 40;
var dir = "/images/flash/icon_herb.swf";		
var type = e;

html = "<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='"+width+"' height='"+height+"'>";
html += "<param name='allowScriptAccess' value='always'>";
html += "<param name='allowFullScreen' value='false'>";
html += "<param name='movie' value='"+dir+"'>";
html += "<param name='quality' value='high'>";
html += "<param name='wmode' value='transparent'>";
html += "<param name='base' value='.'>";
html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
html += "</object>";
var skinTroubleBtn = document.getElementById("Btn");
skinTroubleBtn.style.display = "";
skinTroubleBtn.innerHTML = html;

if(e=="on") {
document.getElementById("hurbFind").className = "on";
var skinTroubleBtn = document.getElementById("Btn");
skinTroubleBtn.style.display = "none";
skinTroubleBtn.innerHTML = "";
}
else {
document.getElementById("hurbFind").className = "off";
var skinTroubleBtn = document.getElementById("Btn");
skinTroubleBtn.style.display = "";
skinTroubleBtn.innerHTML = html;
}
}*/
//스킨트러블
function skinTrouble(e) {
if(e=="on") {
document.getElementById("hurbFind").className = "on";
document.getElementById("hurbFind2").className = "on";
}
else {
document.getElementById("hurbFind").className = "off";
document.getElementById("hurbFind2").className = "off";
}
}

//quickSearch on off 하면서 새로고침?!
function quickSearch(e, f) {
var width = 897;
var height = 437;
var dir = "/images/flash/quickSearch.swf";
var url1 = "/product/search_xml.jsp";
var type = e;
var _f = "";
if(f != undefined) _f = f;
html = "<object id='quickSearchFlash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
html += "<param name='allowScriptAccess' value='always'>";
html += "<param name='allowFullScreen' value='false'>";
html += "<param name='movie' value='"+dir+"'>";
html += "<param name='quality' value='high'>";
html += "<param name='wmode' value='transparent'>";
html += "<param name='base' value='.'>";
html += "<param name=FlashVars value='url1="+url1+"&type="+e+"&keyword="+_f+"' />";
html += "<embed name='quickSearchFlash' base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"&keyword="+_f+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='//www.macromedia.com/go/getflashplayer'>";
html += "</object>";


if(e == "on") {

var searchObj = document.getElementById("quickSearch");
searchObj.style.display = "";
searchObj.innerHTML = html;
}
if(e == "off") {
var searchObj = document.getElementById("quickSearch");
searchObj.style.display = "none";
searchObj.innerHTML = "";
}
}

//메인 영상
function m_movie(e, url1) {
var width = 425;
var height = 362;
var dir = "/images/flash/movie.swf";		
var type = e;

html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
html += "<param name='allowScriptAccess' value='always'>";
html += "<param name='allowFullScreen' value='false'>";
html += "<param name='movie' value='"+dir+"'>";
html += "<param name='quality' value='high'>";
html += "<param name='wmode' value='transparent'>";
html += "<param name='base' value='.'>";
html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='//www.macromedia.com/go/getflashplayer'>";
html += "</object>";
var movie = document.getElementById("movie");
movie.style.display = "";
movie.innerHTML = html;
}

function hiddenLayer() {
var movie = document.getElementById("movie");
movie.style.display = "none";
movie.innerHTML = "";
}


//부모창 url 읽어오기
function getParentUrl() {
return window.opener.document.URL;
}

//새창 리사이즈
function windowResize(width, height) {
var height2 = document.body.scrollHeight;

if(height < height2) 
height = height2 + 50;

window.resizeTo(width, height);
window.scrollTo(0,0);	
}


//base64 - Encode / Decode
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + //all caps
"abcdefghijklmnopqrstuvwxyz" + //all lowercase
"0123456789+/="; // all numbers plus +/=

//base64 encode function
function encode64(inp)
{
var out = ""; //This is the output
var chr1, chr2, chr3 = ""; //These are the 3 bytes to be encoded
var enc1, enc2, enc3, enc4 = ""; //These are the 4 encoded bytes
var i = 0; //Position counter
do //Set up the loop here
{
chr1 = inp.charCodeAt(i++); //Grab the first byte
chr2 = inp.charCodeAt(i++); //Grab the second byte
chr3 = inp.charCodeAt(i++); //Grab the third byte
//Here is the actual base64 encode part.
//There really is only one way to do it.
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2))
{
enc3 = enc4 = 64;
}
else if (isNaN(chr3))
{
enc4 = 64;
}
//Lets spit out the 4 encoded bytes
out = out + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) +
keyStr.charAt(enc4);
// OK, now clean out the variables used.
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < inp.length);
//And finish off the loop
//Now return the encoded values.
return out;
}

//base64 decode function
function decode64(inp)
{
var out = ""; //This is the output
var chr1, chr2, chr3 = ""; //These are the 3 decoded bytes
var enc1, enc2, enc3, enc4 = ""; //These are the 4 bytes to be decoded
var i = 0; //Position counter
// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
var base64test = /[^A-Za-z0-9+/=]/g;
if (base64test.exec(inp)) //Do some error checking
{
alert("There were invalid base64 characters in the input text.n" +
"Valid base64 characters are A-Z, a-z, 0-9, ?+?, ?/?, and ?=?n" +
"Expect errors in decoding.");
}
inp = inp.replace(/[^A-Za-z0-9+/=]/g, "");
do //Here’s the decode loop.
{
//Grab 4 bytes of encoded content.
enc1 = keyStr.indexOf(inp.charAt(i++));
enc2 = keyStr.indexOf(inp.charAt(i++));
enc3 = keyStr.indexOf(inp.charAt(i++));
enc4 = keyStr.indexOf(inp.charAt(i++));
//Heres the decode part. There’s really only one way to do it.
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
//Start to output decoded content
out = out + String.fromCharCode(chr1);
if (enc3 != 64)
{
out = out + String.fromCharCode(chr2);
}
if (enc4 != 64)
{
out = out + String.fromCharCode(chr3);
}
//now clean out the variables used
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < inp.length); //finish off the loop
//Now return the decoded values.
return out;
}

//모든폼에 OnSubmit시 그냥 맹하게 돌려줄때 ㅋㅋ
function GoHehe(){
hi = "nerong"
}

//Ajax loding 시 보여줄꺼당.. by Bae
var loading_html = "<TABLE width='100%' height='100%' align='center'>";
loading_html = loading_html + "<TR><TD align='center'><img src ='/images/admin/jquery/ajax-loader.gif'></TD></TR></TABLE>";


//트위터 2010.09.06 배선규추가
function go_Twitter(twTitle, twURL){
window.open("http://twitter.com/home?status="+encodeURL(twTitle)+" | "+encodeURL(twURL), "SNSWINDOW","");
}

//미투데이 2010.09.06 배선규추가
function go_Me2day(me2Title, me2URL){
window.open("http://me2day.net/posts/new?new_post[body]="+encodeURL(me2Title)+" | "+encodeURL(me2URL), "SNSWINDOW","");
}

//URL인코딩 2010.09.06 배선규추가
function encodeURL(str){
var s0, i, s, u;
s0 = "";                // encoded str
for (i = 0; i < str.length; i++){   // scan the source
s = str.charAt(i);
u = str.charCodeAt(i);          // get unicode of the char
if (s == " "){s0 += "+";}       // SP should be converted to "+"
else {
    if ( u == 0x2a || u == 0x2d || u == 0x2e || u == 0x5f || ((u >= 0x30) && (u <= 0x39)) || ((u >= 0x41) && (u <= 0x5a)) || ((u >= 0x61) && (u <= 0x7a))){       // check for escape
        s0 = s0 + s;            // don't escape
    }
    else {                  // escape
        if ((u >= 0x0) && (u <= 0x7f)){     // single byte format
            s = "0"+u.toString(16);
            s0 += "%"+ s.substr(s.length-2);
        }
        else if (u > 0x1fffff){     // quaternary byte format (extended)
            s0 += "%" + (oxf0 + ((u & 0x1c0000) >> 18)).toString(16);
            s0 += "%" + (0x80 + ((u & 0x3f000) >> 12)).toString(16);
            s0 += "%" + (0x80 + ((u & 0xfc0) >> 6)).toString(16);
            s0 += "%" + (0x80 + (u & 0x3f)).toString(16);
        }
        else if (u > 0x7ff){        // triple byte format
            s0 += "%" + (0xe0 + ((u & 0xf000) >> 12)).toString(16);
            s0 += "%" + (0x80 + ((u & 0xfc0) >> 6)).toString(16);
            s0 += "%" + (0x80 + (u & 0x3f)).toString(16);
        }
        else {                      // double byte format
            s0 += "%" + (0xc0 + ((u & 0x7c0) >> 6)).toString(16);
            s0 += "%" + (0x80 + (u & 0x3f)).toString(16);
        }
    }
}
}
return s0;
}

/*  Function Equivalent to java.net.URLDecoder.decode(String, "UTF-8")
Copyright (C) 2002, Cresc Corp.
Version: 1.0
*/

//URL디코딩 2010.09.06 배선규추가
function decodeURL(str){
var s0, i, j, s, ss, u, n, f;
s0 = "";                // decoded str
for (i = 0; i < str.length; i++){   // scan the source str
s = str.charAt(i);
if (s == "+"){s0 += " ";}       // "+" should be changed to SP
else {
    if (s != "%"){s0 += s;}     // add an unescaped char
    else{               // escape sequence decoding
        u = 0;          // unicode of the character
        f = 1;          // escape flag, zero means end of this sequence
        while (true) {
            ss = "";        // local str to parse as int
                for (j = 0; j < 2; j++ ) {  // get two maximum hex characters for parse
                    sss = str.charAt(++i);
                    if (((sss >= "0") && (sss <= "9")) || ((sss >= "a") && (sss <= "f"))  || ((sss >= "A") && (sss <= "F"))) {
                        ss += sss;      // if hex, add the hex character
                    } else {--i; break;}    // not a hex char., exit the loop
                }
            n = parseInt(ss, 16);           // parse the hex str as byte
            if (n <= 0x7f){u = n; f = 1;}   // single byte format
            if ((n >= 0xc0) && (n <= 0xdf)){u = n & 0x1f; f = 2;}   // double byte format
            if ((n >= 0xe0) && (n <= 0xef)){u = n & 0x0f; f = 3;}   // triple byte format
            if ((n >= 0xf0) && (n <= 0xf7)){u = n & 0x07; f = 4;}   // quaternary byte format (extended)
            if ((n >= 0x80) && (n <= 0xbf)){u = (u << 6) + (n & 0x3f); --f;}         // not a first, shift and add 6 lower bits
            if (f <= 1){break;}         // end of the utf byte sequence
            if (str.charAt(i + 1) == "%"){ i++ ;}                   // test for the next shift byte
            else {break;}                   // abnormal, format error
        }
    s0 += String.fromCharCode(u);           // add the escaped character
    }
}
}

return s0;
}



function SWFLoader_island() {
	var obj = new String;   
	var parameter = new String;
	var embed = new String;
	
	var classId = new String;
    var codeBase = new String;
	var pluginSpage = new String;
	var embedType = new String;	
	var allParameter = new String;	
	
	var src = new String;
	var width = new String;
	var height = new String;
	var id = new String;
	var layer = new String;
	var arg = new String;
	var altText = new String;
	var wmode = new String;

	this.init = function ( w, h, s, a ) {
		width = w; //넓이
		height = h; //높이
		src = s; //파일경로
		arg = String(a).replace(/\&/gi, '%26'); // 매개변수

		wmode = 'transparent'; //모드설정

		classId = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
		codeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';
		pluginSpage = 'http://www.macromedia.com/go/getflashplayer';
		embedType = 'application/x-shockwave-flash';

		parameter += "<param name='allowScriptAccess' value='always'>\n";
		parameter += "<param name='allowFullScreen' value='false'\n>";
		parameter += "<param name='movie' value='"+ s + "'>\n";
		parameter += "<param name='quality' value='high'>\n";
		parameter += "<param name='base' value='.'>\n";
		parameter += "<param name=FlashVars value='arg="+arg+"'>\n";
	}
	
	//플래시 오브젝트 옵션설정
	this.parameter = function ( param, value ) {
		 parameter += "<param name='"+param +"' value='"+ value + "'>\n";
	}

	// 플래시 wmode 설정 setFlash.wmode('window')
	this.wmode = function ( value ) {
		wmode = value;
	}

	// 플래시 아이디 설정
	this.id = function ( value ) {
		id = value;
	}
	
	// 플래시 대체텍스트 설정
	this.alt = function ( value ) {
		altText = value;
	}

	// 플래시 삽입 레이어 설정
	this.layer = function ( value ) {
		if(value == undefined) {
			layer = "";
		} else {
			layer = value;
		}
	}

	this.show = function () {
		obj = '<object id="'+id+'" width="'+width+'" height="'+height+'" classid="'+classId+'" codebase="'+codeBase+'">\n'+
			parameter +
			'<param name="wmode" value="'+wmode+'">\n'+
			'<!--[if !IE]>-->\n' +
			'<object type="application/x-shockwave-flash" data="' + src + '" width="' + width + '" height="' + height + '" name="' + id + '">\n' +
				parameter +
				'<param name="wmode" value="'+wmode+'">\n'+
			'<!--<![endif]-->\n' +
				'<div class="alt-content alt-' + id + '">' + altText + '</div>\n' +
			'<!--[if !IE]>-->\n' +
			'</object>\n' +
			'<!--<![endif]-->\n' +
		'</object>';

		if(layer == "") {
			document.write(obj);
		}else{
			var div = document.getElementById( layer);
			div.style.display = "";
			div.innerHTML = obj;
		}
	}
}



/* 플래시 */
function flashLoader(width,height,dir,mainPos,subPos){
	if (dir.indexOf("swf") > 0) {
		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='"+width+"' height='"+height+"'>");
		document.write("<param name='movie' value='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("<param name='base' value='.'>");
		document.write("<param name=FlashVars value='mmenu="+mainPos+"&smenu="+subPos+"' />");
		document.write("<embed base='.' FlashVars='mmenu="+mainPos+"&smenu="+subPos+"' src='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>");
		document.write("</object>");
	}
	else {
		document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>");
	}
}

//------------------- SWF 공통 제어함수 시작
/**
 *	version 1.5
 *	최종수정일 : 2008. 11. 10
 *
 *	-- 플래시로더 객체생성 기본사용방법 ---
 *	<script language="javascript" type="Text/JavaScript">
 *		var setFlash = new SWFLoader();
 *		setFlash.init( '넓이', '높이', '파일경로', 총 매개변수값);
 *		setFlash.parameter('파람이름','값'); //이미 기본옵션 사용중
 *		setFlash.wmode('window'); //이미 기본옵션('transparent') 사용중
 *		setFlash.id('아이디이름'); //예) ID_SWF파일이름
 *		setFlash.alt('값');	// 플래시 대체 텍스트 값 입력
 *		setFlash.layer('div 아이디 이름')  //예) <div id='SWF파일명Layer'></div> 
 *		setFlash.show( );
 *	</script>
 *
 *	SWF파일 아이디 표준화 사용방법 : ID_파일명(대소문자구분) 예제 : 파일명이 navi.swf 인경우 --> 'ID_navi'
 *
 *	-- setFlash.layer() 사용시 방법 - 기본사용방법을 showSWFLayer() 함수로
 *     객체를 감싸주고 메서드호출 시 인자로 Div 아이디 값을 넘겨준다.
 *	
 *	<script language="javascript" type="Text/JavaScript">
 *		function showSWFLayer( layername) {
 *			var setFlash = new SWFLoader();
 *			setFlash.init( '넓이', '높이', '파일경로', 총 매개변수값);
 *			setFlash.parameter('파람이름','값'); //이미 기본옵션 사용중
 *			setFlash.id('아이디이름'); //예) ID_SWF파일이름
 *			setFlash.layer(layername)  //예) <div id='SWF파일명Layer'></div>
 *			setFlash.show();
 *		}
 *  </script>
 *
 *	<a href="javascript:showSWFLayer('siteMapLayer')">열기</a>
 *
 *	-- 최종 추가수정 내용
 *	url 입력시 "&" 엠퍼센드 기호 --> "&amp;" 자동치환기능 추가 
 *
 */

function SWFLoader() {
	var obj = new String;
	var parameter = new String;
	var embed = new String;
	
	var classId = new String;
    var codeBase = new String;
	var pluginSpage = new String;
	var embedType = new String;	
	var allParameter = new String;	
	
	var src = new String;
	var width = new String;
	var height = new String;
	var id = new String;
	var layer = new String;
	var arg = new String;
	var altText = new String;
	var wmode = new String;

	this.init = function ( w, h, s, a ) {
		width = w; //넓이
		height = h; //높이
		src = s; //파일경로
		arg = String(a).replace(/\&/gi, '%26'); // 매개변수

		wmode = 'transparent'; //모드설정

		classId = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
		codeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';
		pluginSpage = 'http://www.macromedia.com/go/getflashplayer';
		embedType = 'application/x-shockwave-flash';

		parameter += "<param name='allowScriptAccess' value='always'>\n";
		parameter += "<param name='allowFullScreen' value='false'\n>";
		parameter += "<param name='movie' value='"+ s + "'>\n";
		parameter += "<param name='quality' value='high'>\n";
		parameter += "<param name='base' value='.'>\n";
		parameter += "<param name=FlashVars value='arg="+arg+"'>\n";
	}
	
	//플래시 오브젝트 옵션설정
	this.parameter = function ( param, value ) {
		 parameter += "<param name='"+param +"' value='"+ value + "'>\n";
	}

	// 플래시 wmode 설정 setFlash.wmode('window')
	this.wmode = function ( value ) {
		wmode = value;
	}

	// 플래시 아이디 설정
	this.id = function ( value ) {
		id = value;
	}
	
	// 플래시 대체텍스트 설정
	this.alt = function ( value ) {
		altText = value;
	}

	// 플래시 삽입 레이어 설정
	this.layer = function ( value ) {
		if(value == undefined) {
			layer = "";
		} else {
			layer = value;
		}
	}

	this.show = function () {
		obj = '<object id="'+id+'" width="'+width+'" height="'+height+'" classid="'+classId+'" codebase="'+codeBase+'">\n'+
			parameter +
			'<param name="wmode" value="'+wmode+'">\n'+
			'<!--[if !IE]>-->\n' +
			'<object type="application/x-shockwave-flash" data="' + src + '" width="' + width + '" height="' + height + '" name="' + id + '">\n' +
				parameter +
				'<param name="wmode" value="'+wmode+'">\n'+
			'<!--<![endif]-->\n' +
				'<div class="alt-content alt-' + id + '">' + altText + '</div>\n' +
			'<!--[if !IE]>-->\n' +
			'</object>\n' +
			'<!--<![endif]-->\n' +
		'</object>';

		if(layer == "") {
			document.write(obj);
		}else{
			var div = document.getElementById( layer);
			div.style.display = "";
			div.innerHTML = obj;
		}
	}
}

function hideSWFLayer( div) {
	var div = document.getElementById( div);
	div.style.display = "";
	div.innerHTML = "";
}

function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	}
	else {
		return document[movieName];
	}
 }

 function callExternalInterface(movieId) {
    thisMovie(movieId).moveMc();	
}

function resizeSWF( id, height){
	document.getElementById( id ).height = height;
}
//------------------- SWF 공통 제어함수 끝
/*
$(function(){
        var width = parseInt($(document).width());
        alert(width);
		$("#shoppFooter").css("width",width);
});*/
// 디폴트 동영상 재생.
function vod(width,height,dir,autostart,uiMode){
	//alert(width +", "+ height);
	var html = "";
	html += "<OBJECT ID='mPlayer' height='"+height+"' width='"+width+"' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>\n";
	html += "<param name='URL' value='"+dir+"'>\n";
	html += "<param name='DefaultFrame' value='Info'>\n";
	html += "<param name='AutoStart' value='"+autostart+"'>\n";
	html += "<param name='AllowScan' value='1'>\n";
	html += "<param NAME='AllowChangeDisplaySize' VALUE='1'>\n";
	html += "<param name='AutoSize' value='false'>\n";
	html += "<param NAME='AutoRewind' VALUE='1'>\n";
	html += "<param name='AutoResize' value='0'>\n";
	html += "<param NAME='EnableFullScreenControls' VALUE='1'>\n";
	html += "<param name='TransparentAtStart' value='1'>\n";
	html += "<param name='EnableContextMenu' value='1'>\n";
	html += "<param name='ShowPositionControls' value='1'>\n";
	html += "<param name='ShowStatusBar' value='0'>\n";
	html += "<param name='DisplaySize' value='4'>\n";
	html += "<param name='windowlessVideo' value='true' />\n";
	html += "<PARAM name='uiMode' value='"+uiMode+"'>\n";
	html += "<EMBED id='mPlayer' width='"+width+"' Height='"+height+"' \n";
	html += "type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'\n";
	html += " src='"+dir+"' \n";
	html += " DefaultFrame='Info'\n";
	html += " AutoStart='"+autostart+"'\n";
	html += " AllowScan='1'\n";
	html += " AllowChangeDisplaySize='1'\n";
	html += " AutoSize='false'\n";
	html += " AutoRewind='1' \n";
	html += " AutoResize='0' \n";
	html += " EnableFullScreenControls='1' \n";
	html += " TransparentAtStart='1' \n";
	html += " EnableContextMenu='1' \n";
	html += " ShowPositionControls='1' \n";
	html += " ShowStatusBar='0' \n";
	html += " DisplaySize='4' \n";
	html += " uiMode='"+uiMode+"' \n";
	html += " windowlessVideo=true >\n";
	html += " </EMBED>\n";
	html += "</OBJECT>\n";
	$('#mv').html(html);
}

function fncChkLogin(url){
	alert('먼저로그인을 해주세요.'); 
	jf_shopLocation(url);
	//if ( url.replace(/ /gi,'').length > 0 ) location.href = '/login.do?returnUrl=' + url

}

//BeautyPoint Save Help Popup [Change]
function btySave(exeMypageHome) {	
	var btySave = "/common/popup/bty_save.jsp?exeMypageHome="+exeMypageHome;	
	openPopup("btySave", 500, 300, btySave);
}

//BeautyPoint Pay Help Popup [Change]
function btyPay() {	
	var btyPay = "/common/popup/bty_pay.jsp";
	openPopup("btyPay", 500, 300, btyPay);
}
//index==1(MyPage SubMain) , index==2(AP combine) 
function go_newPage(index){
	if(index=="1"){		
		jf_shopLocation('/mypageHome.do?method=exeMypageHome');			
	}else{		
		window.open('https://www.amorepacific.com/utility/mem_join_now.jsp', 'amorepacific' ,'toolbar=yes,menubar=yea,location=yes,scrollbars=yes ,resizable=yes, status=yes, width=1000px,height=800px');
		//ApMemberMngPop('JOIN', 'AIK');
	}
}

