function setTall() {
	if (document.getElementById) { // Do you know the DOM?
		var divs = new Array(document.getElementById('leftcol'), document.getElementById('rightcol'), document.getElementById('main'));
		var maxHeight = 0;

		for (var i = 0; i < divs.length; i++) { // Get the height of the tallest column
			if(i == 1) {
				if (divs[i].offsetHeight + 10 > maxHeight) maxHeight = divs[i].offsetHeight + 10;
			} else {
				if (divs[i].offsetHeight > maxHeight) maxHeight = divs[i].offsetHeight;
			}

		}

		maxHeight += document.getElementById('top').offsetHeight; // resize the container
		maxHeight += 8;

		document.getElementById('container').style.height = maxHeight + 'px';

		if (document.getElementById('container').offsetHeight > maxHeight) { // is the size of the container correct?
			// correct padding/margin if needed
			document.getElementById('container').style.height = (maxHeight - (divs[i].offsetHeight - maxHeight)) + 'px';
		}
	}
}

window.onload = function() {
	setTall();
}

window.onresize = function() {
	setTall();
}



function checkForm(formEl) {
	//checkAantal
	aantalEl = formEl.aantal;
	if (parseInt(aantalEl.getAttribute('min_value')) > parseInt(aantalEl.value)) {
		alert('Van dit artikel dient u minimaal '+aantalEl.getAttribute('min_value')+' stuks te bestellen');
		return false;
	}
	return true;
}

