//openen van about-venster

function venster(gevraagdePagina)
{
	window.open(gevraagdePagina,"",'width=450px, height=500px, menubar=no, toolbar=no,status=yes scrollbars=yes');
}


//scrollbars laden

function scrollbars()
{
if (document.all && document.getElementById)
	{	
		document.body.style.scrollbarFaceColor="#C9DBC1";
		document.body.style.scrollbarArrowColor="#D6E4D3";
		document.body.style.scrollbarTrackColor="#D6E4D3";
		document.body.style.scrollbarDarkShadowColor="#ABC79E";
		document.body.style.scrollbarBaseColor="#8589B8";
		document.body.style.scrollbarShadowColor="#8589B8";
		document.body.style.scrollbarHighlightColor="#8589B8";
		document.body.style.scrollbar3dLightColor="#8589B8";
		window.defaultStatus="kinderkoor 't Frisse Nootje heet u welkom op haar site";
	}
}

//Controle Form

function controle() 
{
	naam = formcontact.Naam.value;
	email = formcontact.Email.value;
	vraag = formcontact.Vraag.value;
	if (naam=="") 

	{
		alert('U vulde geen naam in!');
		event.returnValue=false;
	}
	else if (email=="") 
	{
		alert('U vulde geen emailadres in!');
		event.returnValue=false;
	}
	else if(email.indexOf("@")==-1)
	{
		alert("Dit is geen geldig e-mailadres");
		event.returnValue=false;
	}
	else if (vraag=="") 
	{
		alert('U heeft geen opmerking of vraag ingevuld!');
		event.returnValue=false;
	}
}

//laatste update

function laatsteupdate() {
var days = new Array(8);
days[1] = "zondag";
days[2] = "maandag";
days[3] = "dinsdag";
days[4] = "woensdag";
days[5] = "donderdag";
days[6] = "vrijdag";
days[7] = "zaterdag";
var months = new Array(13);
months[1] = "januari";
months[2] = "februari";
months[3] = "maart";
months[4] = "april";
months[5] = "mei";
months[6] = "juni";
months[7] = "juli";
months[8] = "augustus";
months[9] = "september";
months[10] = "oktober";
months[11] = "november";
months[12] = "december";
var dateObj = new Date(document.lastModified)
var wday = days[dateObj.getDay() + 1]
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()
var fyear = dateObj.getYear()
if (fyear < 2000) 
fyear = fyear + 1900
document.write("Laatste update: " + wday + ", " + date + " " + lmonth+ " " + fyear)
}

//Controle van computereigenschappen

function systeemTestScreen(){

var breedte;
var hoogte;

hoogte=screen.height;
breedte=screen.width;
document.write(hoogte+" "+"x "+breedte);
}

function systeemTestBrowser(){
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;

IE5plus = IE5 || IE6;
IEMajor = 0;

if (IE4plus)
{
	var start = navigator.appVersion.indexOf("MSIE");
	var end = navigator.appVersion.indexOf(".",start);
	IEMajor = parseInt(navigator.appVersion.substring(start+5,end));
	IE5plus = (IEMajor>=5) ? true : false;
}

if (isMac)
	document.write("<p>You are using a Macintosh</p>");
if (NS4)
	document.write("<p>You are using Netscape 4 or later</p>");
if (IEmac)
	document.write("<p>You are using Internet Explorer on Macintosh</p>");
if (IE4)
	document.write("<p>You are using Internet Explorer 4</p>");
if (IE5)
	document.write("<p>You are using Internet Explorer 5</p>");
if (IE6)
	document.write("<p>You are using Internet Explorer 6</p>");
if (NS6)
	document.write("<p>You are using Netscape 6 or later</p>");
}




