function openPhoto(pageID,photoURL,imgWidth,imgHeight){
	var popup_left = (screen.width-(screen.width/1.1))/2;
	var popup_top = (screen.height-(screen.height/1.1))/2;

	window.open("/fotoalbum/foto/"+pageID+"/"+photoURL+"/",0,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+imgWidth+",height="+imgHeight+",left="+popup_left+",top="+popup_top);
}


function printen(pageID){
	window.open("/print/"+pageID+"/",1,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480,left=0,top=0");
}


function checkForm(formElements){
	formElements_array = formElements.split(",");

	for (i=0;i<formElements_array.length;i++){
		if (document.getElementById("form_"+formElements_array[i]).value == ""){
			alert("U heeft geen gegevens ingevoerd bij "+formElements_array[i]);
			return false;
		}
	}
	return true;
}

function showPlattegrond(){
	
	var pop_width  = screen.width-200;
	var pop_height = (pop_width*screen.height)/screen.width;
	
	var popup_left = (screen.width-pop_width)/2;
	var popup_top = (screen.height-pop_height)/2;

	window.open("/inc/html/plattegrond_rcc.html",0,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+pop_width+",height="+pop_height+",left="+popup_left+",top="+popup_top);
}

function checkForm(){

	checkItems = new Array(
					Array('naam','naam'),
					Array('adres','adres'),
					Array('postcode','postcode'),
					Array('plaats','plaats'),
					Array('email','e-mailadres')
				);

	for(i=0;i<checkItems.length;i++){
		
		tmpFormItem = document.getElementById(checkItems[i][0]);
		
		if (tmpFormItem.value == ''){
			alert('Vult u a.u.b. nog uw '+checkItems[i][1]+' in.');
			tmpFormItem.focus();
			return false;
			break;
		}
		
	}
	
	return true;


}
