try{var assignLabels = {'conf':{'currentLabels': {}},'init': function($form, $o){assignLabels.conf.currentLabels = $o;if ($.isArray($form)) {$.each($form, function() {$('form[name=' + this + ']').submit(function() {$(this).find('.labelShow').val('').find('.isPassword').removeAttr('name');});});} else {$('form[name=' + $form + ']').submit(function() {$(this).find('.labelShow').val('').find('.isPassword').removeAttr('name');});};$.each(assignLabels.conf.currentLabels, function(i, o) {var $elem = o.isTextArea ? 'textarea' : 'input';if (o.isPassword) {$('<input>').attr('id', i).val(o.text).addClass('labelShow isPassword').insertBefore($($elem + '[name=' + i +']').hide()).focus(function() {assignLabels.triggerFocus($(this));}).blur(function() {assignLabels.triggerBlur($(this));});if ($($elem + '[name=' + i +']').val().length > 0) {$('#' + i).hide().next().show();};} else {if (!$($elem + '[name=' + i +']').val().length) {$($elem + '[name=' + i +']').addClass('labelShow').val(o.text);};};$($elem + '[name=' + i +']').focus(function() {assignLabels.triggerFocus($(this));}).blur(function() {assignLabels.triggerBlur($(this));});});},'triggerFocus': function($element){if ($element.is('.isPassword')) {$element.hide().next().show().focus();} else {eval('var x = assignLabels.conf.currentLabels.' + $element.attr('name') + '.text;');if ($element.val() == x) {$element.val('').removeClass('labelShow');};};},'triggerBlur': function($element){if ($element.attr('type') == 'password') {if (!$element.val().length) {$element.hide().prev().show().blur(); };} else {eval('var x = assignLabels.conf.currentLabels.' + $element.attr('name') + '.text;');if ($element.val().replace(/\s*/g, '').length === 0) {$element.addClass('labelShow').val(x);};};}};}catch(e){};
