/*============================
変数：checkcalc(theForm)
機能：チェック項目によって飛び先変更
作成：2009.3.24 K.H
============================*/

function checkcalc(theForm) {

var total;
total = 0;

for(i=0; i<8; i++){
  if(theForm.ts1[i].checked){
	total += parseInt(theForm.ts1[i].value);
  }
}

//alert(total);

	switch(total){
		case 0:
		case 1:
			location.href="/j/soushoku/kakou/mezamasi/recipe/recipe_kore001.html";
			break;
		case 2:
		case 3:
			location.href="/j/soushoku/kakou/mezamasi/recipe/recipe_kore002.html";
			break;
		case 4:
		case 5:
			location.href="/j/soushoku/kakou/mezamasi/recipe/recipe_kore003.html";
			break;
		case 6:
		case 7:
			location.href="/j/soushoku/kakou/mezamasi/recipe/recipe_kore004.html";
			break;
		case 8:
			location.href="/j/soushoku/kakou/mezamasi/recipe/recipe_kore005.html";
			break;
		default:
			location.href="/j/soushoku/kakou/mezamasi/recipe/recipe_kore001.html";
	}
}


