﻿/// <reference path="jquery-1.4.1.min.js" />
jQuery.fn.setLabelValue = function () {
   var args = arguments[0] || {}; // It's your object of arguments
   var o = $(this[0]);

   o.val(args.label).data("init", args.label);
   o.focus(function () {
      if ($(this).val() == $(this).data("init")) {
         $(this).val('');
      }
   }).blur(function () {
      if ($(this).val() == '') {
         $(this).val($(this).data("init"));
      }
   });
}
