jQuery.fn.noCTRLv=function(b){settings={paste:0,oldContent:""};jQuery.extend(settings,b);jQuery.fn.extend({});return this.each(function(){var c=$(this);a(c)});function a(c){$(c).keydown(function(d){settings.oldContent=$(this).attr("value");if(typeof(settings.oldContent)=="undefined"){settings.oldContent=""}});$(c).keypress(function(d){if(d.which==118||d.which==122){settings.paste=1}});$(c).keyup(function(){if(settings.paste==1){$(this).attr("value",settings.oldContent)}settings.paste=0})}};