Hacked By AnonymousFox

Current Path : C:/AppServ/www/mfu/webengine/system_menu/
Upload File :
Current File : C:/AppServ/www/mfu/webengine/system_menu/function.php

<?
#####################################################
function loadTreeMenu($myParentID,$myMID) {
#####################################################
	global $System_DataBase_Name,$myModule_Table1,$SystemMenuID,$System_Session_Language;

	$sql = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID.
	" AND ".$myModule_Table1."_Language='$System_Session_Language'".
	" ORDER BY ".$myModule_Table1."_Order ASC ";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error:1 เกิดความผิดพลาด <br>$sql<br>\n");
	$RecordCount=MYSQL_NUMROWS($Query);
	$MaxOrder =$RecordCount;
	if($RecordCount>0) {
		$index=1;
		while($index<$RecordCount+1) {
			$Row=MYSQL_FETCH_ARRAY($Query);
			$sql1 = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$Row[$myModule_Table1."_ID"].
			//" AND ".$myModule_Table1."_MID='$myMID'".
			" ORDER BY ".$myModule_Table1."_Order ASC ";
			$Query1=MYSQL_DB_QUERY($System_DataBase_Name,$sql1) OR DIE("Error:2 เกิดความผิดพลาด <br>$sql<br>\n");
			$RecordCount1=MYSQL_NUMROWS($Query1);
			?>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_table">
			  <tr class="table_row1" onMouseOver="this.className='table_rowover'" onMouseOut="this.className='table_row1'"> 

				<td width="22" height="22" align="center" valign="top">
				<? if ($Row[$myModule_Table1."_isModule"]==2) { ?>
					<? if ($RecordCount1>0) { ?>
					<img src="level/22x22_hir_minus.gif" width="22" height="22" onMouseOver="this.style.cursor='hand';" onClick="HideShowSubMenu(<?=$Row[$myModule_Table1."_ID"]?>,this,'')">
					<? } else { ?>
					<img src="level/22x22_hir_tree.gif" width="22" height="22">
					<? } ?>
				<? } else { ?>
					<img src="level/22x22_hir_tree.gif" width="22" height="22">
				<? } ?>
				</td>

				<td width="615" valign="middle"><?=$Row[$myModule_Table1."_Name".$System_Session_Language]?></td>
				<td align="center" width="86" nowrap><?
				if ($Row[$myModule_Table1."_ModuleType"]=="Group") echo "<font color='#999999'>";
				echo $Row[$myModule_Table1."_ModuleType"];
				if ($Row[$myModule_Table1."_ModuleType"]=="Group") echo "</font>";
				?>				  </td>
				<td align="center" width="73" nowrap><?
				if ($Row[$myModule_Table1."_ShowMain"]=="Yes") { echo "<font color='#0000ff'>";echo "Show";}else{ echo "<font color='#999999'>"; echo "Hide";}
				echo "</font>";
				?></td>
				<td width="74" align="center" valign="middle"><img src="../images/icon/ico442.gif" width="8" height="14"> <a href="#p" onClick="
			if('<?=$Row[$myModule_Table1."_Status"]?>'=='Enable') {
				document.myStatusForm.toolbarStatus[0].checked=true;
			} else if('<?=$Row[$myModule_Table1."_Status"]?>'=='Disable' || '<?=$Row[$myModule_Table1."_Status"]?>'=='') {
				document.myStatusForm.toolbarStatus[1].checked=true;
			}
			document.myForm.Module_MenuID.value='<?=$Row[$myModule_Table1."_ID"]?>';
			ShowDataPicker('divDataPicker',-230,-150);
			">
				  <?=$Row[$myModule_Table1."_Status"]?>
				  </a></td>
				<td width="102" height="22" align="center" valign="middle"> <table border="0" cellspacing="0" cellpadding="1">
					<tr align="center" valign="bottom"> 
					  <td><img src="../images/icon/ico611.gif" alt="Move" width="16" height="16" border="0" onMouseOver="this.style.cursor='hand'" onClick="
			document.myForm.action.value='move';
			document.myForm.Module_MenuID.value='<?=$Row[$myModule_Table1."_ID"]?>';
			document.myForm.submit();
			"></td>
					  <td><img src="../images/icon/makeordering.gif" alt="Sorting" width="15" height="14" border="0" onMouseOver="this.style.cursor='hand'" onClick="
			document.myForm.action.value='makeordering';
			document.myForm.myParentID.value='<?=$myParentID?>';
			document.myForm.submit();
			"></td>
					  <td><img src="../images/icon/ico416.gif" alt="View" width="16" height="21" border="0" onMouseOver="this.style.cursor='hand'" onClick="
			document.myForm.action.value='view';
			document.myForm.Module_MenuID.value='<?=$Row[$myModule_Table1."_ID"]?>';
			document.myForm.submit();
			"></td>
					  <td><img src="../images/icon/ico425.gif" alt="Edit" width="16" height="16" border="0" onMouseOver="this.style.cursor='hand'" onClick="
			if(confirm('Are you sure to edit this record?')) {
				document.myForm.action.value='edit';
				document.myForm.Module_MenuID.value='<?=$Row[$myModule_Table1."_ID"]?>';
				document.myForm.submit();
			}
			"></td>
					  <td> 
						<? if($RecordCount1==0) { ?>
						<img src="../images/icon/ico417.gif" alt="Delete" width="16" height="16" border="0" onMouseOver="this.style.cursor='hand'" onClick="
			if(confirm('Are you sure to delete this record?\nWarning : Your module data will be lost!')) {
				document.myForm.action.value='delete';
				document.myForm.Module_MenuID.value='<?=$Row[$myModule_Table1."_ID"]?>';
				document.myForm.submit();
			}
			"> 
						<? } else { ?>
						<img src="../images/icon/ico417_disable.gif" alt="Can't delete an unempty category" width="16" height="16"> 
						<? } ?>
					  </td>
					</tr>
				</table></td>
			  </tr>
			</table>
			<? if ($Row[$myModule_Table1."_isModule"]==2) { ?>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_table" id="idMenuSubTable<?=$Row[$myModule_Table1."_ID"]?>">
			  <tr class="mytable_row1"> 
				<td width="22" height="22" align="center" valign="middle" background="level/22x22_hir_line.gif">&nbsp;</td>
				<td align="left" valign="middle" nowrap> 
				  <? loadTreeMenu($Row[$myModule_Table1."_ID"],$myMID); ?>
				</td>
			  </tr>
			</table>
			<? } ?>
		<? 
	   $index++;
		}
	}
?>
	<? //if ($Row[$myModule_Table1."_isModule"]==2) { ?>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_table">
	<tr class="mytable_row1"> 
	<td width="22" height="22" align="center" valign="middle"><img src="level/22x22_hir_end.gif" width="22" height="22"></td>
		<td align="left" valign="middle" nowrap>&nbsp;<a href="#" onClick="
	document.myForm.action.value='add';
	document.myForm.myParentID.value='<?=$myParentID?>';
	document.myForm.submit();
		"><font color=#999999>&lt;&lt;Add Menu&gt;&gt;</font></a></td>
	</tr>
	</table>
	<? //} ?>
<? 
}  // end fuction
?>


<?
#####################################################
function loadTreePermissionMenu($Type,$myParentID,$myMID,$counter) {
#####################################################
	global $System_DataBase_Name,$SystemModule_dbName_Menu,$SystemMenuID,$System_TableName_UserOnMenu;
	global $counter,$myUserID,$System_Session_Language;
	$myModule_Table1 = $SystemModule_dbName_Menu;

	$sql = "SELECT * FROM ".$myModule_Table1." WHERE  ".$myModule_Table1."_ParentID=".$myParentID.
	//" AND ".$myModule_Table1."_MID='$myMID'".
	" ORDER BY ".$myModule_Table1."_Order ASC ";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error:1 เกิดความผิดพลาด <br>$sql<br>\n");
	$RecordCount=MYSQL_NUMROWS($Query);
	$MaxOrder =$RecordCount;
	if($RecordCount>0) {
		$index=1;
		while($index<$RecordCount+1) {
			   $counter++;
			$Row=MYSQL_FETCH_ARRAY($Query);
			$sql1 = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID =".$Row[$myModule_Table1."_ID"].
			//" AND ".$myModule_Table1."_MID='$myMID'".
			" ORDER BY ".$myModule_Table1."_Order ASC ";
			$Query1=MYSQL_DB_QUERY($System_DataBase_Name,$sql1) OR DIE("Error: เกิดความผิดพลาด <br>$sql1<br>\n");
			$RecordCount1=MYSQL_NUMROWS($Query1);
		$sql2 = "SELECT * FROM ".$System_TableName_UserOnMenu." WHERE ".$System_TableName_UserOnMenu."_MenuID='".$Row[$myModule_Table1."_ID"]."' AND ".$System_TableName_UserOnMenu."_UserID='$myUserID' ";
		$Query2=MYSQL_DB_QUERY($System_DataBase_Name,$sql2) OR DIE("Error:2 เกิดความผิดพลาด <br>$sql2<br>\n");
		$Row2=MYSQL_FETCH_ARRAY($Query2);
		$nomRow=mysql_num_rows($Query2);
			?>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_table">
			  <tr class="table_row1" onMouseOver="this.className='table_rowover'" onMouseOut="this.className='table_row1'"> 

				<td width="22"  align="center" valign="top">
				<? if ($Row[$myModule_Table1."_isModule"]==2) { ?>
					<? if ($RecordCount1>0) { ?>
					<img src="level/22x22_hir_minus_1.gif" onMouseOver="this.style.cursor='hand';" onClick="HideShowSubMenu2(<?=$Row[$myModule_Table1."_ID"]?>,this,'')">
					<? } else { ?>
					<img src="level/22x22_hir_tree_emtry.gif" width="22" height="22">
					<? } ?>
				<? } else { ?>
					<img src="level/22x22_hir_tree_emtry.gif" width="22" height="22">
				<? } ?>
				</td>

				<td valign="middle"><?=$Row[$myModule_Table1."_Name".$System_Session_Language]?></td>
		<? if ($Type=="Manage") { ?>
		  <td width="40" align="center" nowrap><input name="inputMenuID<?=$counter?>" type="checkbox" class="form_checkbox" id="inputMenuID<?=$counter?>" value="<?=$Row[$myModule_Table1."_ID"]?>" <? if($nomRow>0) { echo " checked"; } ?>></td>
		  <? } else { ?>
		  <td width="40" align="center" nowrap><? if ($nomRow>0) { ?><img src="../images/bullet/p_true.gif" width="11" height="11"><? } else { ?>&nbsp;<? } ?></td>
		  <? } ?>
			  </tr>
			</table>
			<? if ($Row[$myModule_Table1."_isModule"]==2) { ?>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_table" id="idMenuSubTable<?=$Row[$myModule_Table1."_ID"]?>">
			  <tr class="mytable_row1"> 
				<td width="22" height="22" align="center" valign="middle" >&nbsp;</td>
				<td align="left" valign="middle" nowrap> 
				  <? loadTreePermissionMenu($Type,$Row[$myModule_Table1."_ID"],$myMID,$counter); ?>
				</td>
			  </tr>
			</table>
			<? } ?>
		<? 
	   $index++;
		}
	}
?>
<input name="inputTotalMenu" type="hidden" id="inputTotalMenu" value="<?=$counter?>">
	<?
}
function loadTreeMainMenu($myParentID,$OldmyParentID,$Path) {
#####################################################
	global $System_DataBase_Name,$System_TableName_Menu,$SystemMenuID,$System_TableName_UserOnMenu;
	global $counter,$myUserID,$System_Session_Language;
	$myModule_Table1 = $System_TableName_Menu;
	$sql = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID.
	//" AND ".$myModule_Table1."_MID='$myMID'".
	" AND ".$myModule_Table1."_Status!='Disable' ORDER BY ".$myModule_Table1."_Order ASC ";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error2: เกิดความผิดพลาด <br>$sql<br>\n");
	$RecordCount=MYSQL_NUMROWS($Query);
	$MaxOrder =$RecordCount;
	if($RecordCount>0) {
		$index=1;
		$subsName=array();
		$subsLink=array();
		$subsID=array();
		while($index<$RecordCount+1) {
			$Row=MYSQL_FETCH_ARRAY($Query);
			$sql1 = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_Language='$System_Session_Language' AND ".$Row[$myModule_Table1."_ID"].
			" AND ".$myModule_Table1."_Status!='Disable' ORDER BY ".$myModule_Table1."_Order ASC ";
			$Query1=MYSQL_DB_QUERY($System_DataBase_Name,$sql1) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
			$RecordCount1=MYSQL_NUMROWS($Query1);
			?>
				<?
				$Id = addslashes($Row[$myModule_Table1."_ID"]);
				$name = addslashes($Row[$myModule_Table1."_Name".$System_Session_Language]);
				$alt = addslashes($Row[$myModule_Table1."_Name".$System_Session_Language]);
				$type=addslashes($Row[$myModule_Table1."_ModuleType"]);
				$MenuID=$Row[$myModule_Table1."_ID"];
				$ModuleKey=$Row[$myModule_Table1."_ModuleKey"];
				if($Row[$myModule_Table1."_ModuleType"]=="Link"){
					$Linkpath=$Row[$myModule_Table1."_LinkPath"];
					$link = $Row[$myModule_Table1."_LinkPath"] ? "'$Linkpath'" : "null";
				}else{
						$Linkpath=$Row[$myModule_Table1."_LinkPath"];
						$Link="";
						if($Row[$System_TableName_Menu."_isModule"]==0){
							$Link=$Row[$System_TableName_Menu."_LinkPath"];
						}else if($Row[$System_TableName_Menu."_isModule"]==1){
						$Links="../";
						 $arryPath=explode("/",$Row[$System_TableName_Menu."_LinkPath"]);
								 if(trim($arryPath[1])=="mode_success"){
									$Links.="success/index.php";
								 }else if(trim($arryPath[1])=="mod_cms01"){
									$Links.="aboutus/index.php";
								 }else if(trim($arryPath[1])=="mod_wnw04"){
									$Links.="whatsnew/index.php";
								 }else if(trim($arryPath[1])=="mod_member"){
									$Links.="member/index.php";
								 }else if(trim($arryPath[1])=="mod_job02" ){
									$Links.="job/index.php";
								 }else if(trim($arryPath[1])=="mod_magazine"){
									$Links.="magazine/index.php";
								 }else if(trim($arryPath[1])=="mod_market" ){
									$Links.="marketing/index.php";
								 }else if(trim($arryPath[1])=="mod_advertising" ){
									$Links.="advertising/index.php";
								 }else if(trim($arryPath[1])=="mod_tip02" ){
									$Links.="tip/index.php";
								 }else if(trim($arryPath[1])=="mod_fag" ){
									$Links.="fag/index.php";
								 }else if(trim($arryPath[1])=="mod_product" ){
									$Links.="ourproduct/index.php";
								 }else if(trim($arryPath[1])=="mod_servicecenter" ){
									$Links.="service/index.php";
								 }
							$link = $Links ? "'$Links?SystemMenuID=$MenuID&SystemModuleKey=$ModuleKey'" : "null";
						} // end if $Row1[$System_TableName_Menu."_isModule"]==0
						if (!array_key_exists( $Row[$myModule_Table1."_ID"], $subsID )) {
							$subsID[$myParentID][$Row[$myModule_Table1."_ID"]]=$Id;
							echo  "\n	['<img src=\"../../js/ThemeOffice/ico_logo.gif\" />','$name',$link,null,'$alt'";
							if($Row[$myModule_Table1."_isModule"]==2){
								echo ',';
								loadTreeMainMenu($Row[$myModule_Table1."_ID"],$myParentID,$Path);
							}else{
							echo '],';
							}
							if($OldmyParentID<>$myParentID && $index==1){
							echo '],';
							}
						} // end if !array_key_exists( $Row[$myModule_Table1."_ID"], $subsID
					} // end if $Row[$myModule_Table1."_ModuleType"]=="Link"
				?>
		<? 
	   $index++;
		} // end while
	} // end RecordCount > 0
	?>
	<?
}


#####################################################
function loadResidenceGroupSelect($myParentID,$Level) {
#####################################################
	global $System_DataBase_Name,$myModule_Table1,$SystemMenuID;

	$myTab = "&nbsp;&nbsp;&nbsp;&nbsp;";

	$sql = "SELECT ".$myModule_Table1."_ID,".$myModule_Table1."_Name".$System_Session_Language." FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID." AND ".$myModule_Table1."_isModule=2 AND ".$myModule_Table1."_Status='Enable'".
	" ORDER BY ".$myModule_Table1."_Order";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");

	while($Row=MYSQL_FETCH_ARRAY($Query)) {
		echo "<option value='".$Row[$myModule_Table1."_ID"]."'>";
		for ($i=0;$i<$Level;$i++) echo $myTab;
		echo $Row[$myModule_Table1."_Name".$System_Session_Language];
		echo "</option>";

		loadResidenceGroupSelect($Row[$myModule_Table1."_ID"],$Level+1);
	}
}

#####################################################
function loadSearchGroupSelect($myParentID,$Level) {
#####################################################
	global $System_DataBase_Name,$myModule_Table1,$SystemMenuID;

	$myTab = "&nbsp;&nbsp;&nbsp;&nbsp;";

	$sql = "SELECT ".$myModule_Table1."_ID,".$myModule_Table1."_Name".$System_Session_Language.",".$myModule_Table1."_isModule, ".$myModule_Table1."_ModuleType FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID." AND ".$myModule_Table1."_Status='Enable'".
	" ORDER BY ".$myModule_Table1."_Order";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");

	while($Row=MYSQL_FETCH_ARRAY($Query)) {
	/*
		if ($Row[$myModule_Table1."_isModule"]==2) {	// Group Menu
			echo "<option value='-1'>";
			for ($i=0;$i<$Level;$i++) echo $myTab;
			echo $Row[$myModule_Table1."_Name"]." **** เมนูกลุ่ม";
			echo "</option>";
		} else {	// Normal Menu
			if($Row[$myModule_Table1."_ModuleType"]=="File Link" || $Row[$myModule_Table1."_ModuleType"]=="Announce" || $Row[$myModule_Table1."_ModuleType"]=="Group File Link"){
				echo "<option value='".$Row[$myModule_Table1."_ID"]."'>";
				for ($i=0;$i<$Level;$i++) echo $myTab;
				echo $Row[$myModule_Table1."_Name"];
				echo "</option>";
			}
		}
		*/
	/*
		if ($Row[$myModule_Table1."_isModule"]==1) {	// Group Menu
			if($Row[$myModule_Table1."_ModuleType"]=="File Link" || $Row[$myModule_Table1."_ModuleType"]=="Announce" || $Row[$myModule_Table1."_ModuleType"]=="Group File Link"){
				echo "<option value='".$Row[$myModule_Table1."_ID"]."'>";
				//for ($i=0;$i<$Level;$i++) echo $myTab;
				echo $Row[$myModule_Table1."_Name"];
				echo "</option>";
			}
		}
*/
		if ($Row[$myModule_Table1."_isModule"]==2) {	// Group Menu
			//echo "<option value='-1'>";
			echo "<option value='".$Row[$myModule_Table1."_ID"]."'>";
			echo $Row[$myModule_Table1."_Name".$System_Session_Language]." **** เมนูกลุ่ม";
			echo "</option>";
		} else {	// Normal Menu
			if($Row[$myModule_Table1."_ModuleType"]=="File Link" || $Row[$myModule_Table1."_ModuleType"]=="Announce" || $Row[$myModule_Table1."_ModuleType"]=="Group File Link"){
				echo "<option value='".$Row[$myModule_Table1."_ID"]."'>";
				for ($i=0;$i<$Level;$i++) echo $myTab;
				echo $Row[$myModule_Table1."_Name".$System_Session_Language];
				echo "</option>";
			}
		}
		loadSearchGroupSelect($Row[$myModule_Table1."_ID"],$Level+1);
	}
}

#####################################################
function loadHouseKeepingGroupSelect($myParentID,$Level) {
#####################################################
	global $System_DataBase_Name,$myModule_Table1,$SystemMenuID;

	$myTab = "&nbsp;&nbsp;&nbsp;&nbsp;";

	$sql = "SELECT ".$myModule_Table1."_ID,".$myModule_Table1."_Name".$System_Session_Language.",".$myModule_Table1."_ParentID,".$myModule_Table1."_ModuleType FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID." AND ".$myModule_Table1."_Status='Enable'".
	" ORDER BY ".$myModule_Table1."_Order";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");

	while($Row=MYSQL_FETCH_ARRAY($Query)) {
		if ($Row[$myModule_Table1."_ModuleType"]<>"Group") {
			$MenuName = $Row[$myModule_Table1."_Name".$System_Session_Language];
			if ($Level>0) {
				if (strlen($MenuName)>30) $MenuName = substr($MenuName,0,30)."..";
			}

			//echo "<option value='".$Row[$myModule_Table1."_ID"]."'>";
			echo "<option value='".$Row[$myModule_Table1."_ID"].":".$Row[$myModule_Table1."_ModuleType"]."'>";
			//for ($i=0;$i<$Level;$i++) echo $myTab;
			echo getGroupName($Row[$myModule_Table1."_ParentID"]).$MenuName;
			echo "</option>";
		}
		loadHouseKeepingGroupSelect($Row[$myModule_Table1."_ID"],$Level+1);
	}
}

#####################################################
function getGroupName($myParentID) {
#####################################################
	global $System_DataBase_Name,$myModule_Table1,$SystemMenuID;

	$sql = "SELECT ".$myModule_Table1."_ID,".$myModule_Table1."_Name".$System_Session_Language.",".$myModule_Table1."_isModule,".$myModule_Table1."_ParentID FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ID=".$myParentID;
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
	if (mysql_num_rows($Query)>0) {
		$Row=MYSQL_FETCH_ARRAY($Query);
		$MenuName = $Row[$myModule_Table1."_Name".$System_Session_Language];
		if (strlen($MenuName)>15) $MenuName = substr($MenuName,0,15)."..";

		return getGroupName($Row[$myModule_Table1."_ParentID"]).$MenuName.">";
	}
}
?>



<script language="JavaScript" type="text/JavaScript">
function HideShowSubMenu(myid,myObj,myCheckEnd) {
	if(document.getElementById('idMenuSubTable'+myid).style.display=='') {
		document.getElementById('idMenuSubTable'+myid).style.display='none';
		myObj.src="../system_menu/level/22x22_hir_plus"+myCheckEnd+".gif";
	} else {
		document.getElementById('idMenuSubTable'+myid).style.display='';
		myObj.src="../system_menu/level/22x22_hir_minus"+myCheckEnd+".gif";
	}
}
function HideShowSubMenu2(myid,myObj,myCheckEnd) {
	if(document.getElementById('idMenuSubTable'+myid).style.display=='') {
		document.getElementById('idMenuSubTable'+myid).style.display='none';
		myObj.src="../system_menu/level/22x22_hir_plus_1.gif";
	} else {
		document.getElementById('idMenuSubTable'+myid).style.display='';
		myObj.src="../system_menu/level/22x22_hir_minus_1.gif";
	}
}
</script>

Hacked By AnonymousFox1.0, Coded By AnonymousFox