

  function tabOver(form, thisValue, nextField, len) {
       	if (thisValue.length >= len) {
       		var next = eval("form." + nextField);
       		next.focus();
       	}
   }
   
   function processOtherTx(to){
   	document.otherTxForm.to.value=to;
   	document.otherTxForm.submit();
   }
   
   // This function is to block the enter key from auro submitting the form when 
   // there is only 1 input field in the form.
   // From your jsp you can call onkeypress="return handleEnter(this, event)" from the input field.
   function handleEnter (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < field.form.elements.length; i++)
				if (field == field.form.elements[i])
					break;
			i = (i + 1) % field.form.elements.length;
			field.form.elements[i].focus();
			return false;
		} 
		else
		return true;
  } 