//-----------------------------------------------------------------------//
function alertbox(tekst){
	alert(tekst);
}
//-----------------------------------------------------------------------//
function blink(kleur0,kleur1,tijd){
	var a													;
	a = 1													;
	blink2(kleur0,kleur1,tijd,a)							;
}
//-----------------------------------------------------------------------//
function blink2(kleur0,kleur1,tijd,a){
	var b,c,kleur,t											;
	b = 1-a													;
	if (b==0){
		kleur = kleur0										;
	}
	if (b==1){
		kleur = kleur1										;
	}
	document.getElementById("blink").color = kleur			;
	c = function(){blink2(kleur0,kleur1,tijd,b);}			;
	t = setTimeout(c,100*tijd)								;
}
//-----------------------------------------------------------------------//
function cgi(url){
	var clocation,cprops									;
	clocation = window.location.toString().toLowerCase()	;
	if (clocation.indexOf("?hierblijven")==-1){
		cprops	=	""										;
//		cprops	=	",alwaysLowered=1"						;
//		cprops	+=	",alwaysRaised=1"						;
//		cprops	+=	",fullscreen=1"							;
		cprops	+=	",height="+window.screen.AvailHeight	;
		cprops	+=	",left=0"								;
		cprops	+=	",location=1"							;
		cprops	+=	",menubar=1"							;
		cprops	+=	",resizable=1"							;
		cprops	+=	",screenX=0"							;
		cprops	+=	",screenY=0"							;
		cprops	+=	",scrollbars=1"							;
//		cprops	+=	",status=0"								;
		cprops	+=	",titlebar=1"							;
		cprops	+=	",toolbar=1"							;
		cprops	+=	",top=0"								;
		cprops	+=	",width="+(window.screen.AvailWidth-8)	;
		window.open(url,"",cprops);
	}
}
//-----------------------------------------------------------------------//
function diashow(naamfoto,aantalfoti,tijd){
	var a													;
	a = 1													;
	diashow2(naamfoto,aantalfoti,tijd,a)					;
}
//-----------------------------------------------------------------------//
function diashow2(naamfoto,aantalfoti,tijd,a){
	var b,c,t												;
	document.getElementById("foti").src = naamfoto+a+".jpg"	;
	b = a+1													;
	if (b>aantalfoti) b = 1									;
	c = function(){diashow2(naamfoto,aantalfoti,tijd,b);}	;
	t = setTimeout(c,100*tijd)								;
}
//-----------------------------------------------------------------------//
function datumtijd(){
	var cdt,da,dd,dm,dt,th,tm,ts							;
	dt = new Date()											;
	da = dt.getFullYear()									;
	dm = dt.getMonth()+1									;
	dd = dt.getDate()										;
	if (dm<10) dm = "0"+dm									;
	if (dd<10) dd = "0"+dd									;
	cdt = da+"-"+dm+"-"+dd+"&nbsp;"+dvw(da,dm,dd)			;
	th = dt.getHours()										;
	tm = dt.getMinutes()									;
	ts = dt.getSeconds()									;
	if (th<10) th = "0"+th									;
	if (tm<10) tm = "0"+tm									;
	if (ts<10) ts = "0"+ts									;
	cdt += "&nbsp;"+th+":"+tm+":"+ts						;
	document.write(cdt)										;
}
//-----------------------------------------------------------------------//
function dvw(a,m,d){
	var cretvar,jd;
	a = 1*a; // force to number
	m = 1*m;
	d = 1*d;
	if (m<3){
		a = a-1;
		m = m+12;
	}
	jd = a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400);
	jd = jd+Math.floor((m*153+3)/5)+d+1;
	jd = jd%7;
	cretvar = "zomadiwodovrza".substr(jd*2,2);
	return cretvar;
}
//-----------------------------------------------------------------------//
function klok(){
	var cdt,da,dd,dm,dt,th,tm,ts;
	if (!document.all&&!document.getElementById){return;}
	q1 = document.getElementById?document.getElementById("q2"):document.all.q2;
	dt = new Date();
	da = dt.getFullYear();
	dm = dt.getMonth()+1;
	dd = dt.getDate();
	if (dm<10) dm = "0"+dm;
	if (dd<10) dd = "0"+dd;
	cdt = da+"-"+dm+"-"+dd+"&nbsp;"+dvw(da,dm,dd);
	th = dt.getHours();
	tm = dt.getMinutes();
	ts = dt.getSeconds();
	if (th<10) th = "0"+th;
	if (tm<10) tm = "0"+tm;
	if (ts<10) ts = "0"+ts;
	cdt += "&nbsp;"+th+":"+tm+":"+ts;
//	q1.innerHTML="<b style='font-size:100;color:#ff0000;'>"+cdt+"</b>";
	q1.innerHTML=cdt;
	setTimeout("klok()",1000);
}
//-----------------------------------------------------------------------//
function muisop(id){
	document.getElementById(id).src="2_"+id+".jpg";
}
//-----------------------------------------------------------------------//
function muisaf(id){
	document.getElementById(id).src="1_"+id+".jpg";
}
//-----------------------------------------------------------------------//
function openbt(curl){
	var cprops;
	cprops	=	""										;
	cprops	+=	",channelmode=1"						;
	cprops	+=	",fullscreen=0"							;
	cprops	+=	",height="+(window.screen.AvailHeight)	;
	cprops	+=	",left=0"								;
	cprops	+=	",location=1"							;
	cprops	+=	",menubar=1"							;
	cprops	+=	",resizable=1"							;
	cprops	+=	",screenX=0"							;
	cprops	+=	",screenY=0"							;
	cprops	+=	",scrollbars=1"							;
	cprops	+=	",status=1"								;
	cprops	+=	",titlebar=1"							;
	cprops	+=	",toolbar=1"							;
	cprops	+=	",top=0"								;
	cprops	+=	",width="+(window.screen.AvailWidth-10)	;
	window.open(curl,"",cprops);
}
//-----------------------------------------------------------------------//
function revisie(){
	var c,cdt;
	c = window.document.lastModified;
	a = c.substr(6,4);
	m = c.substr(0,2);
	d = c.substr(3,2);
	cdt = a+"-"+m+"-"+d+"&nbsp;"+dvw(a,m,d)+"&nbsp;"+c.substr(11,8);
	document.write(cdt);
}
//-----------------------------------------------------------------------//
function url(){
	var clocation										;
	clocation = window.location.toString().toLowerCase();
	document.write(clocation)							;
}
//-----------------------------------------------------------------------//
function wachtwoord(cvoornaam,cachternaam){
	var cprops,cww;
	cww		=	prompt("Geef wachtwoord voor "+cvoornaam+"."+cachternaam,"");
	cprops	=	""										;
	cprops	+=	"fullscreen=1"							;
	cprops	+=	",height="+window.screen.AvailHeight	;
	cprops	+=	",left=0"								;
	cprops	+=	",resizable=1"							;
	cprops	+=	",screenX=0"							;
	cprops	+=	",screenY=0"							;
	cprops	+=	",scrollbars=1"							;
	cprops	+=	",top=0"								;
	cprops	+=	",width="+(window.screen.AvailWidth-8)	;
	window.open(cww+"."+cachternaam,"",cprops);
}
//-----------------------------------------------------------------------//

