﻿function postMailplusLogin()
{
    var error = "";
    document.mailplusloginform.login.value = document.getElementById('mailpluslogininmaindocument').value;
    document.mailplusloginform.pwd.value = document.getElementById('mailpluspwdinmaindocument').value;
    
    if (document.mailplusloginform.login.value == "") error += 'U heeft geen gebruikersnaam ingevuld.\n\r';
    if (document.mailplusloginform.pwd.value == "") error += 'U heeft geen wachtwoord ingevuld.\n\r';
    
    if (error == "")
        document.mailplusloginform.submit();
    else
       alert(error);
}