function submit_loginform()
	{
	$('template_password_hash').value = hex_hmac_md5($F('template_hash_key'),hex_md5($F('template_password')));
	$('template_password').value = '';
	$('template_loginform').submit();
	return true;
	}


/*
alert(2);
(function() {
alert(1);
var Event = YAHOO.util.Event;
Event.on($('template_username'), "keydown", function(e) {

	// set the value when the 'return' key is detected
	if (Event.getCharCode(e) === 13) 
		{
		alert(1);
		//var v = parseFloat(this.value, 10);
		//v = (lang.isNumber(v)) ? v-1 : 0;
		// convert the real value into a pixel offset
		//	slider.setValue(Math.round(v/scaleFactor));
		}
	});
});
*/
var expect_enter = false;



document.onkeyup = function(e)
	{
	if(expect_enter)
		{
		var e = window.event || e;
		if(e.keyCode==13)
			{
			//alert(1);
			submit_loginform();
			}
		}
	}
