You could also use 'this' or '$' in place of field name based on your script language(JavaScript or FormCalc) preference. Using these will generalize the script and can be used from any field and greatly reduce your need to make changes in every event.
For example your code:
txtField.border.edge.color.value = "233,217,145";
will look like this.border.edge.color.value = "233,217,145"; if you use JavaScript.
Hope this helps...
Good luck,
SekharN