function setKeywordSearchPlaceholders(theInputSelector, defaultPlaceholder){
	var theInput = $(theInputSelector);
	
	if(theInput.length){
		// if theInput value onclick is defaultPlaceholder, set value to blank
		theInput.click(function(){
			if(theInput.val() === defaultPlaceholder){
				//console.log("onClick: " + this);
				theInput.val("");
			}
		});
		
		// if theInput value onblur is empty, set value to defaultPlaceholder
		theInput.blur(function(){
			if(theInput.val().length === 0){
				theInput.val(defaultPlaceholder);
			}
		});
	}
}

$(document).ready(function(){
	setKeywordSearchPlaceholders( '.topsearchbox', 'Search' );
	setKeywordSearchPlaceholders( '.caseselect', ' ' );
});
