	function zetInnerScherm(strMenu) {
		var strVeld;
		var strBestand;
		
		top.parent.document.getElementById('divLinks').innerHTML = '';
		top.parent.document.getElementById('divMidden').innerHTML = '';
		top.parent.document.getElementById('divRechts').innerHTML = '';

		top.parent.document.getElementById('divMiddenLinks').innerHTML = '';
		top.parent.document.getElementById('divMiddenMidden').innerHTML = '';
		top.parent.document.getElementById('divMiddenRechts').innerHTML = '';

		if (strMenu == 'Atleten' ) {
			top.parent.document.getElementById('divAchter').style.backgroundImage = "url('./Images/URTAtleet_trans.png')";
			strVeld = 'divLinks';
			if (strMenu == 'Atleten') {
				strBestand = 'Atleten.htm';
				top.parent.document.getElementById('divMidden').style.width = '0px';
				top.parent.document.getElementById('divMiddenLinks').style.width = '0px';
				top.parent.document.getElementById('divMiddenMidden').style.width = '0px';
				zetInnerHTML(strVeld,strBestand);
			}
		}
		else {
			top.parent.document.getElementById('divAchter').style.backgroundImage = "url('./Images/URTHOME_trans.png')";
			top.parent.document.getElementById('divMidden').style.width = '298px';
			top.parent.document.getElementById('divMiddenLinks').style.width = '278px';
			top.parent.document.getElementById('divMiddenMidden').style.width = '278px';
		}
//		top.parent.document.getElementById('divBottom').style.width = '0px';
		top.parent.document.getElementById('divBottom').style.backgroundImage = "url('./Images/Bottom_trans.png')";
		top.parent.document.getElementById('divBottom').style.top = '740px';
		top.parent.document.getElementById('divBottom').style.backgroundRepeat = 'repeat-y';


		if (strMenu == 'Home') {
			strVeld = 'divLinks';
			strBestand = 'ASP/Nieuwssysteem/ToonLaatsteNieuws.asp';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' name='xxx' id='xxx'  frameborder='0' width='300px' height='190px' SCROLLING='no'></iframe>"
			strVeld = 'divMidden';
			strBestand = 'SlideShow.htm';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' align='center' name='xxx' id='xxx'  frameborder='0' width='300px' height='190px' SCROLLING='no'></iframe>"
			strVeld = 'divRechts';
			strBestand = 'ASP/Calendar/Default.asp';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' name='calendar' id='calendar'  frameborder='0' width='300px' height='190px' SCROLLING='no'></iframe>"
			strVeld = 'divMiddenMidden';
			strBestand = 'Nieuwsbrief.htm';
			zetInnerHTML(strVeld,strBestand);
		}

		if (strMenu == 'NieuwsArchief') {
			strVeld = 'divLinks';
			strBestand = 'ASP/Nieuwssysteem/NieuwsArchief.asp';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' name='xxx' id='xxx'  frameborder='0' width='300px' height='190px' SCROLLING='no'></iframe>"
		}
		if (strMenu == 'Media') {
			strVeld = 'divLinks';
			strBestand = 'Media/Media.asp?soort=F';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' width='300px' height='190px' frameborder='0' SCROLLING='no'></iframe>"
			strVeld = 'divMidden';
			strBestand = 'Media/Media.asp?soort=M';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' width='300px' height='190px' frameborder='0' SCROLLING='no'></iframe>"
		}
		if (strMenu == 'MediaArchief') {
			strVeld = 'divLinks';
			strBestand = 'Media/MediaArchief.asp';
			top.parent.document.getElementById(strVeld).innerHTML = "<iframe src='" + strBestand + "' width='300px' height='190px' frameborder='0' SCROLLING='no'></iframe>"
		}

		
		if (strMenu == 'Organisatie') {
			strVeld = 'divLinks';
			strBestand = 'bestuur1.htm';
			zetInnerHTML(strVeld,strBestand);
			strVeld = 'divMidden';
			strBestand = 'bestuur2.htm';
			zetInnerHTML(strVeld,strBestand);
			strVeld = 'divRechts';
			strBestand = 'bestuur3.htm';
			zetInnerHTML(strVeld,strBestand);
      top.parent.document.getElementById('divMiddenLinks').style.width = '800px';
      strVeld = 'divMiddenLinks';
      strBestand = 'Training.htm';
			zetInnerHTML(strVeld,strBestand);
		}
		if (strMenu == 'Partners') {
			zetInnerHTML('divLinks','Partners.htm')
			zetInnerHTML('divMidden','Partners2.htm')
		}
		if (strMenu == 'Contact') {
			strVeld = 'divLinks';
			strBestand = 'Contact1.htm';
			zetInnerHTML(strVeld,strBestand);
			strVeld = 'divMidden';
			strBestand = 'Contact2.htm';
			zetInnerHTML(strVeld,strBestand);
		}	
		if (strMenu == 'Statistieken') {
			strVeld = 'divLinks';
			strBestand = 'BestenLijstMannen.htm';
			zetInnerHTML(strVeld,strBestand);
			strVeld = 'divMidden';
			strBestand = 'BestenLijstVrouwen.htm';
			zetInnerHTML(strVeld,strBestand);
		}
		if (strMenu == 'Inloggen') {
			zetInnerHTML('divLinks','EventLogin.htm')
		}
	
	}
	
	function zetInnerHTML(strVeld,strBestand) {
		var objXMLDom;
		var objNode;
		var parser;
		var strTemp='';
		var strTekst='';
		
		var req = new XMLHttpRequest();   
		if (strBestand != '') {
			if (self.location.hostname == 'localhost') {
				req.open('GET', 'http://'+self.location.hostname+'/URT/Inhoud.asp?strBestand='+strBestand+'&NOCACHE=' + new Date, false);    
			}
			else {
				req.open('GET', 'http://'+self.location.hostname+'/Inhoud.asp?strBestand='+strBestand+'&NOCACHE=' + new Date, false);    
			}
			req.send(null);  
			if(req.status == 200)  {
				strTemp = req.responseText;  
			}		
			if (window.DOMParser) {
				parser = new DOMParser();
				objXMLDom = parser.parseFromString(strTemp,'text/xml');
				if (objXMLDom != null) {
					strTekst = objXMLDom.getElementsByTagName("TABLE")[0].getAttribute("tekst"); 
				}
			}
			else {
				objXMLDom = new ActiveXObject ("Microsoft.XMLDOM");
				objXMLDom.async = false;
				objXMLDom.loadXML( strTemp)
				objNode = objXMLDom.selectSingleNode('\/\/TABLE');
				if (objNode != null ) {
					strTekst = objNode.attributes.getNamedItem("tekst").text;
				}
			}
		}
		top.parent.document.getElementById(strVeld).innerHTML = strTekst;
		top.parent.document.getElementById('divBottom').style.backgroundImage = "url('./Images/Bottom_trans.png')";
		top.parent.document.getElementById('divBottom').style.top = '740px';
		top.parent.document.getElementById('divBottom').style.backgroundRepeat = 'repeat-y';
		
	}

	
	function toonHtml1(){
		window.showModalDialog('./asp/Nieuwssysteem/admin.asp?NOCACHE=' + new Date,0,"dialogWidth:600px;dialogHeight:500px;status=no;help=no;edge=sunken;center=yes;resizable:yes");
	}
	
	function toonHtml2(){
		window.open('./asp/Nieuwssysteem/nieuwsberichten.asp?NOCACHE=' + new Date,target="_blank");
	}	
	

	function toonHtml3(){
		var strReturn='1';

		while (strReturn == '1') {
			window.focus();
			strReturn = window.showModalDialog('./asp/atleten/brAtleet.asp?NOCACHE=' + new Date,0,"dialogWidth:800px;dialogHeight:700px;dialogHide:yes;status=no;help=no;edge=sunken;center=yes;resizable:yes");
		}
	}
	
	function toonHtml4() {
		window.open('./asp/Calendar/Admin/Events.asp?NOCACHE=' + new Date,target="_blank");
	}
	
	function setAction() {
		var strMessage="";
		
		if (document.getElementById('wachtwoord').value == '') {
			strMessage = "Wachtwoord onbekend";
		}
		if ('' == strMessage)		{
			if (document.getElementById('naam').value == '') {
				strMessage = "Naam onbekend";
			}
		}
		if ('' == strMessage)		{
			
			window.showModalDialog('LoginControle.asp?wie='+ document.getElementById('naam').value + document.getElementById('wachtwoord').value  + '&NOCACHE=' + new Date, 0,"dialogWidth:10px;dialogHeight:10px;status=no;help=no;edge=sunken;center=yes;resizable:no");
			document.getElementById('naam').value = '';
			document.getElementById('wachtwoord').value = '';
			document.forminput.submit();
		}
		else {
			alert(strMessage);
			document.getElementById('naam').value = '';
			document.getElementById('wachtwoord').value = '';
			document.getElementById('naam').focus();
		}
	}

	function setVergeten() {
		var strMessage="";
		if (document.getElementById('naam').value == '') {
			strMessage = "Je bent je naam toch niet vergeten?";
		}
		if ('' == strMessage)		{
			window.showModalDialog('LoginVergeten.asp?wie='+ document.getElementById('naam').value + '&NOCACHE=' + new Date,  0,"dialogWidth:10px;dialogHeight:10px;status=no;help=no;edge=sunken;center=yes;resizable:no");
		}
		else {
			alert(strMessage);
			document.getElementById('naam').value = '';
			document.getElementById('wachtwoord').value = '';
			document.getElementById('naam').focus();
		}
	}

	function setUitloggen() {
		window.showModalDialog('EventLogUit.asp?NOCACHE=' + new Date,  0,"dialogWidth:0px;dialogHeight:0px;status=no;help=no;edge=sunken;center=yes;resizable:no");
		zetInnerHTML('divLinks','')
		document.formmenu.submit();
	}
	
	
	function toonHtml(strHtml) {
		window.open(strHtml + '?&NOCACHE=' + new Date,"main");
	}
	
	function toonHtmlBlanc(strHtml) {
		window.open(strHtml + '?&NOCACHE=' + new Date,"_blanc");
	}


	function toonBericht(strHTML){
	 	if ('' != strHTML) {
			window.showModalDialog(strHTML+'&NOCACHE=' + new Date,1,"dialogWidth:600px;dialogHeight:500px;dialogHide:yes;status=no;help=no;edge=sunken;center=yes;resizable:yes");
		}
	}	

	
	function toonBlanc(strBestand) {
		window.showModalDialog(strBestand + new Date,  0,"dialogWidth:600px;dialogHeight:500px;status=no;help=no;edge=sunken;center=yes;resizable:yes");
	}
	
	function toonInfoAtleet(strWie) {
		var strTemp='';
		var strTekst='';
		
		var req = new XMLHttpRequest();   

		if (self.location.hostname== 'localhost') {
			req.open('GET', 'http://'+self.location.hostname+'/URT/Atleten/Atleet.asp?strAtleet='+strWie+'&NOCACHE=' + new Date, false);    
		}
		else {
			req.open('GET', 'http://'+self.location.hostname+'/Atleten/Atleet.asp?strAtleet='+strWie+'&NOCACHE=' + new Date, false);    
		}
		req.send(null);  
		
		if(req.status == 200)  {
			strTemp = req.responseText;  
		}
	
		top.parent.document.getElementById('divLinks').innerHTML = strTemp;
	}
	
	function ToonAtleet(strWie) {
		document.FotoAtleet.style.width = "120px";
		document.FotoAtleet.style.height = "180px";
		document.FotoAtleet.src = './Images/' + strWie;
	}

	function ToonLogo() {
	  document.FotoAtleet.style.width = "118px";
	  document.FotoAtleet.style.height = "73px";
	  document.FotoAtleet.src = './Images/Logo_urt.jpg';
	}

	function toonBestMannen(strAfstand) {
		window.showModalDialog('./asp/atleten/Bestenlijst.asp?afstand='+strAfstand+'&geslacht=M&outdoor='+document.getElementById('outdoor').value+'&NOCACHE=' + new Date,0,"dialogWidth:800px;dialogHeight:700px;dialogHide:yes;status=no;help=no;edge=sunken;center=yes;resizable:yes");
	}

	function toonBestVrouwen(strAfstand) {
		window.showModalDialog('./asp/atleten/Bestenlijst.asp?afstand='+strAfstand+'&geslacht=V&outdoor='+document.getElementById('outdoorv').value+'&NOCACHE=' + new Date,0,"dialogWidth:800px;dialogHeight:700px;dialogHide:yes;status=no;help=no;edge=sunken;center=yes;resizable:yes");
	}

	function pageStart()	{
    alert('s');
		document.getElementById('naam').focus();
	}

	function pageHome()	{
		if (document.getElementById("naam").value != '') {
      window.showModalDialog('StuurContact.asp?naam='+ document.getElementById('naam').value + '&tel='+ document.getElementById('telefoon').value + '&email='+ document.getElementById('email').value + '&bericht='+ document.getElementById('bericht').value + '&NOCACHE=' + new Date,  0,"dialogWidth:10px;dialogHeight:10px;status=no;help=no;edge=sunken;center=yes;resizable:no");
			alert('Bedankt voor het versturen van de email.\n\nDe gegevens zijn verzonden naar Joop van Amerongen.\n\nEr wordt zo spoedig mogelijk contact met u opgenomen.');                              
	  }
	  zetInnerScherm('Home');
	}

	function checkform(form) {
		var strVergeten='';
	    for (var x=0; form.elements[x]; x++ ) {
	        if (form.elements[x].value == ""){
	            if(form.elements[x].id != "nocheck") {
	            	strVergeten = strVergeten + '\n' + form.elements[x].id;
	            }
	        }
	    }        
		if (strVergeten != '') {
      alert( "Vergeten  \n" + strVergeten + "\n\n in te vullen?" );
      form.elements["naam"].focus()
      return false ;
		}
	}

