// Random foto voor homepage

max = 72;
nummer = Math.floor(Math.random() * (max - 1)) + 1;
homefoto = '<img border="0" src="images/foto_' + nummer + '.jpg">';

// Nieuw venster

function newWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';

	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}

// Afbeeldingen vervangen

function imageChange(imgName, imgSource) {
	if (document.images) {
		document.images[imgName].src = imgSource;
	}
}

function sidesOver() {
	imageChange('left', 'img/button_left_h.gif');
	imageChange('right', 'img/button_right_h.gif');
}

function sidesOut() {
	imageChange('left', 'img/button_left_n.gif');
	imageChange('right', 'img//button_right_n.gif');
}

// Nieuwbrief

function clearEmailadres()
{
	vak = document.forms.nieuwsbrief.emailadres;
	if (vak.value = 'uw emailadres') vak.value = "";
}

function clearPostcode()
{
	vak = document.forms.nieuwsbrief.postcode;
	if (vak.value = 'uw postcode') vak.value = "";
}

