function controlJobsBoxes(num){
	var box;
	var maxh = 270;
	var tfmaxh = 165;
	var i;
	var tf;
	for(i=0;i<num;i++){
		box = $("#jobsbox"+i);
		tf = $("#jobsbox"+i+" #text");
		if(tf.height() > tfmaxh){
			tfmaxh = tf.height();
			maxh = 270+(tfmaxh-165);
		}
	}
	if(maxh > 270){
		var col = 0;
		var line = 0;
		var footer_y = 0;
		for(i=0;i<num;i++){
			box = $("#jobsbox"+i);
			box.css({height:maxh,top:line*maxh,left:col*240});
			footer_y = (line+1)*maxh;
			col++;
			if(col == 3){
				col = 0;
				line++;
			}
		}
		$("#footer4").css({top:footer_y});
	}
	
	reposFooter((Math.ceil(num/3)*maxh)+120);
}
