var downStrokeField;
function autojump(fieldName, nextFieldName, fakeMaxLength)
{
	var myField = $(fieldName);
	myField.nextField = $(nextFieldName);
	myField.nextField.setAttribute('autocomplete', 'off'); // gecko bug fixer...

	if (myField.maxLength == null)
	{
		myField.maxLength=fakeMaxLength;
	}

	myField.onkeydown = autojump_keyDown;
	myField.onkeyup = autojump_keyUp;
}

function autojump_keyDown()
{
	this.beforeLength = this.value.length;
	downStrokeField = this;
}

function autojump_keyUp()
{
	if ((this == downStrokeField) 
			&& (this.value.length > this.beforeLength) 
			&& (this.value.length >= this.maxLength))
	{
		this.nextField.focus();
		this.nextField.select();
	}

	downStrokeField = null;
}