if (typeof($) != 'function')
{
	$ = function(id) { return document.getElementById(id); }
}

function __doPostBack(event)
{
	$('__events').value = event.toString();
	$('xform').submit();
}

function __trapReturn(e, action)
{
	if(e.keyCode == 13)
	{
		eval(action);
	}
}