function checkMailBoxLoginForm(){
    var msg = '';
    if ($("#macmailbox-login-username").val() != ''){
    }else{
        msg += "\t- Benutzername\n";
    }
    if ($("#macmailbox-login-password").val() != ''){
    }else{
        msg += "\t- Kennwort\n";
    }
    
    if (msg == ''){
        animationBlock('block');
        return true;
    }

    alert("Bitte folgenden Felder überprüfen:\n\n"+msg);

    return false; 
}
function animationBlock(displayValue){
    if (document.getElementById('wait-animation')){
        if (document.getElementById('floating-bg-left')){
            document.getElementById('floating-bg-left').style.zIndex = "-1";
        }
        if (document.getElementById('floating-bg-right')){
            document.getElementById('floating-bg-right').style.zIndex = "-1";
        }        
        document.getElementById('wait-animation').style.display = displayValue;
    }
}

function submitForm(formId){
    if (document.getElementById(formId)){
        document.getElementById(formId).submit();
    }
}

function showBlock(objId){
    // toggle object
    if (document.getElementById(objId)){
		    objToogleBlock = document.getElementById(objId);
		    $(objToogleBlock).slideToggle(200);
    }
}

