function systotal() {
	if (change==0)change=1;
	if (change==-1)change=0;
	var total = 0;
    for (nC = 0; nC < document.wizard.elements.length; nC++) {
		strname = document.wizard.elements[nC].name;
		if (strname.substr(0,1)=='C') {
			cat = strname.substr(1);
			strval = document.wizard.elements[nC].value;
			ind = strval.indexOf('_');
			strval = strval.substr(ind+1);
			qval = document.wizard.elements['Q' + cat].value;
			if (!isNaN(strval) && !isNaN(qval)) {total += qval*strval;}
			//alert(isNaN(strval))
		}
	}
	document.wizard.elements['resship'].value="1"
	arr=document.all('imod')
	if (arr==null){document.wizard.elements['resship'].value="0"}else
	{
	if(arr.length>0)
		{for (i=0;i<arr.length;i++)
			if (arr[i].value!='0_0') document.wizard.elements['resship'].value="0"
		}
	else {if (arr.value!='0_0') document.wizard.elements['resship'].value="0"}}
	document.wizard.elements['total_top'].value = "$" + Math.round(total)/100;
	document.wizard.elements['total_bott'].value = "$" + Math.round(total)/100;
}

function winfo(cat) {
	nm = "C" + cat;
	strval = document.wizard.elements[nm].value
	ind = strval.indexOf('_');
	strval = strval.substr(0, ind);
	if (strval > 0) {
	window.open("ItemDesc.asp?ItemID=" + strval, "", "menubar=no,toolbar=no,location=no,scrollbars=yes");
	}else {alert("Choose product")}
}