OrgChartCpt.jsp 19.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.*" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.general.GCONST" %>
<%@ page import="weaver.general.IsGovProj" %>
<%@ page import="weaver.systeminfo.*" %>
<%@ page import="weaver.org.layout.*" %>

<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="CompanyComInfo" class="weaver.hrm.company.CompanyComInfo" scope="page" />
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="RecordSet2" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="RecordSet3" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="CapitalCurPrice" class="weaver.cpt.capital.CapitalCurPrice" scope="page" />

<HTML>
<HEAD>
<LINK href="/css/Weaver_wev8.css" rel="STYLESHEET" type="text/css">
<LINK href="/css/rp_wev8.css" rel="STYLESHEET" type="text/css">
<SCRIPT language=VBS>
Sub window_onload()
	wait.style.display="none"
	On Error Resume Next
	Baco.Refresh.focus
End Sub
</SCRIPT>
</HEAD>
<%
int isgoveproj = Util.getIntValue(IsGovProj.getPath(),0);//0:非政务系统,1:政务系统
    RecordSet.executeSql("select needupdate from orgchartstate");
    int needupdate = 1;
    if (RecordSet.next())
        needupdate = RecordSet.getInt("needupdate");
    
String fnarightlevel = HrmUserVarify.getRightLevel("FnaTransaction:All",user) ;

Calendar today = Calendar.getInstance();
String currentdate = Util.add0(today.get(Calendar.YEAR), 4) +"-"+
                     Util.add0(today.get(Calendar.MONTH) + 1, 2) +"-"+
                     Util.add0(today.get(Calendar.DAY_OF_MONTH), 2) ;
                                        
String imagefilename = "/images/hdHRMCard_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(562,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(354,user.getLanguage())+",javascript:onSubmit(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<%
int companyid = Util.getIntValue(request.getParameter("companyid"),1);
String direction = Util.null2String(request.getParameter("direction"));
if(direction.equals("")){
	direction = "1";
}
String departids="\"\"";


RecordSet.executeProc("HrmSubCompany_SByCompanyID",""+companyid);

int subcompanycount = RecordSet.getCounts();
int clientwidth = 125*subcompanycount;

int top = 120;
int cellHeight = 66;
int cellWidth = 105;
int cellWidth2 = 420;
int lineHeight1 = 7;
int lineHeight2 = 73;
int lineWidth = 5;
int cellSpace = 20;
int linestep = 17;


String charttype = Util.null2String(request.getParameter("charttype"));


if(charttype.equals(""))
	charttype = "P";

int topMargin = 210;
int leftMargin = 20;
DepLayout dl = DownloadDeptLayoutServlet.readDeptLayout(user.getLanguage(), false, user);
dl.buildObjectRef();
dl.checkAndAutoset(10, 10, 20, 20);
%>
<table width="<%=dl.getMaxPos().x+60%>" height="<%=dl.getMaxPos().y+300%>" border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="">
<col width="10">
<tr>
	<td height="10" colspan="3"></td>
</tr>
<tr>
	<td ></td>
	<td valign="top">
		<TABLE class=Shadow>
		<tr>
		<td valign="top">

		<FORM action="OrgChartCpt.jsp" id=Baco Name=Baco method=post>
		<DIV id=wait style="filter:alpha(opacity=30); height:100%; width:100%">
		<TABLE width="100%" height="100%">
			<TR><TD align=center style="font-size: 36pt;"><%=SystemEnv.getHtmlLabelName(562,user.getLanguage())%>...</TD></TR>
		</TABLE>
		</DIV>

		  <TABLE class="ViewForm">
			<TR> 
			  <TD width=50><B><%=SystemEnv.getHtmlLabelName(563,user.getLanguage())%></B></TD>
			  <TD width=100 class="field" align="left"> 
			<SELECT name=charttype onchange="changetype()">
				<OPTION value=D <%if(charttype.equals("D")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(58,user.getLanguage())%></OPTION>
				<OPTION value=H <%if(charttype.equals("H")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(179,user.getLanguage())%></OPTION>
		<%if(isgoveproj==0){%>
		<%if(software.equals("ALL") || software.equals("CRM")){%>
				<OPTION value=C <%if(charttype.equals("C")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(147,user.getLanguage())%></OPTION>
				<OPTION value=R <%if(charttype.equals("R")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(101,user.getLanguage())%></OPTION>
		<%}%>
		<%}%>
		<%if(software.equals("ALL") || software.equals("HRM")){%>
				<OPTION value=P <%if(charttype.equals("P")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(535,user.getLanguage())%></OPTION>
		<%}%>
		<%if(isgoveproj==0){%>
		<%if(software.equals("ALL") || software.equals("HRM") || software.equals("CRM")){
				if( fnarightlevel.equals("2") ) { %>
				<OPTION value=F <%if(charttype.equals("F")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(189,user.getLanguage())%></OPTION>
		<%      }
		}%>
		<%}%>
			</SELECT>
			<script language=javascript>
				function changetype(){
				if(document.all("charttype").value=="C") location = "OrgChartCRM.jsp";
				if(document.all("charttype").value=="F") location = "OrgChartFna.jsp";
				if(document.all("charttype").value=="I") location = "OrgChartLgc.jsp";
				if(document.all("charttype").value=="P") location = "OrgChartCpt.jsp";
				if(document.all("charttype").value=="H") location = "OrgChartHRM.jsp";
				if(document.all("charttype").value=="D") location = "OrgChartDoc.jsp";
				if(document.all("charttype").value=="R") location = "OrgChartProj.jsp";
			
			}
			</script>
			</TD>
		<!--      <TD width=10%><B><%=SystemEnv.getHtmlLabelName(140,user.getLanguage())%></B></TD>
			  <TD width=20%> 
				<SELECT name=companyid>
				  <%
			while(CompanyComInfo.next()){	
				String tmpcompanyid = CompanyComInfo.getCompanyid();
				String isselected="";
				if(Util.getIntValue(tmpcompanyid,0)==companyid)
					isselected=" selected";
			%>
				  <OPTION value="<%=CompanyComInfo.getCompanyid()%>" <%=isselected%>><%=CompanyComInfo.getCompanyname()%></OPTION>
				  <%}%>
				</SELECT>
			  </TD>-->
			  <td width=100 class="field" align="left"> 
				<input  type=radio <%if (direction.equals("1")) {%>CHECKED<%}%> value=1 name=direction>
				<%=SystemEnv.getHtmlLabelName(2019,user.getLanguage())%></td>
			  <td width=100 class="field" align="left"> 
				<input  type=radio <%if (direction.equals("2")) {%>CHECKED<%}%> value=2 name=direction>
				<%=SystemEnv.getHtmlLabelName(2020,user.getLanguage())%></td>
			  <td></td>
		   </TR>
		   <TR><TD class=Line2 colSpan=5></TD></TR> 
		  </TABLE>

			<%
			String sql = "";
			String sqldepre = "";
			String sqldepre2 = "";
			String tempCapitalid = "";
			if (direction.equals("1")){
			sql=" select sum(startprice) sumprice from CptCapital where ((startdate='' or startdate is  null) or startdate <='"+currentdate +"') and ((enddate='' or enddate is  null) or enddate >='" + currentdate+"') ";
			}
			else{
			//计算折旧后的资产总值
			sql=" select sum(startprice) from CptCapital where ((startdate='' or startdate is  null) or startdate <='"+currentdate +"') and ((enddate='' or enddate is  null) or enddate >='" + currentdate+"') ";
			sqldepre=" select * from CptCapital where ((startdate='' or startdate is  null) or startdate <='"+currentdate +"') and ((enddate='' or enddate is  null) or enddate >='" + currentdate+"') ";
			}
			int ishead = 0;
			%>
			

		<div id=oDiv STYLE="POSITION:absolute;Z-INDEX:100;FONT-SIZE:8pt;LETTER-SPACING:-1pt;TOP:<%=topMargin%>;LEFT:<%=leftMargin%>;height:<%=dl.getMaxPos().y%>;width:<%=dl.getMaxPos().x%>">
		<img src = "<%if(needupdate==0){%>/org/org_wev8.jpg<%}else{%>/weaver/weaver.org.layout.ShowDepLayoutToPicServlet<%}%>" border=0>
		<%
		int curnum = 0;
		for (int i=0;i<dl.departments.size();i++) {
			Department depart = (Department)dl.departments.get(i);
			String tmpnum="";
			double tmpnum2=0.0;

			String tempCurrentprice="";

            String tempsptcount="";
            String tempstartprice="";
            String tempcapitalnum="";
            String tempdeprestartdate="";
            String tempdepreyear="";
            String tempdeprerate="";

			String sqldepretmp="";
			String sqltmp="";
			String sqltmp1="";
			departids +=",\"";
			departids += depart.id;
			departids +="\"";
			curnum += 1;
			
			if (depart.type == Department.TYPE_ZONGBU) {
		%>
			<TABLE onclick="oc_ShowMenu(<%=curnum%>,oc_divMenuTop)" cellpadding=1 cellspacing=1 Class=ChartTop STYLE="POSITION:absolute;Z-INDEX:100;FONT-SIZE:8pt;LETTER-SPACING:-1pt;TOP:<%=depart.y%>;LEFT:<%=depart.x%>;height:<%=depart.getWidthHeight().y%>;width:<%=depart.getWidthHeight().x%>">
				<TR height=28px><TD colspan=2 Class=ChartTop id=t><%=depart.name%></TD></TR>
				<TR height=14px><TD align=right><%=SystemEnv.getHtmlLabelName(2015,user.getLanguage())%></TD>
				<%
				tmpnum="";
				tmpnum2 = 0;
				tempCurrentprice = "";
				RecordSet2.execute(sql);
				if(RecordSet2.next()){
					tmpnum = RecordSet2.getString(1);
				}
				if(direction.equals("2")){
					RecordSet3.execute(sqldepre);
					while(RecordSet3.next()){
                        tempsptcount=RecordSet3.getString("sptcount");
                        tempstartprice=RecordSet3.getString("startprice");
                        tempcapitalnum=RecordSet3.getString("capitalnum");
                        tempdeprestartdate=RecordSet3.getString("deprestartdate");
                        tempdepreyear=RecordSet3.getString("depreyear");
                        tempdeprerate=RecordSet3.getString("deprerate");
                        CapitalCurPrice.setSptcount(tempsptcount);
                        CapitalCurPrice.setStartprice(tempstartprice);
                        CapitalCurPrice.setCapitalnum(tempcapitalnum);
                        CapitalCurPrice.setDeprestartdate(tempdeprestartdate);
                        CapitalCurPrice.setDepreyear(tempdepreyear);
                        CapitalCurPrice.setDeprerate(tempdeprerate);
                        tempCurrentprice=CapitalCurPrice.getCurPrice();

						tmpnum2+=Double.parseDouble(tempCurrentprice);
					}
					tmpnum2 = ((int)(tmpnum2*100))/100.00;
					tmpnum = ""+tmpnum2;
				}
				%>
				<TD class=ChartCell><%=tmpnum%></TD>
				</TR>
			</TABLE>		
		<%
			} else if (depart.type == Department.TYPE_FENBU) {
				int subcompanyid = depart.id;
		%>
			<TABLE onclick="oc_ShowMenu(<%=curnum%>,oc_divMenuGroup)" cellpadding=1 cellspacing=1 Class=ChartGroup STYLE="POSITION:absolute;Z-INDEX:100;FONT-SIZE:8pt;LETTER-SPACING:-1pt;TOP:<%=depart.y%>;LEFT:<%=depart.x%>;height:<%=depart.getWidthHeight().y%>;width:<%=depart.getWidthHeight().x%>">
				<TR height=28px><TD colspan=1 TITLE="<%=depart.name%>" id=t><%=depart.name%></TD></TR>
				<TR height=14px>
				<%
				sqltmp=sql;
				sqldepretmp=sqldepre;
				
				String tmpdepids = ",-1";
				sqltmp1 = "select id from HrmDepartment where  subcompanyid1="+subcompanyid+" or  subcompanyid1  in (select id from hrmsubcompany where supsubcomid="+subcompanyid+") " ;
				RecordSet2.execute(sqltmp1);
				while(RecordSet2.next())
				tmpdepids +=","+RecordSet2.getString("id");
				tmpdepids=tmpdepids.substring(1);
				
					if (direction.equals("1")){
						sqltmp += " and departmentid in ("+tmpdepids +")";
					}
					else{
					//计算折旧后的分部资产值
						sqltmp += " and departmentid in ("+tmpdepids +")";
						sqldepretmp+=" and departmentid in ("+tmpdepids +")";
					}
				
				RecordSet2.execute(sqltmp);
				if(RecordSet2.next()){
					tmpnum = RecordSet2.getString(1);
				}
				if(direction.equals("2")&&(!tmpnum.equals(""))){
					RecordSet3.execute(sqldepretmp);
					tmpnum2=0;
					while(RecordSet3.next()){
                        tempsptcount=RecordSet3.getString("sptcount");
                        tempstartprice=RecordSet3.getString("startprice");
                        tempcapitalnum=RecordSet3.getString("capitalnum");
                        tempdeprestartdate=RecordSet3.getString("deprestartdate");
                        tempdepreyear=RecordSet3.getString("depreyear");
                        tempdeprerate=RecordSet3.getString("deprerate");
                        CapitalCurPrice.setSptcount(tempsptcount);
                        CapitalCurPrice.setStartprice(tempstartprice);
                        CapitalCurPrice.setCapitalnum(tempcapitalnum);
                        CapitalCurPrice.setDeprestartdate(tempdeprestartdate);
                        CapitalCurPrice.setDepreyear(tempdepreyear);
                        CapitalCurPrice.setDeprerate(tempdeprerate);
                        tempCurrentprice=CapitalCurPrice.getCurPrice();

						tmpnum2+=Double.parseDouble(tempCurrentprice);
					}
					tmpnum2 = ((int)(tmpnum2*100))/100.00;
					tmpnum = ""+tmpnum2;
					tmpnum2 = 0;	
				}
				%>
				<TD class=ChartCell width=100%><%=tmpnum%></TD>		
				</TR>
			</TABLE>
		<%
			} else if (depart.type == Department.TYPE_COMMON_DEPARTMENT) {
		%>
			<TABLE onclick="oc_ShowMenu(<%=curnum%>,oc_divMenuDivision)" cellpadding=1 cellspacing=1 Class=ChartCompany STYLE="POSITION:absolute;Z-INDEX:100;FONT-SIZE:8pt;LETTER-SPACING:-1pt;TOP:<%=depart.y%>;LEFT:<%=depart.x%>;height:<%=depart.getWidthHeight().y%>;width:<%=depart.getWidthHeight().x%>">
				<TR height=28px><TD colspan=1 TITLE="<%=depart.name%>" id=t><%=depart.departmentMark%>-<%=depart.name%></TD></TR>
				<TR height=14px>
				<%
				sqltmp=sql;
				sqldepretmp=sqldepre;
				
					if (direction.equals("1")){
						sqltmp += " and ( departmentid="+depart.id+")";
					}
					else{
					//计算折旧后的部门资产值
					sqltmp += " and ( departmentid="+depart.id+")";
					sqldepretmp+= " and ( departmentid="+depart.id+")";
					}
				RecordSet2.execute(sqltmp);
				if(RecordSet2.next()){
					tmpnum = RecordSet2.getString(1);
				}
				if(direction.equals("2")&&(!tmpnum.equals(""))){
					RecordSet3.execute(sqldepretmp);
					tmpnum2=0;
					while(RecordSet3.next()){
                        tempsptcount=RecordSet3.getString("sptcount");
                        tempstartprice=RecordSet3.getString("startprice");
                        tempcapitalnum=RecordSet3.getString("capitalnum");
                        tempdeprestartdate=RecordSet3.getString("deprestartdate");
                        tempdepreyear=RecordSet3.getString("depreyear");
                        tempdeprerate=RecordSet3.getString("deprerate");
                        CapitalCurPrice.setSptcount(tempsptcount);
                        CapitalCurPrice.setStartprice(tempstartprice);
                        CapitalCurPrice.setCapitalnum(tempcapitalnum);
                        CapitalCurPrice.setDeprestartdate(tempdeprestartdate);
                        CapitalCurPrice.setDepreyear(tempdepreyear);
                        CapitalCurPrice.setDeprerate(tempdeprerate);
                        tempCurrentprice=CapitalCurPrice.getCurPrice();

						tmpnum2+=Double.parseDouble(tempCurrentprice);
					}
					tmpnum2 = ((int)(tmpnum2*100))/100.00;
					tmpnum = ""+tmpnum2;
				}
				%>
				<TD class=ChartCell width=100%><%=tmpnum%></TD>
				</TR>
				</TABLE>
				
		<%  } // end of if
		} // end of for
		%>
		</div>
		<DIV style="position:absolute;top:947;left:804;visibility:hidden;width:1;height:1;"></DIV>
		<SCRIPT language=VBScript>
		oc_DivisionList=array(<%=departids%>)



		dim oc_CurrentMenu
		dim oc_CurrentIndex

		Sub oc_ShowMenu(Index,elMenu)
			dim t
			on error resume next
			oc_CurrentMenu.style.visibility="hidden"
			on error goto 0
			Set oc_CurrentMenu=elMenu
			oc_CurrentIndex = Index

			' title
			set elFrom = window.event.srcElement
			do while elFrom.tagName<>"TABLE"
				set elFrom = elFrom.parentElement
			loop
			elMenu.all("t").innerText = elFrom.all("t").innerText

			st = document.body.scrollTop
			oh = document.body.offsetHeight
			t = (st + window.event.clientY) - 2
			l = (document.body.scrollLeft + window.event.clientX) -10
			h = elMenu.clientHeight
			w = elMenu.clientWidth

			if ((l + w) > (document.body.scrollLeft + document.body.offsetWidth)) then l = l - (w-20)
			if ((t + h) > (document.body.scrollTop + document.body.offsetHeight)) then t = t - (h+2)

			elMenu.style.left = l
			elMenu.style.top = t
			elMenu.style.visibility = "visible"
		End Sub

		Sub oc_CurrentMenuOnMouseOut()
			set el = window.event.srcElement
			if (el.tagName = "A") then set el = el.parentElement
			if (el.tagName = "IMG") then set el = el.parentElement
			if (el.tagName = "TD" AND el.className <> "MenuPopupSelected" AND el.className <> "NoHand") then el.className = "MenuPopup"
		End Sub

		Sub oc_CurrentMenuOnMouseOver()
			set el = window.event.srcElement
			if (el.tagName = "A") then set el = el.parentElement
			if (el.tagName = "IMG") then set el = el.parentElement
			if (el.tagName = "TD" AND el.className <> "MenuPopupSelected" AND el.className <> "NoHand") then el.className = "MenuPopupFocus"
		End Sub

		Sub document_onmouseover
			on error resume next
			If window.event.srcElement.tagName = "BODY" Then
				oc_CurrentMenu.style.visibility = "hidden"
			End If
		End Sub

		Sub document_onmouseup
			on error resume next
			If window.event.srcElement.tagName = "BODY" Then
				oc_CurrentMenu.style.visibility = "hidden"
			End If
		End Sub

		Function oc_getAllDivisions(isQuoted)
			oc_getAllDivisions = Null
			For i = 1 To UBound(oc_DivisionList)
				d = oc_DivisionList(i)
				If isQuoted Then d = "'" & d & "'"
				oc_getAllDivisions = oc_getAllDivisions + "," & d
			Next
		End Function
		</SCRIPT>


			<DIV id="oc_divMenuTop" style="visibility:hidden; LEFT:0px; POSITION:absolute; TOP:0px; WIDTH:240px; Z-INDEX: 200">
			<TABLE cellpadding=2 cellspacing=0 class="MenuPopup" LANGUAGE=javascript onclick="return oc_CurrentMenuOnClick()" onmouseout="return oc_CurrentMenuonmouseout()" onmouseover="return oc_CurrentMenuonmouseover()" style="HEIGHT: 79px; WIDTH: 246px">
			<TR><TD class="NoHand" style=text-align:center;color:white id=t>Title</TD>
			</TR>
			
			</TABLE>
			</DIV>
			<DIV id="oc_divMenuGroup" style="visibility:hidden; LEFT:0px; POSITION:absolute; TOP:0px; WIDTH:240px; Z-INDEX: 200">
			<TABLE cellpadding=2 cellspacing=0 class="MenuPopup" LANGUAGE=javascript onclick="return oc_CurrentMenuOnClick()" onmouseout="return oc_CurrentMenuonmouseout()" onmouseover="return oc_CurrentMenuonmouseover()" style="HEIGHT: 79px; WIDTH: 246px">
			<TR><TD class="NoHand" style=text-align:center;color:white id=t>Title</TD></TR>
			
			</TABLE>
			</DIV>
			<DIV id="oc_divMenuDivision" style="visibility:hidden; LEFT:0px; POSITION:absolute; TOP:0px; WIDTH:240px; Z-INDEX: 200">
			<TABLE cellpadding=2 cellspacing=0 class="MenuPopup" LANGUAGE=javascript onclick="return oc_CurrentMenuOnClick()" onmouseout="return oc_CurrentMenuonmouseout()" onmouseover="return oc_CurrentMenuonmouseover()" style="HEIGHT: 79px; WIDTH: 246px">
			<TR><TD class="NoHand" style=text-align:center;color:white id=t>Title</TD></TR>
			
				 <TR id=D1><TD class=MenuPopup><%=SystemEnv.getHtmlLabelName(124,user.getLanguage())%></TD></TR>
			
				 <TR id=D2><TD class=MenuPopup><%=SystemEnv.getHtmlLabelName(535,user.getLanguage())%></TD></TR>
			
			</TABLE>
			</DIV>
			<SCRIPT LANGUAGE=VBScript>
			Sub oc_CurrentMenuOnClick
				set el = window.event.srcElement
				if (el.tagName = "A") then set el = el.parentElement
				select case el.parentElement.id
				
					case "D1"
						r="/hrm/company/HrmDepartmentDsp.jsp?id=" & oc_DivisionList(oc_CurrentIndex)
					case "D2"
						r="/Cpt/search/SearchOperation.jsp?departmentid=" & oc_DivisionList(oc_CurrentIndex)
				end select
				oc_CurrentMenu.style.visibility = "hidden"
				if (r <> "") then
					window.event.returnValue = false
					window.location.href = r
				end if
			End Sub
			</SCRIPT>

		</FORM>
		
		</td>
		</tr>
		</TABLE>
	</td>
	<td></td>
</tr>
<tr>
	<td height="10" colspan="3"></td>
</tr>
</table>

</BODY>
<script language="javascript">
 function onSubmit(){ 	
	document.Baco.submit();
 }
</script>
</HTML>