// Copyright Zikula Foundation 2010 - license GNU/LGPLv3 (or at your option, any later version).
document.observe("dom:loaded",mailer_modifyconfig_init);function mailer_modifyconfig_init(){$("mailertype").observe("change",mailer_transport_onchange);$("smtpauth").observe("change",mailer_smtpauth_onchange);mailer_transport_onchange();mailer_smtpauth_onchange()}function mailer_transport_onchange(){var a=$("mailertype");if(a.value=="4"){$("mailer_smtpsettings").show()}else{$("mailer_smtpsettings").hide()}if(a.value=="2"){$("mailer_sendmailsettings").show()}else{$("mailer_sendmailsettings").hide()}}function mailer_smtpauth_onchange(){Zikula.checkboxswitchdisplaystate("smtpauth","mailer_smtp_authentication",true)};