$(document).ready(function () {
    "use strict";
    // Longer display so bilingual (EN + AR) messages can be read (~10s visible + fade).
    var dismissMs = 10000;
    var fadeMs = 800;
    $("#successmessage").delay(dismissMs).fadeOut(fadeMs);
    $("#failmessage").delay(dismissMs).fadeOut(fadeMs);
});