function OpenPopup(theURL, popW, popH) { 
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars=yes,resizable'
	Win = window.open(theURL, 'Popup', winProp)
	if (parseInt(navigator.appVersion) >= 4) { 
		Win.window.focus(); 
	}
}

function CommentConfirm(obj) {
	
	ret = false;
	
	if(obj.author.value != '' && obj.text.value != '' && obj.verification.value != '') {
		obj.Submit();
	} else {
		alert("Je moet ten minste je naam invullen, een commentaar en het anti spam woord.");
	}
	return ret;
}

function EmailConfirm(obj) {
	
	ret = false;
		
	if(obj.email.value != 'E-mail adres' && obj.email.value != '') {
		obj.Submit();
	} else {
		alert("Je moet wel je e-mailadres invullen.");
		obj.email.value = '';
		obj.email.focus();
	}
	return ret;
}

function SearchConfirm(obj) {
	
	ret = false;
		
	if(obj.searchstring.value != '') {
		obj.Submit();
	} 
	return ret;
}