function favorieten()
{
    title = "Digitale fotografie tips en informatie!";
    url = "http://www.digitalfotografie.nl";

    if ( document.all )
    {
        window.external.AddFavorite(url, title);
        return false;
    }
    else if ( window.sidebar )
    {
        window.sidebar.addPanel(title, url, "");
        return false;
    }
    else if( window.opera && window.print )
    {
        object.rel = 'sidebar';
        object.href = url;
        object.title = title;
        return true;
    }
    else
    {
        window.alert('Helaas, deze link werkt alleen in Firefox, Opera en Internet Explorer.');
        return false;
    }
}




function showImage(){
	
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/random/20090306/1.jpg'
theImages[1] = 'images/random/20090306/2.jpg'
theImages[2] = 'images/random/20090306/3.jpg'
theImages[3] = 'images/random/20090306/4.jpg'
theImages[4] = 'images/random/20090306/5.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));	
	
document.write('<img src="http://www.digitalfotografie.nl/'+theImages[whichImage]+'">');
}

//  End -->
function checkform ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (document.form_hotel_zoeken.selectLand.value == "") {
    alert( "U heeft nog geen land geselecteerd!" );
    	document.form_hotel_zoeken.selectLand.style.color="Red";
	document.form_hotel_zoeken.selectLand.focus();
    return false ;
  } else if(document.form_hotel_zoeken.selectPlaats.value == "" && document.form_hotel_zoeken.selectRegio.value == "") {
	alert( "U heeft geen plaats of provincie geselecteerd!" );
	document.form_hotel_zoeken.selectPlaats.style.color="Red";
	
        document.form_hotel_zoeken.selectLand.focus();
    return false ;

  } else {
	window.document.form_hotel_zoeken.submit();
  }
  // ** END **
  return true ;
}


function checkformNieuwsbrief ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (document.form_nieuwsbrief.nieuwsbrief.value == "") {
    alert( "U heeft geen emailadres ingevuld!" );
		
    document.form_nieuwsbrief.nieuwsbrief.style.color="Red";
	document.form_nieuwsbrief.nieuwsbrief.focus();
    document.form_nieuwsbrief.nieuwsbrief.value = "Emailadres...";
	return false ;
  } else if (document.form_nieuwsbrief.nieuwsbrief.value == "Emailadres...") {
    alert( "U heeft geen geldig emailadres ingevuld!" );
		
    document.form_nieuwsbrief.nieuwsbrief.style.color="Red";
	document.form_nieuwsbrief.nieuwsbrief.focus();
    document.form_nieuwsbrief.nieuwsbrief.value = "Emailadres...";
	return false ;
  } else {
	  
	var email = document.form_nieuwsbrief.nieuwsbrief.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) {
		alert('U heeft geen geldig emailadres ingevoerd!');
		document.form_nieuwsbrief.nieuwsbrief.style.color="Red";
		document.form_nieuwsbrief.nieuwsbrief.focus();
		document.form_nieuwsbrief.nieuwsbrief.value = email;
		return false;
	}  else {


		   var answer = confirm("Is uw emailadres correct? " + document.form_nieuwsbrief.nieuwsbrief.value)
                        if (answer){
                                //alert("Bye bye!")
                                 window.document.form_nieuwsbrief.submit();
                                        return true ;
                         return true ;
                        }
                        else{
                                alert("U kunt uw emailadres aanpassen.")
                                document.form_nieuwsbrief.nieuwsbrief.focus();
                                document.form_nieuwsbrief.nieuwsbrief.value = email;
                        }



	}
	
  }
  // ** END **
  return true ;
}



function checkformNieuwsbriefMain ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  if (document.form_nieuwsbriefMain.nieuwsbriefMain.value == "") {
    alert( "U heeft geen emailadres ingevuld!" );
		
    document.form_nieuwsbriefMain.nieuwsbriefMain.style.color="Red";
	document.form_nieuwsbriefMain.nieuwsbriefMain.focus();
    document.form_nieuwsbriefMain.nieuwsbriefMain.value = "Emailadres...";
	return false ;
  } else {
	  
	var email = document.form_nieuwsbriefMain.nieuwsbriefMain.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) {
		alert('U heeft geen geldig emailadres ingevoerd!');
		document.form_nieuwsbriefMain.nieuwsbriefMain.style.color="Red";
		document.form_nieuwsbriefMain.nieuwsbriefMain.focus();
		document.form_nieuwsbriefMain.nieuwsbriefMain.value = email;
		return false;
	}  else {


		   var answer = confirm("Is uw emailadres correct? " + document.form_nieuwsbriefMain.nieuwsbriefMain.value)
                        if (answer){
                                //alert("Bye bye!")
                                 window.document.form_nieuwsbriefMain.submit();
                                        return true ;
                         return true ;
                        }
                        else{
                                alert("U kunt uw emailadres aanpassen.")
                                document.form_nieuwsbriefMain.nieuwsbriefMain.focus();
                                document.form_nieuwsbriefMain.nieuwsbriefMain.value = email;
                        }



	}
  
  }
  // ** END **
  return true ;
}






function checkformContact ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  var fout = 0;
  
  if (document.form_contact.name.value == "") {
    alert( "U heeft geen naam ingevuld!" );
		
    document.form_contact.name.style.color="Red";
	document.form_contact.name.focus();
	return false ;
	fout = 1;
  } 
  
   if (document.form_contact.email.value == "") {
    alert( "U heeft geen emailadres ingevuld!" );
		
    document.form_contact.email.style.color="Red";
	document.form_contact.email.focus();
	return false ;
	fout = 1;
  } 
  
   if (document.form_contact.body.value == "") {
    alert( "U heeft geen opmerking ingevuld!" );
		
    document.form_contact.body.style.color="Red";
	document.form_contact.body.focus();
	return false ;
	fout = 1;
  } 
  
  	var email = document.form_contact.email.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) {
		alert('U heeft geen geldig emailadres ingevuld!');
		document.form_contact.email.style.color="Red";
		document.form_contact.email.focus();
		return false;
		fout = 1
	}
  
 	if (fout == 0) {

	
	var answer = confirm("Is uw emailadres correct? " + document.form_contact.email.value)
			if (answer){
				//alert("Bye bye!")
				 window.document.form_contact.submit();
					return true ;
          		 return true ;
			}
			else{
				alert("U kunt uw emailadres aanpassen.")
				document.form_contact.email.focus();
				document.form_contact.email.value=email;
			}

	}
  	
}


function checkformRegistreer ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  var fout = 0;
  
  
   if (document.form_contact.email.value == "") {
    alert( "U heeft geen emailadres ingevuld!" );
		
    document.form_contact.email.style.color="Red";
	document.form_contact.email.focus();
	return false ;
	fout = 1;
  } 
  
  
  	var email = document.form_contact.email.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) {
		alert('U heeft geen geldig emailadres ingevuld!');
		document.form_contact.email.style.color="Red";
		document.form_contact.email.focus();
		return false;
		fout = 1
	}
  
 	if (fout == 0) {

	
	var answer = confirm("Is uw emailadres correct? " + document.form_contact.email.value)
			if (answer){
				//alert("Bye bye!")
				 window.document.form_contact.submit();
					return true ;
          		 return true ;
			}
			else{
				alert("U kunt uw emailadres aanpassen.")
				document.form_contact.email.focus();
				document.form_contact.email.value=email;
			}

	}
  	
}


function checkformReactie ()
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website

  // ** START **
  var fout = 0;
  
  if (document.plaatsArtikelReactie.name.value == "") {
    alert( "U heeft geen naam ingevuld!" );
		
    document.plaatsArtikelReactie.name.style.color="Red";
	document.plaatsArtikelReactie.name.focus();
	return false ;
	fout = 1;
  } 
  
   /*if (document.plaatsArtikelReactie.email.value == "") {
    alert( "U heeft geen emailadres ingevuld!" );
		
    document.plaatsArtikelReactie.email.style.color="Red";
	document.plaatsArtikelReactie.email.focus();
	return false ;
	fout = 1;
  }*/
  
   if (document.plaatsArtikelReactie.text.value == "") {
    alert( "U heeft geen reactie ingevuld!" );
		
    document.plaatsArtikelReactie.text.style.color="Red";
	document.plaatsArtikelReactie.text.focus();
	return false ;
	fout = 1;
  } 
  
  	/*var email = document.plaatsArtikelReactie.email.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) {
		alert('U heeft geen geldig emailadres ingevuld!');
		document.plaatsArtikelReactie.email.style.color="Red";
		document.plaatsArtikelReactie.email.focus();
		return false;
		fout = 1
	}*/
  
 	if (fout == 0) {

	
	//var answer = confirm("Is uw emailadres correct? " + document.form_contact.email.value)
	//		if (answer){
				//alert("Bye bye!")
				 window.document.plaatsArtikelReactie.submit();
					return true ;
   //       		 return true ;
	//		}
	//		else{
	//			alert("U kunt uw emailadres aanpassen.")
	//			document.form_contact.email.focus();
	//			document.form_contact.email.value=email;
	//		}

	}
  	
}


function zoekenVersturen() {
var zoekwaarde = document.zoekenform.zoekterm.value;
if (zoekwaarde == 'Geef hier uw zoekterm op...') {
	alert("U heeft nog geen zoekterm opgegeven");
	document.zoekenform.zoekterm.style.color="Red";
	document.zoekenform.zoekterm.focus();
} else if (zoekwaarde == '') {
	alert("U heeft nog geen zoekterm opgegeven");
	document.zoekenform.zoekterm.style.color="Red";
	document.zoekenform.zoekterm.focus();
} else {
	document.zoekenform.submit();

}
}


function verwijderAccount() {
  

  var answer = confirm("Weet u zeker dat u uw account definitief wilt verwijderen?")
                        if (answer){
                                 window.document.verwijderenaccount.submit();
                                        return true ;
                         return true ;
                        }
                        else{
                                //alert("U kunt uw emailadres aanpassen.")
                        }


  return true ;
}

