
(function($j){$j.fn.defaultbutton=function(element){if(!element)
{return this;}
return this.bind("keypress",function(e){var key=e.keyCode||e.charCode;if(key==13){jQuery(element).click();return false;}});};$j.fn.cancelbutton=function(element){if(!element)
{return this;}
return this.bind("keypress",function(e){var key=e.keyCode||e.charCode;if(key==27){jQuery(element).click();return false;}});};})(jQuery);