function initLoginForm(idForm) { if ($('#' + idForm).size()) { document.getElementById(idForm).sts_login.focus(); document.getElementById(idForm).sts_login.select(); } } function initRedirectForm(idForm) { if ($('#' + idForm).size()) { document.getElementById(idForm).submit(); } }