total_menu = 3 +1;
current_menu = 0;
function showHideMenu(selected_menu){
	for(i=1;i<total_menu;i++){		
		menu = "menu" + i
		if (document.getElementById){
			x = document.getElementById(menu).style;// this is the way the standards work
		}else if (document.all){
			x = document.all[menu].style;// this is the way old msie versions work
		}else if (document.layers){
			x = document.layers[menu].style;// this is the way nn4 works
		}	
		if (current_menu != i){
			if (selected_menu == i){
				if (x.visibility != "visible"){
					x.visibility = 'visible';		
					x.display = 'block';	
				}else{
					x.visibility = 'hidden';
					x.display = 'none';
				}
			}else{
				x.visibility = 'hidden';
				x.display = 'none';
			}
		}
	}
}

function calculateTotal(){
	//alert(document.form1.accessories.length);
	total_v = 0;	
	for(i=0;i<document.form1.accessories.length;i++){
		//alert(document.form1.accessories[i].checked);
		if (form1.accessories[i].checked){
			//alert("true");
		
			var s_item = document.form1.accessories[i].value
			var s_split = s_item.split("/");
			
			total_v = total_v + (s_split[1]* 1);
			
		}	
	}
	//alert(total_v);
	document.form1.acc_total.value =  "$" + total_v + "-00";
	document.form1.total.value =  "$" + ((document.form1.main_item.value*1)+(total_v*1)) + "-00";
}	