jQuery.fn.extend({emptyonclick:function(options){return this.each(function(){new jQuery.EmptyOnClick(this,options);});}});jQuery.EmptyOnClick=function(element,options){var defaultValue=$(element).val();$(element).bind("focus",function(e){if(defaultValue==$(this).val())
$(this).val('');}).bind("blur",function(e){if(!$(this).val()){$(this).val(defaultValue);}});$("form:has(#"+element.id+")").bind('reset',function(e){$(element).val(defaultValue);$(element).removeClass(options.changeClass);}).bind('submit',function(e){if($(element).val()==defaultValue)
$(element).val('');});};$(document).ready(function(){$('#loginform input').emptyonclick();});
