// onclick inputbox clear/reset function doClear(theText) { if (theText.value == theText.defaultValue) { theText.value = "" } } function doReset(theText) { if (theText.value == "") { theText.value = theText.defaultValue } }