

function gup(name)
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function searchText() {
    var searchText = document.getElementById("ctl00_searchText");
	searchText.style.color='#888888';
	var st = gup('q');
	
	if(st) {
		searchText.value = st;
	     searchText.onfocus = function() {
	         if(this.value==st){
	             this.value='';
	             this.style.color='#000000';
	        }
	    } 
	    searchText.onblur= function() {
	        if(this.value==''){
	            this.value=st;
	            this.style.color='#888888';
	        }
	    }

	}
	
	
	else {
		searchText.value = 'Enter Keywords';
	     searchText.onfocus = function() {
	         if(this.value=='Enter Keywords'){
	             this.value='';
	             this.style.color='#000000';
	        }
	    } 
	    searchText.onblur= function() {
	        if(this.value==''){
	            this.value='Enter Keywords';
	            this.style.color='#888888';
	        }
	    }

	}
}

searchText();