 /* Function: clearDefaults(fieldName) 	Author: John Weber		fieldName - this is the field that you will be clearing.  Recommended usage: onfocus="clearDefaults(this.id);"  		This funtion will clear a field when a user interacts with it, only if "[" is the first character.	This should prevent the field from reclearing if they would like to edit it. */ var globalTempValue = ""; var globalTempID = "";function clearDefaults(fieldName){   var re = /^[\[]/;    // for the onblur action, if the field is empty.  if(document.getElementById(fieldName).value == '' && document.getElementById(fieldName).id == globalTempID && globalTempValue.match(re)){   document.getElementById(fieldName).value = globalTempValue;    // for the onfocus action.  } else {   globalTempValue = document.getElementById(fieldName).value;   globalTempID = document.getElementById(fieldName).id;      if((document.getElementById(fieldName).value.match(re)))     document.getElementById(fieldName).value = "";  } }