function calc()
{
	var scorenode = document.getElementById('score');
	var scoretxt = scorenode.firstChild;
	var theForm = document.getElementById('scoreform');

	var fields = parseInt(theForm.fields.value);
	var pastures = parseInt(theForm.pastures.value);
	var grain = parseInt(theForm.grain.value);
	var vegetables = parseInt(theForm.vegetables.value);
	var sheep = parseInt(theForm.sheep.value);
	var boar = parseInt(theForm.boar.value);
	var cattle = parseInt(theForm.cattle.value);
	var unused = parseInt(theForm.unused.value);
	var stables = parseInt(theForm.stables.value);
	var clayrooms = parseInt(theForm.clayrooms.value);
	var stonerooms = parseInt(theForm.stonerooms.value);
	var family = parseInt(theForm.family.value);
	var cards = parseInt(theForm.cards.value);
	var bonus = parseInt(theForm.bonus.value);
	
	var resultnumber = fields + pastures + grain + vegetables + sheep + boar + cattle + unused + stables + clayrooms + stonerooms + family + cards + bonus;
	var result = document.createTextNode(resultnumber);
	scorenode.replaceChild(result,scoretxt);
}