/**
 * Used to automatically tab from one field to another when the maxlength has been reached
 * Usage: autoTab(field_id_to_tab_to, current_field_object);
 */
function autoTab(next_element, current_element) {
	max_length = current_element.maxLength;
	if (max_length <= current_element.value.length) {
		if (next_element != "undefined") {
			next_element.focus();
		}
	}	
}
