function checkFieldsContactForm(){
    if ((document.getElementById('naam').value != "") && (document.getElementById('email').value != "")) {
        return true;            
    } else {
        alert("Niet alle velden zijn correct ingevuld !");
        return false;
    }
}

function OpenWin(mypage,myname,w,h,features) {
    if(screen.width){
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    }else{winl = 0;wint =0;}
    if (winl < 0) winl = 0;
    if (wint < 0) wint = 0;
    var settings = 'height=' + h + ',';
    settings += 'width=' + w + ',';
    settings += 'top=' + wint + ',';
    settings += 'left=' + winl + ',';
    settings += features;
    win = window.open(mypage,myname,settings);
    win.window.focus();
}      

function checkNieuwsbrief() {
	var sOut = "De volgende velden zijn incorrect:\n";
	var bResult = true;
	if (document.getElementById('email').value == '') {
		sOut += 'E-mail adres\n';
		bResult = false;
	}
	if (!bResult) {
		alert(sOut);
	}
	return bResult;	
}

function changePage() {
	if (self.parent.frames.length != 0) {
		self.parent.location=document.location;
	}
}

function init() {
//		params = 'affid=gh01&c=VRZK_GHD';
	new Ajax.Updater('offertForm', 'public/form.php', {asynchronous: true,evalScripts:true});  


}