<!--
function showtime()
{
	var currentTime = new Date();
	var hours = currentTime.getHours();
	var minutes = currentTime.getMinutes();
	var seconds = currentTime.getSeconds();
	var displaystring = "";
	if (minutes < 10) { minutes = "0" + minutes; }
	if (seconds < 10) { seconds = "0" + seconds; }
	
	displaystring = hours + ":" + minutes + ":" + seconds + " ";
	if(hours > 11) {
		displaystring = displaystring + "PM";
	} else {
		displaystring = displaystring + "AM";
	}
	document.getElementById("display").innerHTML = displaystring;
}

function toggleVisibility(id) {
	var e = document.getElementById(id);
	if(e.style.display == 'none') {
		e.style.display = 'inline';
	} else {
		e.style.display = 'none';
	}
}

function mouseOverElement(element, color) {
	element.style.backgroundColor = color;
}

function mouseOutElement(element, color) {
	element.style.backgroundColor= color;
}

function deleteMessage(confirmlocation, message) {
	if(confirm(message)) {
		document.location = confirmlocation;
	}
}

function verifypass(password, verifypassword) {

	// Return when one is empty
	if(document.getElementById(password).value == "" || document.getElementById(verifypassword).value == "") { return false; }
	
	// Compare
	if(document.getElementById(password).value != document.getElementById(verifypassword).value) {
		alert("Ingevulde wachtwoorden zijn niet hetzelfde. Hou rekening dat grote en kleine letters verschillend worden gezien.");
		return false;
	} else {
		return true;
	}
}

function showGoogleMap(mapid)
{
	var elm = document.getElementById(mapid);
	if(elm.style.display == "inline") {
		elm.style.display = "none";
	} else {
		elm.style.display = "inline";
		loadGoogleMaps();
	}
}

function account(form) {
	parent.location.href = form.accountMenu.value;
}

function explodeArray(whichItem, whichDelimiter) {
	tempArray=new Array(1);
	var Count=0;
	var tempString=new String(whichItem);

	while (tempString.indexOf(whichDelimiter)>0) {
		tempArray[Count]=tempString.substr(0,tempString.indexOf(whichDelimiter));
		tempString=tempString.substr(tempString.indexOf(whichDelimiter)+1,tempString.length-tempString.indexOf(whichDelimiter)+1); 
		Count=Count+1
	}

	tempArray[Count]=tempString;
	return tempArray;
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
//-->