//<script>
   function FormField(){ 
// these items manage jumping from one input to another for a compound
// set of fields (ie: [###]-[##]-[####])
   this.tabNextCurrentLength      = 0;
   this.tabNext                   =  FormField_tabNext;
   }

// ----------------------------------------------------------------------
// field key-stroke routines
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
// method....: tabNext
// purpose...: makes the cursor jump to then next field when a given 
//             number of characters exist in the current field
// ----------------------------------------------------------------------
   function FormField_tabNext(oFieldCurrent, strEvent, intFieldMaxSize, oFieldNext) {
     if (strEvent == "down"){
	   this.tabNextCurrentLength = oFieldCurrent.value.length;
	   }
     if (strEvent == "up") {
	     if (oFieldCurrent.value.length != this.tabNextCurrentLength){
		   this.tabNextCurrentLength = oFieldCurrent.value.length;
			   if (this.tabNextCurrentLength == intFieldMaxSize){
			   oFieldNext.focus();
			   }
		   }
	   }
   }
 