//Automatically tab to the next form field (only allowing Integers [0-9]) for things like phone number fields, etc.
function autoTabInt(input,next,bNonDigits)
{
	//Retrieve pressed key
	var key = 0;
	if (window.event != null)
		key = window.event.keyCode;
	else if (arguments.callee.caller.arguments[0] != null)
		key = arguments.callee.caller.arguments[0].keyCode;
	
	if (key != 9 && key != 16) {
		if (bNonDigits != 1)
			input.value = input.value.replace(/\D/,"");
		if ((input.value.length == input.maxLength))
			next.focus();
	}
}