<script>
var s=document.getElementById("s");
s.onfocus=function(){
if(this.value==this.defaultValue)
this.value=''
};
s.onblur=function (){
if(/^\s*$/.test(this.value)){
this.value=this.defaultValue;
this.style.color='#aaa'
}
}
s.onkeydown=function(){
this.style.color='#333'
}
</script>
var s=document.getElementById("s");
s.onfocus=function(){
if(this.value==this.defaultValue)
this.value=''
};
s.onblur=function (){
if(/^\s*$/.test(this.value)){
this.value=this.defaultValue;
this.style.color='#aaa'
}
}
s.onkeydown=function(){
this.style.color='#333'
}
</script>