var hoogte;
var hoogte_contact_item;
var hoogte_len;
var aantal_items;
var positie_van_rechts;

function process(aantal_items,hoogte)
	{
	//Hoogte aanroepen en de px verwijderen.
	hoogte_len = String(hoogte).length;
	positie_van_rechts = parseInt(hoogte_len) - 2;
	hoogte_zpx = hoogte.substring(0,positie_van_rechts);
	
	//Vaste hoogte bepalen van één contact item (px)
	hoogte_contact_item = 100;
	
	//Kijken hoeveel items er zijn binnen het item bij minder dan 3 past het binnen de 800px, bij meer dan moet er geresized worden met X keer het aantal pixels (100).
	if(aantal_items >= 3){	
		if(hoogte_zpx == 800)
		{
		//window.alert("was wel 800px");
		document.getElementById('container').style.height = 800 + (parseInt(aantal_items) * parseInt(hoogte_contact_item)) + "px";
		}
		else if(hoogte_zpx > 800)
			{
			//window.alert("was geen 800px");
			//window.alert((parseInt(aantal_items) * parseInt(hoogte_contact_item)));
			document.getElementById('container').style.height = 800 + (parseInt(aantal_items) * parseInt(hoogte_contact_item)) + "px";
			}
	}
	else{
	//window.alert("aantal items is minder of gelijk aan 3");
	document.getElementById('container').style.height = 800 +"px";
	}
	
	}
