﻿function tabit(obj, c1, c2, url) {
    var idname = new String(obj.id);
    var s = idname.indexOf("_");
    var e = idname.lastIndexOf("_") + 1;
    var tabName = idname.substr(0, s);
    var id = parseInt(idname.substr(e, 1));
    var tabNumber = obj.parentNode.childNodes.length;
    for (i = 0; i < tabNumber; i++) {
        if ($(tabName + "_list_" + i) != null) {
            $(tabName + "_list_" + i).style.display = "none";
            $(tabName + "_menu_" + i).className = c2;
        }
    }
    $(tabName + "_list_" + id).style.display = "block";
    $("dnmore").href = url;
    obj.className = c1;
}
