$(document).ready(function() {
    /* Add a focus and blur handler for every input element that has a
     * 'clearClick' CSS class
     *
     * Note: This will use a 'prompt' attribute if it is defined, otherwise,
     *       the default prompt is the initial value.
     */
    $('input.clearClick')
        .focus(function() {
                var $el    = $(this);
                var val    = $el.val();
                var prompt = $el.attr('prompt');

                if (! prompt)
                {
                    /* This element does NOT have a 'prompt' attribute.
                     * Assign one now, using the current value of the input
                     * element.  If there is no current value, use
                     * 'keywords...'
                     */
                    prompt = val || 'keywords...';

                    $el.attr('prompt', prompt);
                }

                if ($el.val() == prompt)
                {
                    $el.val('');
                }
                return false;
          })
        .blur(function() {
                var $el    = $(this);
                if ($el.val() == '')
                {
                    var prompt = $el.attr('prompt');
                    prompt = prompt || 'keywords...';

                    $el.val(prompt);
                }
                return false;
          })
});