sfHover = function() {
	
	if(!document.getElementById("nav")) return;
	
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function calculate(form) {
var Tot = 0;
Tot += Math.round(eval(form.Item7.value * 94));
Tot += Math.round(eval(form.Item8.value * 135));
Tot += Math.round(eval(form.Item1.value * 54));
Tot += Math.round(eval(form.Item17.value * 81));
Tot += Math.round(eval(form.Item18.value * 13));
Tot += Math.round(eval(form.Item6.value * 216));
Tot += Math.round(eval(form.Item23.value * 27));
Tot += Math.round(eval(form.Item34.value * 40));
Tot += Math.round(eval(form.Item3.value * 27));
Tot += Math.round(eval(form.Item39.value * 40));
Tot += Math.round(eval(form.Item19.value * 27));
Tot += Math.round(eval(form.Item5.value * 8));
Tot += Math.round(eval(form.Item21.value * 70));
Tot += Math.round(eval(form.Item42.value * 1600));
Tot += Math.round(eval(form.Item47.value * 25));
Tot += Math.round(eval(form.Item41.value * 216));
Tot += Math.round(eval(form.Item48.value * 55));
Tot += Math.round(eval(form.Item9.value * 108));
Tot += Math.round(eval(form.Item10.value * 189));
Tot += Math.round(eval(form.Item12.value * 81));
Tot += Math.round(eval(form.Item13.value * 162));
Tot += Math.round(eval(form.Item14.value * 108));
Tot += Math.round(eval(form.Item16.value * 30));
Tot += Math.round(eval(form.Item15.value * 50));
Tot += Math.round(eval(form.Item11.value * 13));
Tot += Math.round(eval(form.Item28.value * 65));
Tot += Math.round(eval(form.Item33.value * 54));
Tot += Math.round(eval(form.Item38.value * 121));
Tot += Math.round(eval(form.Item37.value * 67));
Tot += Math.round(eval(form.Item29.value * 67));
Tot += Math.round(eval(form.Item25.value * 81));
Tot += Math.round(eval(form.Item26.value * 27));
Tot += Math.round(eval(form.Item27.value * 27));
Tot += Math.round(eval(form.Item35.value * 13));
Tot += Math.round(eval(form.Item36.value * 67));
Tot += Math.round(eval(form.Item44.value * 13));
Tot += Math.round(eval(form.Item32.value * 27));
Tot += Math.round(eval(form.Item31.value * 39));
Tot += Math.round(eval(form.Item30.value * 54));
Tot += Math.round(eval(form.Item24.value * 13));
Tot += Math.round(eval(form.Item43.value * 27));
Tot += Math.round(eval(form.Item46.value * 10));
Tot += Math.round(eval(form.Item20.value * 27));
Tot += Math.round(eval(form.Item45.value * 6));
Tot += Math.round(eval(form.Item22.value * 40));
Tot += Math.round(eval(form.Item49.value * 70));
Tot += Math.round(eval(form.Item4.value * 94));
Tot += Math.round(eval(form.Item2.value * 27));
Tot += Math.round(eval(form.Item40.value * 25));

Tot = Math.ceil(eval(Tot/100));

if(Tot>0) {
	form.tot_ruimte.value = Tot;
	
	try {
		xmlhttp = new XMLHttpRequest();
		xmlhttp.open("GET", "http://" + document.domain + "/sys/pub/store_ruimte.php?ruimte=" + Tot,true);
		xmlhttp.send(null);
	} catch (e) {
	}
}

return false;
}

