
function toCartDL( form, businessType, catalogCode, productCode ) {
	if (form.color.value == "")
		{alert("色番号を選んでください")}
	else if (form.size.value == "")
		{alert("サイズ番号を選んでください")}
	else if (form.quan.value == "")
		{alert("数量を選んでください")}
	else{

		if ( businessType == "Darwin" )
			{document.directEntryForm.action = "/sh/do/bell/DirectEntryCmd";}
		else if ( businessType == "Life" )
			{document.directEntryForm.action = "/sh/do/life/DirectEntryCmd";
		}

		document.directEntryForm.catalogCode.value = catalogCode;
		document.directEntryForm.productCode.value = productCode;
		document.directEntryForm.colorCode.value = form.color.value;
		document.directEntryForm.sizeCode.value = form.size.value;
		document.directEntryForm.quantity.value = form.quan.value;
		document.directEntryForm.submit()
	}
}

function toCartGGi( form, businessType, catalogCode, productCode ) {
	if (form.quan.value == "")
		{alert("数量を選んでください")}
	else{

		if (businessType == "Gour1")
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd1";}
		else if ( businessType == "Gour3" )
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd3";}
		else if ( businessType == "Gour5" )
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd5";}
		else if ( businessType == "Gour6" )
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd6";}
		else if ( businessType == "Gift1" )
			{document.directEntryForm.action = "/sh/do/gift/DirectPreEntryCmd1";}
		else if ( businessType == "Gift3" )
			{document.directEntryForm.action = "/sh/do/gift/DirectPreEntryCmd3";
		}

		document.directEntryForm.catalogCode.value = catalogCode;
		document.directEntryForm.productCode.value = productCode;
		document.directEntryForm.quantity.value = form.quan.value;
		document.directEntryForm.submit()
	}
}

function toCartGGi2( form, businessType, catalogCode) {
	if (form.quan.value == "")
		{alert("数量を選んでください")}
	else{

		if (businessType == "Gour1")
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd1";}
		else if ( businessType == "Gour3" )
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd3";}
		else if ( businessType == "Gour5" )
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd5";}
		else if ( businessType == "Gour6" )
			{document.directEntryForm.action = "/sh/do/gour/DirectEntryCmd6";}
		else if ( businessType == "Gift1" )
			{document.directEntryForm.action = "/sh/do/gift/DirectPreEntryCmd1";}
		else if ( businessType == "Gift3" )
			{document.directEntryForm.action = "/sh/do/gift/DirectPreEntryCmd3";
		}

		document.directEntryForm.catalogCode.value = catalogCode;
		document.directEntryForm.productCode.value = form.selectedProductCode.value;
		document.directEntryForm.quantity.value = form.quan.value;
		document.directEntryForm.submit()
	}
}

