<!--
function insert_cart(pid,num)	{
	parent.burl.document.gourl.url.value=document.location.href;
	if (isNaN(num)) num=1;
	document.location.href='./cart.php?pid='+pid+'&num='+num+'&act=insert';
}

function insert_cart1(pid,num)	{
//	alert(document.location.href);
//	document.gourl.url.value=document.location.href;
	if (isNaN(num)) num=1;
	document.location.href='./cart.php?pid='+pid+'&num='+num+'&act=insert';
}

function continue_shopping()	{//2005-04-15 by artwoo Àå¹Ù±¸´Ï ºñ¾îÀÖÀ»¶§ ¸ÞÀÎÆäÀÌÁö·Î º¸³½´Ù.
	if(parent.burl.document.gourl.url.value==""){
		document.location.href="main.php";
	}
	else{
		document.location.href=parent.burl.document.gourl.url.value;
	}
}

function update_cart(pid)	{
	var ff=eval('document.cartlist.num'+pid);
	var num = ff.value;
	document.location.href='./cart.php?pid='+pid+'&num='+num+'&act=update';
}
function update_cart1(form,pid)	{
	var ff=eval('document.'+form+'.num'+pid);
	var num = ff.value;
	document.location.href='./cart.php?pid='+pid+'&num='+num+'&act=update';
}
function delete_cart(pid)	{
	document.location.href='./cart.php?pid='+pid+'&act=delete';
}
function empty_stock(){
	alert("Áö±ÝÀº Ç°ÀýÀÌ´Ï ³ªÁß¿¡ ÁÖ¹®ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.");
}
function go_buy_direct(pid){
	location.href='pay.php?buy_direct=1&pid='+pid+'&num='+parseInt(document.product_f.num.value);                                    
}

//-->

