		var postdata;	//globale variabele voor het mailformulier.

		function show(objId)
		{
			obj = document.getElementById(objId);
			if(obj)
			{
				obj.style.visibility = "visible";
			}
		}
		
		function hide(objId)
		{
			obj = document.getElementById(objId);
			if(obj)
			{
				obj.style.visibility = "hidden";
			}
		}
			
		function showPopup(foto,wi,he)
		{
			PosTop = (screen.availHeight - he) / 2;
			PosLeft = (screen.availWidth - wi) / 2;
			var image_big = window.open("popup.php?url=" + foto,null,"left= " + PosLeft + ",top="+ PosTop +",height="+ he +",width="+ wi +",status=no,toolbar=no,menubar=no,location=no");
			image_big.focus();		
		}
		
		function showSite(website)
		{
			height = screen.availHeight;
			width = screen.availWidth;
			var image_big = window.open(website,null);
			image_big.focus();
		}
		
		function checkIn(objId,tekst)
		{
			textObj = document.getElementById(objId);
			if(textObj)
			{	
				if(textObj.value == tekst)
				{
					textObj.value = '';
				}
			}
		}
		
		function checkOut(objId,tekst)
		{
			textObj = document.getElementById(objId);
			if(textObj)
			{
				if(textObj.value == '')
				{
					textObj.value = tekst;
				}
			}
			
			setMelding("");
		}
		
			
		function verstuurMail()
		{	
			objNaam 	= document.getElementById('input_naam');
			objStraat 	= document.getElementById('input_straat');
			objPostcode = document.getElementById('input_postcode');
			objPlaats 	= document.getElementById('input_plaats');
			objTelefoon = document.getElementById('input_telefoon');			
			objEmail 	= document.getElementById('input_email');
			objVraag 	= document.getElementById('txtOpmerking');
		
			if(objNaam.value == "" || objNaam.value == "naam:")
			{
				setMelding("Vul uw <strong>naam</strong> in.");
				objNaam.focus();
			}
			else if(objStraat.value == "" || objStraat.value == "straat:")
			{
				setMelding("Vul uw <strong>straat</strong> in.");
				objStraat.focus();
			}
			else if(objPostcode.value == "" || objPostcode.value == "postcode:")
			{
				setMelding("Vul uw <strong>postcode</strong> in.");
				objPostcode.focus();
			}
			else if(objPlaats.value == "" || objPlaats.value == "plaats:")
			{
				setMelding("Vul uw <strong>plaats</strong> in.");
				objPlaats.focus();
			}
			else if(objTelefoon.value == "" || objTelefoon.value == "telefoon:")
			{
				setMelding("Vul uw <strong>telefoonnumer</strong> in.");
				objTelefoon.focus();
			}
			else if(objEmail.value == "" || objEmail.value == "e-mail:")
			{
				setMelding("Vul uw <strong>e-mail</strong> in.");
				objEmail.focus();
			}
			else if(objVraag.value == "" || objVraag.value == "vraag/opmerking:")
			{
				setMelding("Vul uw <strong>vraag/opmerking</strong> in.");
				objVraag.focus();
			}
			else
			{	
				document.mailform.submit();
			}
		}
		
		function setMelding(melding)
		{
			objMelding = document.getElementById('idMelding');
			if(objMelding)
			{
				objMelding.innerHTML = melding;
			}	
		}
		
		function clearForm()
		{
			objNaam = document.getElementById('inputNaam');
			objBedrijf = document.getElementById('inputBedrijfsnaam');
			objMail = document.getElementById('inputEmail');
			objVraag = document.getElementById('txtOpmerking');
			
			if(objNaam) objNaam.value = 'uw naam...';
			if(objBedrijf) objTelnr.value = 'uw bedrijfsnaam...';
			if(objMail) objMail.value = 'uw emailadres...';
			if(objVraag) objVraag.value = 'uw vraag/opmerking...';
		}
		
		function showFoto(fotoPath,varFotoPointer)
		{
			fotoPointer = varFotoPointer;
			
			objFotoImg = document.getElementById('ftgrt');
			var img = new Image();
			img.src = fotoPath;
			objFotoImg.src = img.src;
		}