
ev = YAHOO.util.Event;
ev.on(window,'load',do_init,null);

function do_init() {
	if (document.all.username)
		document.all.username.focus();
}

function do_submit() {
	var t = document.forms[0].t.value;
	var el = document.getElementById('id_pass');
	var salt = document.forms[0].salt.value;
	el.value = hex_hmac_sha1(t,hex_hmac_sha1(salt,hex_md5(el.value)));
	return true;
}

