	function photoWindow(ref) {
	 var photo = eval(document.itemorder.photo);
 	 var Middle = eval(document.itemorder.Middle);
	 var Large = eval(document.itemorder.Large);
 	 ref = ref + "?photo=" + photo.value;
 	 ref = ref + "&Middle=" + Middle.value;
 	 ref = ref + "&Large=" + Large.value;
	 var window_left = (screen.width-640)/2;
	 var window_top = (screen.height-480)/2;
	 window.open(ref,"checkIDWin",'scrollbars=yes,width=450,height=451,resizable=yes,status=no,top=' + window_top + ',left=' + window_left + '');
	}

//¼ýÀÚ °Ë»ö ÀÚ¹Ù½ºÆ®¸³Æ®
        function Check_Num(tocheck) {
                var isnum = true;

                if (tocheck == null || tocheck == "") {
                        isnum = false;
                        return isnum;
                }

                for (var j = 0 ; j < tocheck.length; j++) {
                        if (tocheck.substring(j, j + 1) != "0" &&
                            tocheck.substring(j, j + 1) != "1" &&
                            tocheck.substring(j, j + 1) != "2" &&
                            tocheck.substring(j, j + 1) != "3" &&
                            tocheck.substring(j, j + 1) != "4" &&
                            tocheck.substring(j, j + 1) != "5" &&
                            tocheck.substring(j, j + 1) != "6" &&
                            tocheck.substring(j, j + 1) != "7" &&
                            tocheck.substring(j, j + 1) != "8" &&
                            tocheck.substring(j, j + 1) != "9") {
                                isnum = false;
                        }
                }
                return isnum;
        }

	function frm_send_cart(frm){

		if( frm.quantitys.value == "0" ){
			alert(" ¼ö·®À» ÇÑ°³ÀÌ»ó ¼±ÅÃÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù. ");
			frm.quantitys.focus();
			return;
		}

	    thisfilednum = Check_Num(frm.quantitys.value);
        if (!thisfilednum) {
			alert("¼ö·®Àº ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.");
            frm.quantitys.focus();
            return;
        }

		frm.action = "./order/item_cookie.php3";
		frm.submit();

		return;
	}

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

		return;
	}

function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


