//Functie om titelbalk aan te passen
function WijzigTitel(key){
	document.title=key; //document.title+key; //document.titlev.value;
}



//Functie om naar een andere pagina te gaan
function ForumJump(URL) {
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}



//Functie voor afbeeldingen laden in fotoalbum in Pop-Up venster
vanaf_links = 100;
vanaf_boven = 100;
grootste_breedte  = 800+20;//afmetingen van het grootste beeld +20
grootste_hoogte = 800+20;  //afmetingen van het grootste beeld +20
//hieronder niets wijzigen
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
var optIE='scrollbars=no,width=350,height=100,left='+vanaf_links+',top='+vanaf_boven;
function popBeeld(BeeldURL,BeeldTitel){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Bezig met downloaden van afbeelding...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function aanpassen_aan_beeldgrootte(){');
writeln('if (isIE){');
writeln('window.resizeTo(100,100);');
writeln('width=(document.images[0].width);');
writeln('height=(document.images[0].height);');
//writeln('width=100-(document.body.clientWidth-document.images[0].width);');
//writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');
writeln('if (isNN){');       
writeln('window.innerWidth=document.images["BeeldNaam"].width;');
writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');
writeln('</sc'+'ript>');
writeln('</head><body bgcolor=000000 scroll="no" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()" onblur="self.close()" onclick="self.close()">');
writeln('<img name="BeeldNaam" src='+BeeldURL+' style="display:block"></body></html>');
close(); 
}}


//Functie voor fotoalbum
nereidFadeObjects = new Object();
nereidFadeTimers = new Object(); 
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){ 
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}

clearTimeout(nereidFadeTimers[object.sourceIndex]);

diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;

if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}

//Functie om een Pop-Up venster te openen
function openWinHelp(theURL,winName,features,width,height) {
  	vpop=window.open(theURL,winName,features);
	vpop.moveTo(Math.round((screen.availwidth/2)-(width/2)),Math.round((screen.availheight/2)-(height/2))); 
}


//Functie om een Pop-Up venster te openen
function openWin(theURL,winName,features) {
  	vpop=window.open(theURL,winName,features);
	vpop.moveTo(Math.round(screen.availwidth-680),Math.round(screen.availheight-500)); 
}

//Functie om de Submit knop uit te schakelen
function SubDisable(dform) {
  if (document.getElementById) {
   for (var sch = 0; sch < dform.length; sch++) {
    if (dform.elements[sch].type.toLowerCase() == "submit") dform.elements[sch].disabled = true;
   }
  }
return true;
}


