function handleTextFocus(thisControl) {//Legacy for search textbox
    if ($(thisControl).val() == $(thisControl).attr('Hint')) {
		$(thisControl).val('');
		$(thisControl).removeClass('noFocus');
		$(thisControl).addClass('hasFocus');
    }	
}
function handleTextBlur(thisControl) {//Legacy for search textbox
    $('.errorBorder').removeClass('errorBorder');
    if ($(thisControl).val() == '') {
		$(thisControl).removeClass('hasFocus');
		$(thisControl).addClass('noFocus');
		$(thisControl).val($(thisControl).attr('Hint'));
    }
}
function resetAllHints(elementTags) {//Legacy for search textbox
    $(elementTags).focus(function() { handleTextFocus(this);  return true; });
    $(elementTags).blur(function() { handleTextBlur(this); });
    $(elementTags).each(function() { handleTextBlur(this); }); // reset them all initially
}
function resetSearchbox(elementTags) {//Legacy for search textbox
	$(elementTags).val('');
	resetAllHints(elementTags);
}
function getGlobalData(storeKey) {//Legacy, not sure how this is used.
  var globalDiv = $("body");
  return(globalDiv.data(storeKey));
}

function storeGlobalData(storeKey, storeData) {//Legacy, not sure how this is used.
  var globalDiv = $("body");
  if (storeData == undefined) {
      globalDiv.removeData(storeKey);
  } else {
      globalDiv.data(storeKey, storeData);
  }
}
