function closeenlargement(){
	$("#enlargement").css({height: "0px"});
	$("#enlargement").css({display: "none"});
}


function resizeprod(pid,aant){
	proddesch = 0;
	proddescm = 0;
	phdmem = 0;
	pdf = 0;
	phdif = 0;
	ba = pid + 1 - aant;
	for(i=pid; i>ba-1; i--){
		proddesch = $("#proddescrip"+i).height();
		if(proddesch > proddescmem){
			proddescmem=proddesch;
		}
	}
	if(proddescmem > 0){
		for(i=pid; i>ba-1; i--){
			$("#proddescrip"+i).css({height: proddescmem+"px"});
		}
	}
	for(i=pid; i>ba-1; i--){
		phd = eval("phs"+(i+1));
		if(phd > phdmem){
			phdmem=phd;
		}
	}
	if(phdmem > 0){
		for(i=pid; i>ba-1; i--){
			$("#prodfoto"+i).css({height: (phdmem+1)+"px"});
		}
	}
}

function setmenuheight(newhd){
	$("#menuholder").css({height: newhd});
	$("#menuholderflash").css({height: newhd});
	mvar1 = $("#leftcontainer").height();
	mvar2 = $("#contentcontainer").height();
	if(mvar1 > mvar2){
		mvar3 = $("#contentholder").height();
		mdif = $("#leftcontainer").height() - $("#contentcontainer").height();
		mvar4 = mvar3 + mdif + 40;
		$("#contentholder").css({height: mvar4});
	}
}

function submitreactie(){
	errr = 0;
	
	if(document.getElementById('contactnaam').value == ""){
		alert("Please fill out all required fields");
		errr++;
	} else if(document.getElementById('contactemail').value == ""){
		alert("Please fill out all required fields");
		errr++;
	}
	if(errr == 0){
		document.getElementById('offerteform').submit();
	}
}



