function BeweegMuisOp(txt) {
                  window.status = txt;
                  }

function EraseStatusBar() {
                  window.status="";
                  }

var last="";

function afbeeldingwijzigen(afbeeling)
{
	last = document.images['hoofd'].src;
	document.images['hoofd'].src = document.images["image" + afbeeling].src;
//if IE 4+
if (document.all)
	document.getElementById('sub').innerText = zut[afbeeling];
//else if NS 4
else if (document.layers)
	{
	document.ns4dcontent.document.ns4dcontent2.
	document.write(zut[afbeeling]);
	document.ns4dcontent.document.ns4dcontent2.
	document.close();
	}
//else if NS 6 (supports new DOM)
else if (document.getElementById)
	{
	rng = document.createRange();
	el = document.getElementById('sub');
	rng.setStartBefore(el);
	htmlFrag = rng.createContextualFragment(zut[afbeeling]);
	while (el.hasChildNodes())
	el.removeChild(el.lastChild);
	el.appendChild(htmlFrag);
	}
}

	
	// This function calculates the total for items in the form which are selected
	function calculateTotal(inputItem) {
		with (inputItem.form) {
			// process each of the different input types in the form.
			
			// process check boxes
				if (inputItem.checked == false) { // item was uncheck. subtract item value from total
				    calculatedTotal.value = eval(calculatedTotal.value) - eval(inputItem.value);
				} 
				else { // item was checked. add the item value to the total
				    calculatedTotal.value = eval(calculatedTotal.value) + eval(inputItem.value); 
				}
			
			// total value should never be less than 0
			if (calculatedTotal.value < 0) {
				InitForm();
			}

			// return total value
			return(formatCurrency((calculatedTotal.value / 100)));
		}
	}
	
	// format a value as currency. 
	function formatCurrency(num) {
		// Courtesy of http://www7.brinkster.com/cyanide7/
		num = num.toString().replace(/\$|\,/g,'');
		
		if(isNaN(num))
		   num = "0";
		   
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num*100+0.50000000001);
		cents = num%100;
		num = Math.floor(num/100).toString();
		
		if(cents<10)
		    cents = "0" + cents;
			
		for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		    num = num.substring(0,num.length-(4*i+3)) + '.' + num.substring(num.length-(4*i+3));
			
  	    return (((sign)?'':'-') + num + ',' + cents);
	}
	
	// This function initialzes all the form elements to default values on [re]load
	function InitForm() {
		//Reset values on form
		document.selectionForm.total.value='0';
		document.selectionForm.calculatedTotal.value=0;
	
		//Set all checkboxes on form to unchecked:
		for (i=0; i < document.selectionForm.elements.length; i++) {
		    if (document.selectionForm.elements[i].type == 'checkbox') {
			    document.selectionForm.elements[i].checked = true;
			}
		}

	}

	
	
	// End -->


