		noblink = new Image();
		blink = new Image();
		noblink.src = "img/logo.jpg";
		blink.src = "img/logo2.jpg";

		function blinklogo(){
			document.images[1].src = blink.src;
		}
		function noblinklogo(){
			document.images[1].src = noblink.src;
		}

	/*	function getStyle(layer){
			if (document.getElementById) 
			{
				return document.getElementById (layer).style
			} else if (document.all)
			{
				return document.all[layer].style
			} else {
				return document[layer]
			}
		}
*/
		function writeText (layer, tekst){

			if (document.getElementById) 
			{
				document.getElementById ( layer ).innerHTML = tekst;
			} else if (document.all)
			{
				document.all[layer].innerHTML = tekst;
			} else {
				document[layer].document.open();
				document[layer].document.write(tekst);
				document[layer].close();
			}
		}

		function wis(mesg, delink){
				if (mesg == '' || typeof(window.opera) != 'undefined') {
					return true;
				}
				alert('Opgelet! Als u ok klikt, dan gaat u het weetje wissen!!');

				var confirmed = confirm(mesg + ' \n' );
				if (confirmed) {
					location = delink;
				} else {
					location = 'ad_weetje.php';
				}

				return confirmed;
		}
		
		function weetje(weetje, titel, id, maand , jaar){
			writeText('weetjetekst', weetje);
			var update = '<FORM ACTION="ad_weetje.php" METHOD="post">';
			update = update + 'Titel:<BR>';
			update = update + '<INPUT TYPE="text" NAME="utitel" SIZE="30" STYLE="width: 145px" VALUE="' + titel + '">';
			update = update + '<BR>Weetje: <BR>';
			update = update + '<TEXTAREA ROWS="15" COLS="20" ROWS="5" NAME="uweetje" STYLE="width: 145px">'+ weetje + '</TEXTAREA>';
			update = update + '<BR>Maand: <BR>';
			update = update + '<INPUT SIZE="5"TYPE="text" NAME="umaand" VALUE="' + maand + '">';
			update = update + '<BR>Jaar<BR>';
			update = update + '<INPUT SIZE="5" TYPE="text" NAME="ujaar" VALUE="' + jaar + '">';

			update = update + '<INPUT TYPE="hidden" NAME="updateid" VALUE="' + id + '">';
			update = update + '<BR><INPUT TYPE="submit" VALUE="Opslaan">';
			update = update + '</FORM>';


			writeText('updateweetje', update);
			}
				
		function foto(){
		//	control = '<IMG SRC="' + src +  '">' + pic;
		//	writeText('layer_src', pic);
			//control = document.forms[0].keuze;
//			alert(document.forms[0].keuze);

			alert('ok');
		}

		function show_pic(layer, frm){
			if (frm == 0){
				ctrl = document.forms[0].src;
			} else {
				ctrl = document.forms[0].src_small;
			}
			pic = '../../' + ctrl[ctrl.selectedIndex].value;
			tekst = '<A HREF="' + pic + '"><IMG SRC="' + pic + '" WIDTH="200" ></A>';
			writeText(layer, tekst);
		}

		function wisfoto(mesg, delink){
				if (mesg == '' || typeof(window.opera) != 'undefined') {
					return true;
				}
				alert('Opgelet! Als u ok klikt, dan gaat u de foto wissen!!');

				var confirmed = confirm(mesg + ' \n' );
				if (confirmed) {
					location = delink;
				} else {
					location = 'ad_fotogalerij.php';
				}

				return confirmed;
		}

			function wissen(mesg, mesg2, delink, delink2 ){
				if (mesg == '' || typeof(window.opera) != 'undefined') {
					return true;
				}
				alert(mesg);

				var confirmed = confirm(mesg2 + ' \n' );
				if (confirmed) {
					location = delink;
				} else {
					location = delink2;
				}

				return confirmed;
		}
