(function(a){a(document).ready(function(b){b(".selectAndPrintForm").each(function(){b(this).attr("target","_blank");b(this).submit(function(){var d=[];b(this).find(".selectAndPrint_checkbox:checked").each(function(){var h=b(this).attr("id").replace("_cb_","_pt_");var g=b(this).closest("table");var i="#"+h;d.push(g.find(i).html())});var e=b(this).closest(".post").find(".entry-title").text();var c=b(this).closest(".post").find(".published").text();var f=b(this).find("#entryTitle").length;if(f==0){b(this).append("<input type='hidden' name='entryTitle' id='entryTitle'/>");b(this).append("<input type='hidden' name='entryPubDate' id='entryPubDate'/>");b(this).append("<input type='hidden' name='toPrint' id='toPrint'/>")}b("input[id='entryTitle']").setValue(e);b("input[id='entryPubDate']").setValue(c);b("input[id='toPrint']").setValue(d.join("<br/><br/>"));return true})});b(".selectAndPrintFormSubmit").each(function(){b(this).removeAttr("disabled")})})})(jQuery);
