var lempty=1; function onblurlogin () { if (document.logonsite.logsite.value) lempty = 0; else { lempty = 1; document.logonsite.logsite.value = "Ëîãèí"; } } function onfocuslogin () { if (lempty) document.logonsite.logsite.value = ""; lempty = 0; } function onff () { document.logonsite.fig.style.display = "none"; document.logonsite.passwsite.style.display = ""; document.logonsite.passwsite.focus(); } function onbp () { if ( !document.logonsite.passwsite.value ) { document.logonsite.passwsite.style.display = "none"; document.logonsite.fig.style.display = ""; document.logonsite.fig.value = "Ïàðîëü"; } } function onformsubmitsite() { if (document.logonsite.logsite.value.length == 0 || lempty) { alert('Ââåäèòå ëîãèí!'); return false }; if (document.logonsite.passwsite.value.length == 0) { alert('Ââåäèòå ïàðîëü!'); return false }; document.logonsite.passwsite.value = hex_md5(hex_md5(document.logonsite.passwsite.value)+document.logonsite.rndvalsite.value); return true; } err = ""; if (err.length != 0) alert(err);