
function open_cart( syohin_cd )
{
// 2006/04/19 注文画面共通化 近藤 Upd Start
//	sUrl = 'shop/cart.asp';
//	sUrl = sUrl + '?cd=' + syohin_cd + '&num=1&cmd=add';
	sUrl = '/shop/cart.asp';
	if (syohin_cd != '') {
		sUrl = sUrl + '?cd=' + syohin_cd + '&num=1&cmd=add';
	} else {
		sUrl = sUrl + '?cd=&num=0&cmd=show';
	}
	sUrl = sUrl + '&shop=20'
// 2006/04/19 注文画面共通化 近藤 Upd End
	sUrl = sUrl + '&ref=' + document.URL;

	window.location.href = sUrl;
	return true;
}

// 2006/04/19 注文画面共通化 近藤 Del Start
//function open_cart_run( syohin_cd )
//{
//	sUrl = document.domain + '/shop/cart.asp';
//	sUrl = 'http://' + sUrl + '?cd=' + syohin_cd + '&num=1&cmd=add';
//	sUrl = sUrl + '&ref=' + document.URL;

//	window.location.href = sUrl;
//	return;
//}
// 2006/04/19 注文画面共通化 近藤 Del End

function open_win(url,mwidth,mheight)
{
	eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

function open_win2(url,mwidth,mheight)
{
	eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,status=yes")')
}

function clock(){
	setTimeout('clock()',1000);
	c = new Date();
	document.getElementById("clock").innerHTML = 
	c.getHours()+"時"+c.getMinutes()+"分"+c.getSeconds()+"秒";
}

function goto_url( url )
{
	window.location.href = url ;
}

function do_submit( form )
{
	form.submit();
}

