﻿// -------------------------------------------
//            resetField
// blanks a prefilled field on focus
// restores prefill on blur if nothing entered
// -------------------------------------------
function resetField( FIELD, RESET, inactiveColor ) {
  var vD = FIELD.defaultValue;
  if ( FIELD.value == ( RESET ? '' : vD ) ) FIELD.value = ( RESET ? vD : '' );
  FIELD.style.color = ( FIELD.value == vD ) ? inactiveColor : '';
}

