function enter_tabs_to(event,next_field_id) {
	// if the user hits 'enter', pretend it was a tab
	// and switch focus to the indicated field
	if (event) {
		if (is_event_enter(event)) {
			var e=document.getElementById(next_field_id);

			if (e) {
				e.focus();
				return false;	// abandon keypress processing in this case, since we've now left the field
			}
		}
	}
	return true;
}

function is_event_enter(event) {
    // available DOM/Mozilla documentation says useful things like
    //     'charCode *generally* has a value for keypress'
    // except that sometimes, it doesn't have a value
    //
    // so we have to do nonsense like this

    if (event.charCode==0) {
	return (event.keyCode==13);
    }
    else {
	return (event.charCode==13);
    }
}

