<!--

var http;
var img_target;

function createRequestObject() {
	var req;

	if(window.XMLHttpRequest){
		req = new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		alert('Problem creating the XMLHttpRequest object');
	}
	
	return req;
}

function updateImage(target, location) {
	document.getElementById(target).src = location;
}

function updateObject(nr) {
	http = new createRequestObject();
	http.open('get', 'uitgelicht.php?nr='+nr);
	http.onreadystatechange = itempoll;
	http.send(null);
}

function itempoll() {
	if(http.readyState == 4 && http.status == 200) {
		if(http.responseText) {
			document.getElementById('uitgelicht').innerHTML = http.responseText;
		}
	}
}

function popprivacystatement(){
    Url = 'privacy_statement.htm',
	window.open (Url,'privacystatement','height=440,width=400,resizable=no,menubar=no,scrollbars=yes,toolbar=no,location=no,status=no');
}

function popdisclaimer(){
    Url = 'disclaimer.htm',
    	window.open (Url,'dislclaimer','height=400,width=400,resizable=no,menubar=no,scrollbars=yes,toolbar=no,location=no,status=no');
}

function poppage(page, h, w){
    Url = page,
    	window.open (Url,'poppage','height='+h+',width='+w+',resizable=no,menubar=no,scrollbars=yes,toolbar=no,location=no,status=no');
}

function poproute(){
    Url = 'routebeschrijving.htm',
    	window.open (Url,'Routebeschrijving','height=700,width=500,resizable=no,menubar=no,scrollbars=yes,toolbar=no,location=no,status=no');
}

function submitForm() {
    document.form.submit();
}

function checkAndSubmit() {
    if ((document.form.bedrijf.value.length==0) || (document.form.naam.value.length==0) || (document.form.telefoon.value.length==0) || (document.form.email.value.length==0) || (document.form.text.value.length==0)) {
	alert ("Niet alles is (goed) ingevuld. Controleer uw invoer op juistheid.");
    }
    else {
        document.form.submit();
	alert ("Uw bericht is in goede orde ontvangen.");
    }
}

function openImage(Url) {
    //window.open(Url,'mywindow','width=100,height=100,left=0,top=0,screenX=0,screenY=0');
    window.open('imageWrapper.php?url='+Url,'mywindow','menuBar=0,resizable=1,width=1,height=1,left=0,top=0,screenX=0,screenY=0');
}

-->


