<!--
// ·Î±×ÀÎ ÆË¾÷
function PopupLogin(returnUrl) {
	//alert(returnUrl);
	poplogin=window.open("http://www.dogcafe.co.kr/member/popuplogin.html?returnUrl="+returnUrl,"popuplogin","top=0,left=0,width=360,height=230, scrollbars=0 toolbar=0, titlebar=0, resizable=no ,status=0");
	poplogin.focus();
}

// ÁÖ¹®°Ë»ö ÆË¾÷
function PopupOS(){
	window.open("orderSearch.html","OrderSearch","top=0, left=0, width=448, height=400, scrollbars=0, toolbar=0, titlebar=0, resizable=no, status=0");
	OrderSearch.focus();
}

// ÆäÀÌÁö ¸®ÇÁ·¹½¬
function LoginReload() {
	location.reload();
}

function naver_decode(keyword,code,cuid) {
	var keyvar;
	//alert(keyword);
	if(code == "0"){
		keyvar = unescape(keyword);
	}else if(code == "1"){
		keyvar = keyword;
	}
	snaver.location.href="http://www.dogcafe.co.kr/snaver.html?cuid="+cuid+"&keyword="+keyvar;
}

function win_open(title, url, width, height) {
	window.open(url,title,'top=100,left=200, width='+width+',height='+height+',scrollbars=0, toolbar=0, titlebar=0, resizable=no,status=no');
}

// °Ë»öÃ¢ Å¬¸¯½Ã ³»¿ë ÃÊ±âÈ­
function SearchClick(f) {
	f.value = "";
}

// ÃÖ±Ùº»»óÇ° ¾÷´Ù¿î
function doScrollerIE(dir, src, amount) { 
	if (amount==null) amount=10; 
	if (dir=="up") 
	document.all[src].scrollTop-=amount; 
	else 
	document.all[src].scrollTop+=amount; 
	//if (sRepeat==null) 
	//sRepeat = setInterval("doScrollerIE('" + dir + "','" + src + "'," + amount + ")",100); 
	return false 
}


// ¸¶ÀÌµµÄ« Å¬¸¯½Ã ÇÏ·çÄíÅ°
function startTime(){
	var time= new Date();
	hours= time.getHours();
	mins= time.getMinutes();
	secs= time.getSeconds();
	closeTime=hours*3600+mins*60+secs;
	closeTime+=86400;  //½Ã°£¼³Á¤
	Timer();
}

function Timer(){
	var time= new Date();
	hours= time.getHours();
	mins= time.getMinutes();
	secs= time.getSeconds();
	curTime=hours*3600+mins*60+secs
	if (curTime>=closeTime){
		document.all['indexpopup1'].style.visibility = "hidden";
	} else {
		window.setTimeout("Timer()",1000)
	}
}

function setCookie( name, value, expiredays ) { 
	var todayDate = new Date(); 
		todayDate.setDate( todayDate.getDate() + expiredays ); 
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
	} 

function IP1close() { 
	if ( document.IP1cf.chkbox.checked ){ 
		setCookie( "IP1dc", "done" , 1 ); 
	} 
	document.all['indexpopup1'].style.visibility = "hidden";
}

function IP2close() { 
	if ( document.IP2cf.chkbox.checked ){ 
		setCookie( "IP2dc", "done" , 1 ); 
	} 
	document.all['indexpopup2'].style.visibility = "hidden";
}

function closeMD() { 
	setCookie( "MDnotice", "done" , 1 ); 
	document.all['MDnotice'].style.visibility = "hidden";
	location.href('/MyDoca/');
}


// SNS º¸³»±â
function ToSNS(target, type, msg, url, event, tag) {
	var href = "/product_tosns.php?target=" + target + "&type=" + type + "&msg=" + encodeURIComponent(msg) + "&url=" + encodeURIComponent(url) + "&event=" + encodeURIComponent(event) + "&tag=" + encodeURIComponent(tag);
	var win = window.open(href, 'SNSº¸³»±â', '');
	if (win) {
		win.focus();
	}
}


//-->
