Moved set_alert_message_and_show() placed in login.php into js/generic_lib.js and renamed in jsJOMlib__GUI_set_alert_message_and_show(). Added a parameter to specify jQuery pointer within which insert alert code. Completed jsJOMlib__GUI_set_alert_message_and_show(): now the warnig/error message HTML block is inside the page and this function uses the message DIV and the container DIV to perform operations. Added more checks and console warning messages. Added warning/error HTML block in application.php