use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<script>\n\n	atkMsgAdd = \'add new\';\n\n	function popWin(aURL, aWidth, aHeight)\n	{\n		if (!aWidth) aWidth = 750;\n		if (!aHeight) aHeight = 650;\n		window.open(aURL,\'\',\'toolbar=no,location=no,directories=no,top=+30,left=+40,status=no,menubar=no,scrollbars=yes,resizable=yes,width=\' + aWidth + \',height=\' + aHeight);\n	}\n\n	function atkGoActionEditor(tabact)\n	{\n		var form = document.forms[\'Editor\'];\n		form.elements[\'TabAct\'].value = tabact;\n		form.submit();\n	}\n\n	function atkGoActionLister(tabact, id)\n	{\n		var form = document.forms[\'Lister\'];\n		form.elements[\'TabAct\'].value = tabact;\n		document.getElementById(\'ListerMainObjectID\').value = id;\n		form.submit();\n	}\n\n</script>\n");}