$(document).ready(function(){
  //get the text from the label and assign it as the default value for the form
  defaultValue = "Keyword";//$("#myform label[for='s']").html();
  $("#s")
    .data("default", defaultValue)
    .val(defaultValue)
	  .css({color:'<?=$searchText?>'});
 
  //assign a function to the focus and blur events
  $("#s")
	.bind("focus blur", function(){
		value = $(this).val();
		defaultValue = "Keyword";//$(this).data("default");
		//if the current and default value are the same, clear the input field
		if(value==defaultValue){
		  $(this).val("")
		  .css({color:'#fff'});
		}
		$(this).css({color:'#fff'});
		//if the field is empty, set the value to default
		if(!value){
		  $(this).val(defaultValue)
		  .css({color:'<?=$searchText?>'});
		}
	})
  	.bind("blur", function(){
	   	$(this).css({color:'<?=$searchText?>'});			 
	});
  
});