function doPost(){
    var email   = document.frm.email;
    AtPos       = email.value.indexOf("@");
    StopPos     = email.value.lastIndexOf(".");
    if(document.frm.voornaam.value == ""){
        alert ("U bent vergeten het volgende veld in te vullen: Voornaam");
        document.frm.voornaam.focus();
    }else if(document.frm.achternaam.value == ""){
        alert ("U bent vergeten het volgende veld in te vullen: Achternaam");
        document.frm.achternaam.focus();
    }else if ( StopPos == -1 || StopPos < AtPos)
    {
        alert("U dient een correct e-mailadres in te vullen");
        document.frm.email.focus();
    }else{
        document.frm.action = "../templates/includes/contactverwerk.inc.php";
        document.frm.submit();
    }
}

function doContact(){
    var email   = document.frm.email;
    AtPos       = email.value.indexOf("@");
    StopPos     = email.value.lastIndexOf(".");
    if(document.frm.naam.value == ""){
        alert ("U bent vergeten het volgende veld in te vullen: Naam");
        document.frm.naam.focus();
    } else if(document.frm.telefoon.value == ""){
        alert ("U bent vergeten het volgende veld in te vullen: Telefoon");
        document.frm.telefoon.focus();
    }else if ( StopPos == -1 || StopPos < AtPos)
    {
        alert("U dient een correct e-mailadres in te vullen");
        document.frm.email.focus();
    }else{
        document.frm.action = "../templates/includes/contactverwerk.inc.php";
        document.frm.submit();
    }
}
		
function isValidEmail(str) {
    return (str.indexOf(".") > 0) && (str.indexOf("@") > 0);
}   
		
function buttonHover(id){
    document.getElementById(id).style.color="#666666";
    document.getElementById(id).style.cursor="pointer";
}
		
function buttonOut(id){
    document.getElementById(id).style.color="#000000";
}
