function saveForm(source,destination) {
    if(document.forms.guestBookForm.gname.value != '' && document.forms.guestBookForm.gemail.value != '' && document.forms.guestBookForm.gtext.value != '') {
    var xmlHttp;
    try {
        // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    }
    catch (e) {
        // Internet Explorer
        try {
            xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');
        }
        catch (e) {
            try {
                xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');
            }
            catch (e) {
                alert('Your browser does not support AJAX!');
                return false;
            }
        }
    }
    xmlHttp.onreadystatechange=function() {
        if(xmlHttp.readyState==4) {
            //document.getElementById(destination).innerHTML=xmlHttp.responseText;
            getContentToObject('contentAjax.php?pid=45','spandoek');
            alert('Het berichtje is opgeslagen. Na goedkeuring zal het berichtje op de site verschijnen.');
        }
    }
    
    xmlHttp.open('GET',source + '?gname=' + document.forms.guestBookForm.gname.value + '&gemail=' + document.forms.guestBookForm.gemail.value + '&gtext=' + document.forms.guestBookForm.gtext.value,true);
    xmlHttp.send(null);
    
    } else {
        alert('De verplichte velden zijn nog niet allemaal ingevuld.');
    }
    return false;
}

