//########################################
//
// NeatForm by Triple S Web Services 2007
//
// you are free to use this script but
// please leave this message intact.
//
// example html form element:
// <input type="text" name="from" id="from" value="Your Name" onFocus="textClear(this,'Your Name')" onBlur="textRefill(this,'Your Name')" />
// note: also works for textarea elements
//
//########################################

// check the current field for default content, if true, clear the element
function textClear(field,content)
{
  if (field.value == content) 
  field.value = "";
} 

// if after being cleared (by textClear) the element is still blank when focus leaves the test area, repopulate it with the original default text
function textRefill(field,content)
{
  if (field.value == "")
  field.value = content;
}
