// JavaScript Document
function setTF(cOBJ,fName)
{
	document.form1[fName].disabled = !cOBJ.checked;
	if (!cOBJ.checked) document.form1[fName].value = "";
}

function signOK(cOBJ,check1)
{
	document.form1[check1].disabled = !cOBJ.checked;
	if (!cOBJ.checked) document.form1[check1].value = "確認ページへ";
}


function keisan(){ 


// 設定開始 

var tax = 5; // 消費税率 

// 商品1 



var price1 = document.form1.cart_no_filegate.selectedIndex * 50000; // 単価を設定 FILEGATE 
document.form1.field1.value = price1; // 小計を表示

var price2 = document.form1.cart_no_support.selectedIndex * 100000; // 単価を設定 SUPPORT 
document.form1.field2.value = price2; // 小計を表示

var price3 = document.form1.cart_no_SERVER2.selectedIndex * 163000; // 単価を設定 D-35000 
document.form1.field3.value = price3; // 小計を表示 

var price4 = document.form1.cart_no_SERVER3.selectedIndex * 193000; // 単価を設定 D-65000
document.form1.field4.value = price4; // 小計を表示 

var price5 = document.form1.cart_no_D128000.selectedIndex * 256000; // 単価を設定 KING-D128000
document.form1.field5.value = price5; // 小計を表示 


// 合計を計算 
var total1 = price1 + price2 + price3 + price4 + price5 ; 

// 設定終了 


document.form1.field_total1.value = total1; // 合計を表示 


document.form1.field_total2.value = total1 ; // 税込合計を表示 

} 

