function favorieten()
{
    title = "De hoogste spaarrente";
    url = "http://www.onlinespaarrente.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 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;
			}

	}
  	
}

