use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<script>\n\nfunction AweberCheckMainDiv(enabled)\n{\n	document.getElementById(\'AweberDiv\').style.display = enabled ? \'\' : \'none\';\n}\n\n</script>\n\n");$C->{checked} = $C->{Object}{aweber_yes} ? 'checked' : '';$this->out("<input type=\"checkbox\" name=\"aweber_yes\" value=\"1\" $C->{checked} onClick=\"AweberCheckMainDiv(this.checked)\">\n<input type=\"hidden\" name=\"aweber_yes\" value=\"\">\nenable Aweber.com integration\n\n");$C->{Settings} = $C->{Object}->getView->{AweberSettingsUnpacked};$this->out("\n<div id=\"AweberDiv\" style=\"display: none\">\n\n<br>\n");$C->{checked} = { ($C->{Settings}{when_to_apply} eq 'squeeze' ? 'squeeze' : 'ty'), 'checked' };$this->out("<input type=\"radio\" name=\"when_to_apply\" value=\"squeeze\" $C->{checked}{squeeze}> Apply on the Squeeze page<br>\n<input type=\"radio\" name=\"when_to_apply\" value=\"ty\" $C->{checked}{ty}> Apply before the Thank You page<br>\n<br>\n\nURL:<br>\n<input type=\"text\" size=\"50\" name=\"aweber_url\" value=\"$C->{Settings}{aweber_url}\">\n<br><br>\nParameters:<br>\n<textarea name=\"aweber_data\" rows=\"5\" cols=\"50\">$C->{Settings}{aweber_data}</textarea>\n\n<br><br>\n");$C->{checked} = $C->{Settings}{use_unsub} ? 'checked' : '';$this->out("<input type=\"checkbox\" name=\"use_unsub\" value=\"1\" $C->{checked}>\n<input type=\"hidden\" name=\"use_unsub\" value=\"\">\nuse Aweber.com silent unsubscribe feature (not available for Squeeze page)\n\n<br><br>\nUnsubscribe FROM email address<br>(* needs configuring in Aweber.com as well):<br>\n<input type=\"text\" size=\"50\" name=\"unsub_from\" value=\"$C->{Settings}{unsub_from}\">\n\n<br>\nUnsubscribe TO email address:<br>\n<input type=\"text\" size=\"50\" name=\"unsub_to\" value=\"$C->{Settings}{unsub_to}\">\n\n<br>\nUnsubscribe Subject template:<br>\n<input type=\"text\" size=\"50\" name=\"unsub_subject\" value=\"$C->{Settings}{unsub_subject}\"><br>\n\n<script>AweberCheckMainDiv($C->{Object}{aweber_yes});</script>\n\n<br>\n<a href=\"#\" onClick=\"jinPopWin(\'/help/tagshelp.html?ident=form_package_aweber\'); return false;\">View the list of available tags.</a><br>Please note that the ful list of tags work only in the Thank You page mode.<br>In the Squeeze page mode, only 3 tags are parsed:<br>&#35;{user_name}, &#35;{user_email}, &#35;{return_url}\n\n</div>\n<br>\n");}