{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 <!--\par
\par
function setFocus()\par
\{\par
    if (document.mail_login.imapuser.value == "") \{\par
        document.mail_login.imapuser.focus();\par
    \} else \{\par
        document.mail_login.pass.focus();\par
    \}\par
\}\par
<!-- CLSH: 2528 -->\par
\par
function checkmail(xx)\par
\{\par
\par
\tab rex=true;\par
\tab if (window.RegExp)\par
\tab\{\par
\tab\tab st="a";ex=new RegExp(st);\par
\tab\tab if (st.match(ex))\par
\tab\tab\{\par
\tab\tab\tab r1=new RegExp("(@.*@)|(\\\\.\\\\.)|(@\\\\.)|(^\\\\.)");\par
\tab\tab\tab r2=new RegExp("^.+\\\\@(\\\\[?)[a-zA-Z0-9\\\\-\\\\.]+\\\\.([a-zA-Z]\{2,3\}|[0-9]\{1,3\})(\\\\]?)$");\par
\tab\tab\tab b=(!r1.test(xx)&&r2.test(xx));\par
\tab\tab\}\par
\tab\tab else\par
\tab\tab\{\par
\tab\tab\tab rex=false;\par
\tab\tab\}\par
\tab\}\par
\tab else\par
\tab\{\par
\tab\tab rex=false;\par
\tab\}\par
\tab\par
\tab if(!rex)\par
\tab\tab b=(xx.indexOf("@")>0&&xx.indexOf(".")>0&&xx!=""&&xx!="e-mail");\par
\tab return (b);\par
\}\par
\par
function submit_login(e)\par
\{\par
    if (typeof e != 'undefined' && !enter_key_trap(e)) \{\par
        return;\par
    \}\par
\par
//    if (!checkmail(document.mail_login.imapuser.value) || document.mail_login.imapuser.value == "" ) \par
    if (document.mail_login.imapuser.value == "" )\par
    \{\par
        alert('Please provide your username.');\par
        document.mail_login.imapuser.focus();\par
        return false;\par
    \} else if (document.mail_login.pass.value == "") \{\par
        alert('Please provide your password.');\par
        document.mail_login.pass.focus();\par
        return false;\par
    \} else \{\par
//        document.mail_login.loginButton.disabled = true;\par
//        document.mail_login.ie_version.value = objCCaps.getComponentVersion("\{89820200-ECBD-11CF-8B85-00AA005B4383\}","componentid");\par
        document.mail_login.submit();\par
        return true;\par
    \}\par
\}\par
//-->\par
\par
}
 