function clearme(fe,txt){ // check to see that the form element is the default text if (fe.value == txt){ // clear the default text fe.value = ""; } return; } // call it like this