function focusOn(obj){
	if(obj != null){
		obj.focus();
	}
}

function jumpToControl(max, fromObj, toObj){	
	var from = document.getElementById(fromObj);
	var to = document.getElementById(toObj);
	if(from != null && to != null){
		var text = from.value;
		if(text.length == max){
			focusOn(to);
		}
	}
}
