﻿function toggle(panelName) {
    var cevap = document.getElementById(panelName)
    if (cevap != undefined && cevap != "undefined") {
        var bullet = document.getElementById(cevap.getAttribute("bulletid"));
        var currentState = cevap.style.display;
        cevap.style.display = (currentState == 'none') ? 'block' : 'none';
        bullet.src = (currentState == 'none') ? 'img/unexpand_bullet.gif' : 'img/expand_bullet.gif';
    }
}