// standaard

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function valideren(value)
{

   var ValidChars = "0123456789";
   var IsNumber=true;

 
   for (i = 0; i < value.length && IsNumber == true; i++) 
      { 
      Char = value.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }

if((value == '0') || (IsNumber == false))
	{
		alert ("Gelieve uw aantal correct in te geven!");
		return false;
	}
else
	{
		return true;
	}
}


// pop up

function PopupPic(sPicURL) {
     window.open( "popup.htm?"+sPicURL, "",  
     "resizable=0,HEIGHT=200,WIDTH=200");
   } 
   
// valideren1 contact

function valideren1()
{	
	if (document.contactFrm.naam.value=="")
	{
	alert ("Gelieve uw familienaam in te vullen.")
	document.contactFrm.naam.style.backgroundColor='#FFEAEA';
	document.contactFrm.naam.focus()
	return false
	}
	
	if (document.contactFrm.voornaam.value=="")
	{
	alert ("Gelieve uw voornaam in te vullen.")
	document.contactFrm.voornaam.style.backgroundColor='#FFEAEA';
	document.contactFrm.voornaam.focus()
	return false
	}
	
	if (document.contactFrm.straat.value=="")
	{
	alert ("Gelieve uw straat in te vullen.")
	document.contactFrm.straat.style.backgroundColor='#FFEAEA';
	document.contactFrm.straat.focus()
	return false
	}
	
	if (document.contactFrm.huisnr.value=="")
	{
	alert ("Gelieve uw huisnummer in te vullen.")
	document.contactFrm.huisnr.style.backgroundColor='#FFEAEA';
	document.contactFrm.huisnr.focus()
	return false
	}
	
	if (document.contactFrm.postcode.value=="")
	{
	alert ("Gelieve uw postcode in te vullen.")
	document.contactFrm.postcode.style.backgroundColor='#FFEAEA';
	document.contactFrm.postcode.focus()
	return false
	}
	
	if (document.contactFrm.plaats.value=="")
	{
	alert ("Gelieve uw gemeente in te vullen.")
	document.contactFrm.plaats.style.backgroundColor='#FFEAEA';
	document.contactFrm.plaats.focus()
	return false
	}
	
	if (document.contactFrm.tel.value=="")
	{
	alert ("Gelieve uw email adres in te vullen.")
	document.contactFrm.tel.style.backgroundColor='#FFEAEA';
	document.contactFrm.tel.focus()
	return false
	}
	
	if (document.contactFrm.email.value=="")
	{
	alert ("Gelieve uw email-adres in te vullen.")
	document.contactFrm.email.style.backgroundColor='#FFEAEA';
	document.contactFrm.email.focus()
	return false
	}
	
	if (document.contactFrm.onderwerp.value=="empty")
	{
	alert ("Gelieve een onderwerp te selecteren.")
	document.contactFrm.onderwerp.style.backgroundColor='#FFEAEA';
	document.contactFrm.onderwerp.focus()
	return false
	}
	
	if (document.contactFrm.bericht.value=="")
	{
	alert ("Gelieve een berichtje na te laten.")
	document.contactFrm.bericht.style.backgroundColor='#FFEAEA';
	document.contactFrm.bericht.focus()
	return false
	}
}

// valideren2 geschenkbon

function valideren2()
{	
	if (document.geschenkFrm.naam.value=="")
	{
	alert ("Gelieve uw familienaam in te vullen.")
	document.geschenkFrm.naam.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.naam.focus()
	return false
	}
	
	if (document.geschenkFrm.voornaam.value=="")
	{
	alert ("Gelieve uw voornaam in te vullen.")
	document.geschenkFrm.voornaam.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.voornaam.focus()
	return false
	}
	
	if (document.geschenkFrm.straat.value=="")
	{
	alert ("Gelieve uw straat in te vullen.")
	document.geschenkFrm.straat.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.straat.focus()
	return false
	}
	
	if (document.geschenkFrm.huisnr.value=="")
	{
	alert ("Gelieve uw huisnummer in te vullen.")
	document.geschenkFrm.huisnr.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.huisnr.focus()
	return false
	}
	
	if (document.geschenkFrm.postcode.value=="")
	{
	alert ("Gelieve uw postcode in te vullen.")
	document.geschenkFrm.postcode.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.postcode.focus()
	return false
	}
	
	if (document.geschenkFrm.plaats.value=="")
	{
	alert ("Gelieve uw gemeente in te vullen.")
	document.geschenkFrm.plaats.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.plaats.focus()
	return false
	}	
	
	if (document.geschenkFrm.tel.value=="")
	{
	alert ("Gelieve uw telefoonnummer in te vullen.")
	document.geschenkFrm.tel.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.tel.focus()
	return false
	}
	
	if (document.geschenkFrm.email.value=="")
	{
	alert ("Gelieve uw email-adres in te vullen.")
	document.geschenkFrm.email.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.email.focus()
	return false
	}
	
	if (document.geschenkFrm.ontvanger.value=="")
	{
	alert ("Gelieve de naam van de ontvanger in te vullen.")
	document.geschenkFrm.ontvanger.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.ontvanger.focus()
	return false
	}
	
	if (document.geschenkFrm.bericht.value=="")
	{
	alert ("Gelieve een berichtje na te laten.")
	document.geschenkFrm.bericht.style.backgroundColor='#FFEAEA';
	document.geschenkFrm.bericht.focus()
	return false
	}
}

// valideren bevindingen

function valideren_bv()
{	
	if (document.bevindingenFrm.naam.value=="")
	{
	alert ("Gelieve uw naam in te vullen.")
	document.bevindingenFrm.naam.style.backgroundColor='#FFEAEA';
	document.bevindingenFrm.naam.focus()
	return false
	}
	
	if (document.bevindingenFrm.email.value=="")
	{
	alert ("Gelieve uw e-mail in te vullen.\n(Dit zal niet gepubliceerd worden)")
	document.bevindingenFrm.email.style.backgroundColor='#FFEAEA';
	document.bevindingenFrm.email.focus()
	return false
	}
	
	if (document.bevindingenFrm.titel.value=="")
	{
	alert ("Gelieve de titel in te vullen.")
	document.bevindingenFrm.titel.style.backgroundColor='#FFEAEA';
	document.bevindingenFrm.titel.focus()
	return false
	}
	
	if ((document.bevindingenFrm.bericht.value=="") || (document.bevindingenFrm.bericht.value=="Tik hier uw bericht..."))
	{
	alert ("Gelieve een berichtje achter te laten.")
	document.bevindingenFrm.bericht.style.backgroundColor='#FFEAEA';
	document.bevindingenFrm.bericht.focus()
	return false
	}
}	

// Popup flash folder

function popUpFlashfolder(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=550,left=0,top=0');");
}
   
