$.fn.extend({post_form:function(action,method,fn){var element=$(this);if(action=="")
action=$(this).attr("action");if(method=="")
method=action=$(this).attr("method");if(method=="")
method="post";var data=$(this).serialize();if(method=="POST"||method=="post"){$.post(action,data,function(data){fn(data);});}
if(method=="GET"||method=="get"){$.get(action,data,function(data){fn(data);});}}});
