function ShowDeptM($deptId,$InputThai){
global $oC;
global $oT;
global $Str;
global $rw;
$oPS = new person($oC);
$oDp = new Department($oC);
$oDp->SearchByKey($deptId);
$oDp->GetRecord();
if ($oDp->deptLevel%2==0){
$bs="";
$be="";
}
$lv = $oDp->deptLevel+1;
$oT->addRow(array(str_repeat("", $oDp->deptLevel*2). $bs ." ".$oDp->deptName. $be
,"