This will do everything you need without the browser compatibility problem that I tested in ie7,8,9. Perfect fit.
<input type="text" value="Search" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}">
Good luck
source share