use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<script>\nfunction InvertSelection()\n{\n	var form = document.forms[\'Lister\'];\n	for (var i = 0; i < form.elements.length; i++)\n	{\n		if (form.elements[i].type == \"checkbox\")\n			form.elements[i].checked = ! form.elements[i].checked;\n	}\n	return;\n}\n</script>\n\n<table align=\"center\">\n<tr>\n	<td>\n		<input type=button class=\"btn btn-primary\" value=\"Invert selection\" onClick=\"InvertSelection();\">\n	</td>\n	<td>\n");{my $G = (ref $this)->get("/zen/table/lister_controls.html", $this->{param}) or die "no skel /zen/table/lister_controls.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("	</td>\n</tr>\n</table>\n");}