BB = new Array(); function GetItemById(id) { return document.getElementById(id); } function On_Click(id) { // them Rand1 = "&rand=" + Math.random(); obj = eval('document.forms[0].Rand'); obj.value = Rand1; //=========== var father_ = id; var id_system = GetItemById(Id_system); if ((id_system != id) & (Id_system != "")) id_system.style.color = 'black'; Var_system = 'true'; father_.style.color = "blue"; } function Out_Mouse(id) { var father_ = id; var id_system = GetItemById(Id_system); if (id_system != id) Var_system == 'true' if ((Var_system == 'false') || (id_system != id)) father_.style.color = 'black'; } function Move_Mouse(id) { var father_ = id; var id_system = GetItemById(Id_system); if (id_system != id) Var_system == 'true' if ((Var_system == 'false') || (id_system != id)) { father_.style.color = 'red'; } } function Menu_father(id) { var father_ = document.getElementById(id); var j = 0; for (var i = 1; i <= Count_table; i++) { var _tid = 'table_' + i; if (id != _tid) { //var id_=eval(); var id_ = document.getElementById(_tid); id_.style.display = 'none'; var img_ = document.getElementById('img_' + i); if (img_) { img_.src = 'left_menu_plus.gif'; } } else { j = i; } } father_.style.display = ''; var img_selected = document.getElementById('img_' + j); if (img_selected) img_selected.src = 'left_menu_sub.gif'; } function Menu_fatherChild(id) { var fatherChild = document.getElementById(id); var img_ = document.getElementById('imgChild_' + id.substring(id.length - 1, id.length)); if (fatherChild.style.display == 'none') { fatherChild.style.display = ''; img_.src = 'left_menu_sub_child.gif'; } else { fatherChild.style.display = 'none'; img_.src = 'left_menu_plus_child.gif'; } } var Count = 0; var Boo = 'false'; Count_table = 0; var Var_system = 'false'; var Id_system = ''; function buildMenuABC() { var sum = 0; var target1 = "Main"; var Count_tableChild = 0; var dem = ""; var sumChild = 0; var booTableChild = "false"; var countChild = 0; document.write(""); document.write(""); while ((Count < BB.length) && (Boo == 'false')) { if (BB[Count][2] == "_parent") { target1 = BB[Count][2]; } if (BB[Count][1] != '') { if (BB[Count][2] == "_parent") { target1 = BB[Count][2]; } if (BB[Count][1] != '') { var img = BB[Count][4] + ""; if (BB[Count][4] == "" || BB[Count][4] == "undefined" || BB[Count][4] == null) img = ""; document.write(""); Count++; sum++; } else { Boo = 'true'; } } else { Boo = 'true'; } } while ((Count < BB.length) && (Boo = 'true')) { if (BB[Count][2] != "_parent") { if (BB[Count][2] != "new") BB[Count][2] = "Main"; } if (BB[Count][3] == 'end') { document.write(""); document.write("
CHỨC NĂNG
" + img + "  " + BB[Count][0] + "
     " + BB[Count][0] + "
"); if (BB[Count + 1][1] == '') { document.write(""); } Count++; booTableChild = "false"; } if (BB[Count][3] == 'child') { Count_tableChild++; if (BB[Count][1] == 'child') strOnclick = ""; else strOnclick = "On_Click(this);Id_system=this.id; window.open(BB[" + Count + "][1]+ document.forms[0].Rand.value, BB[" + Count + "][2]);"; document.write("
   " + BB[Count][0] + "
"); document.write(""); Count++; booTableChild = "true"; } if (BB[Count][1] == '') { Count_table++; var tableDisplay = (Count_table == "1" ? "" : "none"); if (Count_table == "1") document.write(""); else document.write(""); document.write(""); } else { if (BB[Count + 1][1] == '') { Count_table++; document.write(""); document.write("
    " + BB[Count + 1][0] + "
"); document.write(""); Count++; sum = Count; } } } Count++; } document.write(""); document.write(""); }