jQuery.fn.DefaultValue=function(){
var defcolor='#999999',actcolor='#000000';
return this.each(function(){
	if(this.type!='text'&&this.type!='textarea'||this.id=='password_hint'||this.id=='password_hint2') {
		return;
	}
$(this).attr('realtype',this.type);
if(this.value==''){if(this.type=='password') {
	if(!$.browser.msie)
	this.type='text';
}
this.value=$(this).attr('defaultvalue');
$(this).css('color',defcolor);}
$(this).focus(function(){if(this.value==$(this).attr('defaultvalue')){this.value='';if($(this).attr('realtype')=='password'){if(!$.browser.msie)
this.type='password';}
$(this).css('color',actcolor);}}).blur(function(){if(this.value==''){if(this.type=='password')
{
	if(!$.browser.msie)
	this.type='text';
}
this.value=$(this).attr('defaultvalue');$(this).css('color',defcolor);}});var that=this;$(this).parents("form").each(function(){$(this).submit(function(){
   if(that.value==$(that).attr('defaultvalue')){that.value='';}
});});});};

