function check_onkeypress(element,e)
{
    var whichCode = (window.Event) ? e.which : window.event.keyCode;

    if (whichCode == 13)   //catch "enter button" event
    {
        element.form.submit();
    }
}

 function init(p_msg)
 {
    document.sub_login_frm.p_logon.focus();
    if (p_msg != '')
    {
       alert(p_msg);
    }
 }