<!--
//¿ÞÂÊ ¹è³Ê ¸Þ´º¿Í °ü·Ã ÇÔ¼ö ½ÃÀÛ
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//¿ÞÂÊ ¹è³Ê ¸Þ´º¿Í °ü·Ã ÇÔ¼ö ³¡

function memberLogin(f){
	if(!f.userID.value){
		alert("È¸¿øID¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		f.userID.focus();
		return false;
	}else if(!f.userPW.value){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		f.userPW.focus();
		return false;
	}else{
	  	return true;
  		//location="/member/login.php?userID="+userID.value+"&userPW="+userPW.value+"&url="+url.value;
	}
}

function findProduct(){
	if(!search.findProd.value){
		alert("Ã£°íÀÚ ÇÏ´Â »óÇ°¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
	    search.findProd.focus();
		return false;
	}else{
		return true;
  		location="http://www.dogcafe.co.kr/FproductList.php?findProd="+search.findProd.value;
	}
}

function del_Cart(thiscode,m,s,op1,op2,op3,bymethod){
	window.location="operatCart.php?act=del&item="+thiscode+"&mainType="+m+"&subType="+s+"&op1="+op1+"&op2="+op2+"&op3="+op3+"&bymethod="+bymethod;
	return;
}
function value_check(ck) {
	for(var i = 0; i < ck.value.length; i++) {
         var chr = ck.value.substr(i,1);
         if(chr < '0' || chr > '9'){
            alert("¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä!");
  		  ck.focus();
         }
 	}
	if(ck.value == '0'){
		ck.value = '1'; // ¼ö·® 0À¸·Î ¼öÁ¤½Ã 1·Î º¯°æ
	}
 	return;
}
function no_add_Cart(){
	alert("±¸ÀÔÇÏ½Ã°íÀÚ ÇÏ´Â Á¦Ç°ÀÌ ¼±ÅÃ µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
	return;
}
function frm_up_qty(frm,max){
	old_qty = parseInt(frm.value);
	if( old_qty < (max -1) ) frm.value = old_qty + 1;
	else frm.value = max - 1;
	return;
}

function frm_down_qty(frm){
	old_qty = parseInt(frm.value);
	if( old_qty > 1 ){
		frm.value = old_qty - 1;
	}
	return;
}

function frm_gonggooup_qty(frm,max){
	old_qty = parseInt(frm.value);
	if( old_qty < (max -1) ) frm.value = old_qty + 1;
	else frm.value = max - 1;
	return;
}

function frm_gonggoodown_qty(frm){
	old_qty = parseInt(frm.value);
	if( old_qty > 1 ){
		frm.value = old_qty - 1;
	}
	return;
}

function bigView(item,mode){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	ref = "/popup/popupViewL.html" + "?productNum=" + item + "&kind=" + mode;
	window.open(ref,"zipWin",'width=700,height=528,status=no,top=' + window_top + ',left=' + window_left + ',scrollbars=no');
}

function bigView00(item,mode){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	ref = "/popup/popupViewL00.html" + "?productNum=" + item + "&kind=" + mode;
	window.open(ref,"zipWin",'width=700,height=528,status=no,top=' + window_top + ',left=' + window_left + ',scrollbars=no');
}

function auctionbigView(item,mode){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	ref = "/popup/auctionpopupViewL.html" + "?productNum=" + item + "&kind=" + mode;
	window.open(ref,"zipWin",'width=700,height=528,status=no,top=' + window_top + ',left=' + window_left + ',scrollbars=no');
}

function ViewImgItem(imgName){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	ref = "/popup/popupImg.html" + "?imageName=" + imgName;
	window.open(ref,"pictionOpen",'width=700,height=500,status=no,top=' + window_top + ',left=' + window_left + ',scrollbars=yes');
}

function myOpWin(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function findInputer(){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	ref = "/popup/findPayer.html";
	window.open(ref,"findWin",'width=396,height=300,status=no,top=' + window_top + ',left=' + window_left + ',scrollbars=yes');
}

function bookmark(){
window.external.AddFavorite('http://www.dogcafe.co.kr', '´ëÇÑ¹Î±¹ 1À§ ¾Ö°ß¿ëÇ° ¼îÇÎ¸ô!!!')
}
//-->