function initEditAccountData() { var activeElement; if(activeElement = document.getElementById('active')) { onchange_active(activeElement); } } function onchange_active(_checkbox) { identityInputs = document.getElementById('identity').getElementsByTagName('input'); incomingInputs = document.getElementById('incoming_server').getElementsByTagName('input'); outgoingInputs = document.getElementById('outgoing_server').getElementsByTagName('input'); if(_checkbox.checked) { for(i=0; i