 function doClear(theText) {

     if (theText.value == theText.defaultValue) {

         theText.value = ""

     }

 }

 

 function doRestore(theText) {

     if (theText.value == "") {

         theText.value = theText.defaultValue

     }

 }
