var HXWWW501;if(!HXWWW501){HXWWW501={}}HXWWW501.HXWebPopupCalendarControl={};HXWWW501.HXWebPopupCalendarControl._InternalFunctions={};HXWWW501.HXWebPopupCalendarControl.choose_date=function(objInputTextBox,intDateFormat){if(!objInputTextBox){return}if(!intDateFormat){intDateFormat=0}var strDateValue;var intYear,intMonth,intDay;var strOrgDateValue;if(objInputTextBox.value!=null){strOrgDateValue=objInputTextBox.value}else{if(objInputTextBox.innerText!=null){strOrgDateValue=objInputTextBox.innerText}}if(strOrgDateValue.length==8){strOrgDateValue=strOrgDateValue.substr(0,4)+"-"+strOrgDateValue.substr(4,2)+"-"+strOrgDateValue.substr(6,2)}if(HXWWW501.Utility.HXUtil_IsDate(strOrgDateValue)){strDateValue=HXWWW501.Utility.HXUtil_GetDateAsString(strOrgDateValue);intYear=parseInt(strDateValue.substr(0,4),10);intMonth=parseInt(strDateValue.substr(5,2),10);intDay=parseInt(strDateValue.substr(8,2),10)}if(!strDateValue){var dt=new Date();intYear=dt.getFullYear();intMonth=dt.getMonth()+1;intDay=dt.getDate()}var objEventSrcElement=null;if((!!event.type)&&event.type=="click"){objEventSrcElement=event.srcElement}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_input_textbox=objInputTextBox;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_choose_button=objEventSrcElement;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_default_date_value_year=intYear;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_default_date_value_month=intMonth;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_default_date_value_day=intDay;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month=intMonth;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_date_format=intDateFormat;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._show_popup_calendar_area()};HXWWW501.HXWebPopupCalendarControl.register=function(str_webdatacontrol_id,str_dropdown_btn_id,intDateFormatType){if(intDateFormatType==null){intDateFormatType=1}if(!HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(!c){var c=new Object();c={webdatacontrol_id:str_webdatacontrol_id,choose_button_id:str_dropdown_btn_id,date_format_type:intDateFormatType};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id]=c}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._select_date_process=function(dtSelected){var intDateFormat=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_date_format;var strSelectedDate=HXWWW501.Utility.HXUtil_GetDateAsInteger(dtSelected);if(intDateFormat==2){strSelectedDate=strSelectedDate.toString().substr(0,6)}if(intDateFormat==1){var strSelectedDate=HXWWW501.Utility.HXUtil_GetDateAsString(dtSelected)}var objInputTextBox=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_input_textbox;if(objInputTextBox.value!=null){objInputTextBox.value=strSelectedDate}else{if(objInputTextBox.innerText!=null){objInputTextBox.innerText=strSelectedDate}}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._hide_popup_calendar_area();objInputTextBox.fireEvent("onafterupdate")};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._show_popup_calendar_area=function(){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._create_popup_calendar_area();var objInputTextBox=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_input_textbox;var objChooseButton=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_choose_button;var intLeft,intTop;if(objInputTextBox!=null&&!(objInputTextBox.style.display=="none"||objInputTextBox.style.visibility=="hidden")){intLeft=HXWWW501.Utility._InternalFunctions._get_element_left(objInputTextBox)+1;intTop=HXWWW501.Utility._InternalFunctions._get_element_top(objInputTextBox)+objInputTextBox.offsetHeight+1}else{if(objChooseButton!=null){intLeft=HXWWW501.Utility._InternalFunctions._get_element_left(objChooseButton)+1;intTop=HXWWW501.Utility._InternalFunctions._get_element_top(objChooseButton)+objChooseButton.offsetHeight+1}else{intLeft=document.body.scrollLeft+event.clientX+3;intTop=document.body.scrollTop+event.clientY+3}}var intPopupCalendarAreaWidth=290,intPopupCalendarAreaHeight=150;var intMaxWidth=document.body.scrollLeft+document.body.clientWidth;if(intLeft+intPopupCalendarAreaWidth>intMaxWidth){intLeft=intMaxWidth-intPopupCalendarAreaWidth}var intMaxHeight=document.body.scrollTop+document.body.clientHeight;if(intTop+intPopupCalendarAreaHeight>intMaxHeight){intTop=intMaxHeight-intPopupCalendarAreaHeight}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area.style.posLeft=intLeft;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area.style.posTop=intTop;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_dateofmonth_content();HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area.style.display=""};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_dateofmonth_content=function(){var intYear=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year;var intMonth=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month;var objDiv=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area;var strDisplayMonthTemplate=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_res_string_arrary[20];var strDisplayMonthContent=strDisplayMonthTemplate.replace(/{Y}/gi,intYear);var strDisplayMonthDesc=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_res_string_arrary[6+intMonth];strDisplayMonthContent=strDisplayMonthContent.replace(/{MM}/gi,strDisplayMonthDesc);strDisplayMonthContent=strDisplayMonthContent.replace(/{M}/gi,intMonth);objDiv.all("HXWebPopupCalendarControl_displayed_month_content").innerText=strDisplayMonthContent;var dtFirstDayOfDisplayMonth=new Date(intYear,intMonth-1,1);var dtLastDayOfDisplayMonth=new Date(intYear,intMonth,0);var intWeekDay=dtFirstDayOfDisplayMonth.getDay();var dtToday=new Date();dtToday=new Date(dtToday.getFullYear(),dtToday.getMonth(),dtToday.getDate());var dtDefault=new Date(HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_default_date_value_year,HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_default_date_value_month-1,HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_default_date_value_day);var dtTemp,intCellIndex=0;for(var i=0;i<intWeekDay;i++){dtTemp=new Date(intYear,intMonth-1,1-intWeekDay+i);HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_single_cell_date_value(intCellIndex,dtTemp.getDate(),false,(dtTemp.valueOf()==dtToday.valueOf()),(dtTemp.valueOf()==dtDefault.valueOf()));intCellIndex++}for(var i=0;i<dtLastDayOfDisplayMonth.getDate();i++){dtTemp=new Date(intYear,intMonth-1,1+i);HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_single_cell_date_value(intCellIndex,dtTemp.getDate(),true,(dtTemp.valueOf()==dtToday.valueOf()),(dtTemp.valueOf()==dtDefault.valueOf()));intCellIndex++}for(var i=0;i<42-intCellIndex;i++){dtTemp=new Date(intYear,intMonth,1+i);HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_single_cell_date_value(intCellIndex+i,dtTemp.getDate(),false,(dtTemp.valueOf()==dtToday.valueOf()),(dtTemp.valueOf()==dtDefault.valueOf()))}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_single_cell_date_value=function(intCellIndex,intValue,blnIsDisplayedMonth,blnIsToday,blnIsDefaultDate){var intRow=parseInt(intCellIndex/7);var intCol=intCellIndex%7;var objCell=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area.all("hxwebpopupcalendarcontrol_calendar_dataline_"+intRow).cells[intCol];objCell.innerText=intValue;objCell.className=(blnIsDisplayedMonth?"hxwebpopupcalendarcontrol_currentmonth_cell":"hxwebpopupcalendarcontrol_othermonth_cell")+(blnIsToday?" hxwebpopupcalendarcontrol_today_cell":"")+(blnIsDefaultDate?" hxwebpopupcalendarcontrol_defaultdate_cell":"")};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._hide_popup_calendar_area=function(){if(!HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area){return}if(HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area.style.display=="none"){return}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_input_textbox=null;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_choose_button=null;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area.style.display="none"};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._popup_calendar_area_clicked=function(){var objEventSrcElement=event.srcElement;var intYear=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year;var intMonth=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month;if(objEventSrcElement.tagName.toLowerCase()=="img"&&objEventSrcElement.id=="imgbtn_hxwebpopupcalendarcontrol_calendar_prevmonth"){if(intMonth==1){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear-1;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month=12}else{HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month=intMonth-1}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_dateofmonth_content();return}if(objEventSrcElement.tagName.toLowerCase()=="img"&&objEventSrcElement.id=="imgbtn_hxwebpopupcalendarcontrol_calendar_nextmonth"){if(intMonth==12){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear+1;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month=1}else{HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_month=intMonth+1}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_dateofmonth_content();return}if(objEventSrcElement.tagName.toLowerCase()=="img"&&objEventSrcElement.id=="imgbtn_hxwebpopupcalendarcontrol_calendar_prevyear"){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear-1;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_dateofmonth_content();return}if(objEventSrcElement.tagName.toLowerCase()=="img"&&objEventSrcElement.id=="imgbtn_hxwebpopupcalendarcontrol_calendar_nextyear"){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_display_year=intYear+1;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._set_dateofmonth_content();return}if(objEventSrcElement.tagName.toLowerCase()=="span"&&objEventSrcElement.id=="lbl_hxwebpopupcalendarcontrol_today_content"){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._select_date_process(new Date());return}if(objEventSrcElement.tagName.toLowerCase()=="td"&&objEventSrcElement.parentElement.id.indexOf("hxwebpopupcalendarcontrol_calendar_dataline_")!=-1){var strIDOfRow=objEventSrcElement.parentElement.id;var intRow=parseInt(strIDOfRow.substr(strIDOfRow.length-1));var intDay=parseInt(objEventSrcElement.innerText);var dtSelected;if(intRow==0&&intDay>20){dtSelected=new Date(intYear,intMonth-1-1,intDay)}else{if(intRow>=4&&intDay<20){dtSelected=new Date(intYear,intMonth,intDay)}else{dtSelected=new Date(intYear,intMonth-1,intDay)}}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._select_date_process(dtSelected)}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._create_popup_calendar_area=function(){if(window.document.all.item("hxwebpopupcalendarcontrol_calendar_area")==null){var strDivHTMLContent='<div id=hxwebpopupcalendarcontrol_calendar_area style="display:none; Z-INDEX:8000; LEFT:0px; TOP:0px;WIDTH:290px; HEIGHT:150px; POSITION: absolute; overflow:hidden; padding:1 1 1 1;" onclick="event.cancelBubble=true;HXWWW501.HXWebPopupCalendarControl._InternalFunctions._popup_calendar_area_clicked();"></div>';var objDiv=document.createElement(strDivHTMLContent);var sb_html=new HXWWW501.StringBuilder();sb_html.append('<table border="0" cellpadding="0" cellspacing="0" width="100%" id="hxwebpopupcalendarcontrol_calendar_table" style="font-size:11px;border-collapse:collapse;">');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_topicline><td style="vertical-align:middle;" width=40>');sb_html.append('<img id=imgbtn_hxwebpopupcalendarcontrol_calendar_prevmonth src="../images/hxpub_clear.gif" class=hxbtn_prevpage style="vertical-align:middle;margin-left:3px;" />');sb_html.append('<img id=imgbtn_hxwebpopupcalendarcontrol_calendar_prevyear src="../images/hxpub_clear.gif" class=hxbtn_sort_asc style="vertical-align:middle;margin-left:3px;" />');sb_html.append("</td><td colspan=5 align=center id=HXWebPopupCalendarControl_displayed_month_content width=200>aaa</td>");sb_html.append('<td align=right width=40><img id=imgbtn_hxwebpopupcalendarcontrol_calendar_nextyear src="../images/hxpub_clear.gif" class=hxbtn_sort_desc style="vertical-align:middle;margin-right:3px;" /><img id=imgbtn_hxwebpopupcalendarcontrol_calendar_nextmonth src="../images/hxpub_clear.gif" class=hxbtn_nextpage style="vertical-align:middle;padding-right:3px;" /></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_headline><td style="color:red"></td><td></td><td></td><td></td><td></td><td></td><td style="color:red"></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_dataline_0 style="text-align:center;cursor:hand;"><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_dataline_1 style="text-align:center;cursor:hand;"><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_dataline_2 style="text-align:center;cursor:hand;"><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_dataline_3 style="text-align:center;cursor:hand;"><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_dataline_4 style="text-align:center;cursor:hand;"><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>');sb_html.append('<tr height=16 id=hxwebpopupcalendarcontrol_calendar_dataline_5 style="text-align:center;cursor:hand;"><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>');sb_html.append('<tr height=20 id=hxwebpopupcalendarcontrol_calendar_footline><td colspan=7  style="vertical-align:middle;padding-bottom:3;" align=right>');sb_html.append('<span style="vertical-align:middle;margin-left:3px;margin-right:3px;;cursor:hand;" id=lbl_hxwebpopupcalendarcontrol_today_content></span></td></tr>');sb_html.append("</table>");objDiv.innerHTML=sb_html.toString();document.body.appendChild(objDiv);HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_popup_calendar_area=objDiv;var strResStrForCalendar=HXWWW501.XmlService.HXUtil_GetUITextOnServer("TEXT__HXWWW_HXWEBCALENDAR_RESOURCE_STRING");var ArraryForCalendarResString=strResStrForCalendar.split(";");HXWWW501.HXWebPopupCalendarControl._InternalFunctions._global_res_string_arrary=ArraryForCalendarResString;var objHeadLineRow=objDiv.all("hxwebpopupcalendarcontrol_calendar_headline");for(var i=0;i<7;i++){objHeadLineRow.cells[i].innerText=ArraryForCalendarResString[i]}var strTodayTemplate=ArraryForCalendarResString[19];var dtToday=new Date();var strTodayContent=strTodayTemplate.replace(/{Y}/gi,dtToday.getFullYear());strTodayContent=strTodayContent.replace(/{M}/gi,(dtToday.getMonth()+1));strTodayContent=strTodayContent.replace(/{D}/gi,(dtToday.getDate()));objDiv.all("lbl_hxwebpopupcalendarcontrol_today_content").innerText=strTodayContent}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._get_related_inputbox_object=function(str_webdatacontrol_id,objDropdownButton){return objDropdownButton.parentElement.parentElement.all(str_webdatacontrol_id)};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onclickprocess=function(){if(!HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info){return}var objEventSrcElement=event.srcElement;var strEventSrcElementId=objEventSrcElement.id;if(!strEventSrcElementId){return}var str_webdatacontrol_id=null;for(key in HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info){if(HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info[key].choose_button_id==strEventSrcElementId){str_webdatacontrol_id=key;break}}if(str_webdatacontrol_id==null){return}var objActiveElementInfo=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];var objInputTextBox=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._get_related_inputbox_object(str_webdatacontrol_id,objEventSrcElement);if(objInputTextBox==null){return}HXWWW501.HXWebPopupCalendarControl.choose_date(objInputTextBox,objActiveElementInfo.date_format_type)};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onfocusinprocess=function(){if(!HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info){return}var objInputTextBox=event.srcElement;var strInputBoxId=objInputTextBox.id;if(!strInputBoxId){return}if(objInputTextBox.readOnly==true||objInputTextBox.disabled){return}if(!HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info[strInputBoxId]){return}objActiveElementInfo=HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registed_elements_info[strInputBoxId];HXWWW501.HXWebPopupCalendarControl.choose_date(objInputTextBox,objActiveElementInfo.date_format_type)};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onclickprocess_outsidepopuparea=function(){var objEventSrcElement=event.srcElement;if(objEventSrcElement!==HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_input_textbox&&objEventSrcElement!==HXWWW501.HXWebPopupCalendarControl._InternalFunctions._current_active_choose_button){HXWWW501.HXWebPopupCalendarControl._InternalFunctions._hide_popup_calendar_area()}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onloadprocess=function(){if(document.attachEvent){document.body.attachEvent("onfocusin",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onfocusinprocess);document.body.attachEvent("onclick",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onclickprocess);document.body.attachEvent("onclick",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onclickprocess_outsidepopuparea)}else{document.body.addEventListener("focusin",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onfocusinprocess,false);document.body.addEventListener("click",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onclickprocess,false);document.body.addEventListener("click",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onclickprocess_outsidepopuparea,false)}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registerEventHandler=function(){if(window.attachEvent){window.attachEvent("onload",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onloadprocess)}else{window.addEventListener("load",HXWWW501.HXWebPopupCalendarControl._InternalFunctions._onloadprocess,false)}HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registerEventHandler=function(){}};HXWWW501.HXWebPopupCalendarControl._InternalFunctions._registerEventHandler();HXWWW501.HXWebCalendarControl={};HXWWW501.HXWebCalendarControl._InternalFunctions={};HXWWW501.HXWebCalendarControl.register=function(str_webcalendarcontrol_id,obj_calendarcontrol_container,int_extra_week_lines,int_show_prevnextmonth_btn,int_show_calendar_title,int_show_prevnextyear_btn){if(obj_calendarcontrol_container==null){return}if(int_show_calendar_title==null){int_show_calendar_title=1}if(int_show_prevnextmonth_btn==null){int_show_prevnextmonth_btn=1}if(int_show_prevnextyear_btn==null){int_show_prevnextyear_btn=0}if(int_extra_week_lines==null||int_extra_week_lines<0||int_extra_week_lines>4){int_extra_week_lines=0}var int_current_period=parseInt(HXWWW501.Utility.HXUtil_GetDateAsInteger()/100);if(!HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id];if(!c){var c=new Object();c={webcalendarcontrol_id:str_webcalendarcontrol_id,current_period:int_current_period,extra_week_lines:int_extra_week_lines,show_prevnextmonth_btn:int_show_prevnextmonth_btn,show_prevnextyear_btn:int_show_prevnextyear_btn,show_calendar_title:int_show_calendar_title,calendarcontrol_container:obj_calendarcontrol_container};HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id]=c}};HXWWW501.HXWebCalendarControl.set_callback_functions=function(str_webcalendarcontrol_id,fn_callback__period_changed,fn_callback__date_cell_format,fn_callback__date_cell_clickormouseover){if(str_webcalendarcontrol_id==null){return}if(!HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.callback_func__period_changed=fn_callback__period_changed;objActiveElementInfo.callback_func__date_cell_format=fn_callback__date_cell_format;objActiveElementInfo.callback_func__date_cell_clickormouseover=fn_callback__date_cell_clickormouseover};HXWWW501.HXWebCalendarControl.set_calendar_period=function(str_webcalendarcontrol_id,int_period){if(str_webcalendarcontrol_id==null){return}if(!HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id];if(objActiveElementInfo==null){return}if(int_period==null){int_period=parseInt(HXWWW501.Utility.HXUtil_GetDateAsInteger()/100)}objActiveElementInfo.current_period=int_period;HXWWW501.HXWebCalendarControl._InternalFunctions._create_calendar_area(objActiveElementInfo);HXWWW501.HXWebCalendarControl._InternalFunctions._set_dateofmonth_content(objActiveElementInfo)};HXWWW501.HXWebCalendarControl.get_calendar_period=function(str_webcalendarcontrol_id){if(str_webcalendarcontrol_id==null){return}if(!HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id];if(objActiveElementInfo==null){return}return objActiveElementInfo.current_period};HXWWW501.HXWebCalendarControl.demo_callback_func__date_cell_format=function(str_webcalendarcontrol_id,int_date,obj_td_cell,obj_span_for_text,div_bg_upper_half,div_bg_lower_half,img_right_upper,img_right_lower){alert("date_cell_format_callback_func:fn(str_webcalendarcontrol_id, int_date/*yyyymmdd*/, obj_td_cell/*指定日期显示单元格HTML对象*/, obj_span_for_text, div_bg_upper_half, div_bg_lower_half, img_right_upper, img_right_lower)")};HXWWW501.HXWebCalendarControl.demo_callback_func__date_cell_clickormouseover=function(str_webcalendarcontrol_id,int_date,str_event_type){alert("date_cell_clickormouseover_callback_func:fn(str_webcalendarcontrol_id, int_date/*yyyymmdd*/, str_event_type/*onclick, onmouseover*/)")};HXWWW501.HXWebCalendarControl._InternalFunctions._create_calendar_area=function(objActiveElementInfo){var objCalendarControlContainer=objActiveElementInfo.calendarcontrol_container;if(objCalendarControlContainer.all.item("hxwebcalendarcontrol_calendar_table")==null){var str_hxwebcalendarcontrol_id=objActiveElementInfo.webcalendarcontrol_id;var int_extra_week_lines=objActiveElementInfo.extra_week_lines;var int_show_calendar_title=objActiveElementInfo.show_calendar_title;var int_show_prevnextmonth_btn=objActiveElementInfo.show_prevnextmonth_btn;var int_show_prevnextyear_btn=objActiveElementInfo.show_prevnextyear_btn;var sb_html=new HXWWW501.StringBuilder();sb_html.append('<table id="hxwebcalendarcontrol_calendar_table" hxwebcalendarcontrol_code="'+str_hxwebcalendarcontrol_id+'" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;cursor:default;"');sb_html.append(' onclick="event.cancelBubble=true;HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_area_clicked();"');sb_html.append(' onmouseover="event.cancelBubble=true;HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_area_onmouseover();"');sb_html.append(" >");if(int_show_calendar_title!=0){sb_html.append('<tr height=16 id=hxwebcalendarcontrol_calendar_topicline style="background-color:DarkBlue;color:White;font-size:12px;font-weight:bold;vertical-align:middle;"><td style="vertical-align:middle;" width=40>');if(int_show_prevnextmonth_btn!=0){sb_html.append('<img id=imgbtn_hxwebcalendarcontrol_calendar_prevmonth src="../images/hxpub_clear.gif" class=hxbtn_prevpage style="vertical-align:middle;margin-left:3px;" />')}if(int_show_prevnextyear_btn!=0){sb_html.append('<img id=imgbtn_hxwebcalendarcontrol_calendar_prevyear src="../images/hxpub_clear.gif" class=hxbtn_sort_asc style="vertical-align:middle;margin-left:3px;" />')}sb_html.append("</td><td colspan=5 align=center id=hxwebcalendarcontrol_displayed_month_content width=200></td><td align=right width=40>");if(int_show_prevnextyear_btn!=0){sb_html.append('<img id=imgbtn_hxwebcalendarcontrol_calendar_nextyear src="../images/hxpub_clear.gif" class=hxbtn_sort_desc style="vertical-align:middle;margin-right:3px;" />')}if(int_show_prevnextmonth_btn!=0){sb_html.append('<img id=imgbtn_hxwebcalendarcontrol_calendar_nextmonth src="../images/hxpub_clear.gif" class=hxbtn_nextpage style="vertical-align:middle;padding-right:3px;" />')}sb_html.append("</td></tr>")}sb_html.append('<tr height=16 id=hxwebcalendarcontrol_calendar_headline style="text-align:center;color:DarkBlue;font-size:12px;"><td style="color:red;border-bottom:solid 1 darkblue;"></td><td style="border-bottom:solid 1 darkblue;"></td><td style="border-bottom:solid 1 darkblue;"></td><td style="border-bottom:solid 1 darkblue;"></td><td style="border-bottom:solid 1 darkblue;"></td><td style="border-bottom:solid 1 darkblue;"></td><td style="color:red;border-bottom:solid 1 darkblue;"></td></tr>');for(var intLine=0;intLine<6+int_extra_week_lines;intLine++){sb_html.append("<tr id=hxwebcalendarcontrol_calendar_dataline_"+intLine.toString()+' style="text-align:center;height:20;font-size:12px;">');for(var i=0;i<7;i++){sb_html.append('<td id=td_hxwebcalendar_cell hx_cell_index="'+(intLine*7+i).toString()+'" style="position:relative;left:0;top:0;">');sb_html.append('<div id=div_hxwebcalendar_cell_upper_half style="z-index:100;position:absolute;left:0;top:0;width:100%;height:10;font-size:8px;"></div>');sb_html.append('<div id=div_hxwebcalendar_cell_lower_half style="z-index:100;position:absolute;left:0;top:10;width:100%;height:10;font-size:8px;"></div>');sb_html.append('<span id=spn_hxwebcalendar_cell_text style="z-index:101;position:absolute;left:0;top:3;width:100%;height:12;text-align:center;vertical-align:middle;background-color:transparent;"></span>');sb_html.append('<img id=img_hxwebcalendar_cell_rightupper style="z-index:110;position:absolute;right:2;top:1;" src="../images/hxpub_clear.gif" />');sb_html.append('<img id=img_hxwebcalendar_cell_rightlower style="z-index:110;position:absolute;right:2;bottom:1;" src="../images/hxpub_clear.gif" />');sb_html.append("</td>")}sb_html.append("</tr>")}sb_html.append("</table>");objCalendarControlContainer.innerHTML=sb_html.toString();var strResStrForCalendar=HXWWW501.XmlService.HXUtil_GetUITextOnServer("TEXT__HXWWW_HXWEBCALENDAR_RESOURCE_STRING");var ArraryForCalendarResString=strResStrForCalendar.split(";");HXWWW501.HXWebCalendarControl._InternalFunctions._global_res_string_arrary=ArraryForCalendarResString;var objHeadLineRow=objCalendarControlContainer.all("hxwebcalendarcontrol_calendar_headline");for(var i=0;i<7;i++){objHeadLineRow.cells[i].innerText=ArraryForCalendarResString[i]}}};HXWWW501.HXWebCalendarControl._InternalFunctions._set_dateofmonth_content=function(objActiveElementInfo){var intYear=parseInt(objActiveElementInfo.current_period/100);var intMonth=objActiveElementInfo.current_period%100;var int_extra_week_lines=objActiveElementInfo.extra_week_lines;var objHtmlTable=objActiveElementInfo.calendarcontrol_container.all.item("hxwebcalendarcontrol_calendar_table");var strDisplayMonthTemplate=HXWWW501.HXWebCalendarControl._InternalFunctions._global_res_string_arrary[20];var strDisplayMonthContent=strDisplayMonthTemplate.replace(/{Y}/gi,intYear);var strDisplayMonthDesc=HXWWW501.HXWebCalendarControl._InternalFunctions._global_res_string_arrary[6+intMonth];strDisplayMonthContent=strDisplayMonthContent.replace(/{MM}/gi,strDisplayMonthDesc);strDisplayMonthContent=strDisplayMonthContent.replace(/{M}/gi,intMonth);if(objHtmlTable.all("hxwebcalendarcontrol_displayed_month_content")!=null){objHtmlTable.all("hxwebcalendarcontrol_displayed_month_content").innerText=strDisplayMonthContent}var dtFirstDayOfDisplayMonth=new Date(intYear,intMonth-1,1);var intWeekDay=dtFirstDayOfDisplayMonth.getDay();var dtToday=new Date();dtToday=new Date(dtToday.getFullYear(),dtToday.getMonth(),dtToday.getDate());var dtTemp=new Date(intYear,intMonth-1,1-intWeekDay);for(var i=0;i<42+int_extra_week_lines*7;i++){HXWWW501.HXWebCalendarControl._InternalFunctions._set_single_cell_date_value(objActiveElementInfo,objHtmlTable,i,HXWWW501.Utility.HXUtil_GetDateAsInteger(dtTemp),(dtTemp.getMonth()==intMonth-1),(dtTemp.valueOf()==dtToday.valueOf()));dtTemp=new Date(dtTemp.getFullYear(),dtTemp.getMonth(),dtTemp.getDate()+1)}};HXWWW501.HXWebCalendarControl._InternalFunctions._set_single_cell_date_value=function(objActiveElementInfo,objHtmlTable,intCellIndex,intCurrentDate,blnIsDisplayedMonth,blnIsToday){var intRow=parseInt(intCellIndex/7);var intCol=intCellIndex%7;var objCell=objHtmlTable.all("hxwebcalendarcontrol_calendar_dataline_"+intRow).cells[intCol];objCell.style.border=(blnIsToday?"solid 1px red":"none");var objSpanForText=objCell.all("spn_hxwebcalendar_cell_text");objSpanForText.innerText=parseInt(intCurrentDate%100);objSpanForText.style.color=(blnIsDisplayedMonth?"black":"darkgray");if(objActiveElementInfo.callback_func__date_cell_format!=null){var div_hxwebcalendar_cell_upper_half=objCell.all("div_hxwebcalendar_cell_upper_half");var div_hxwebcalendar_cell_lower_half=objCell.all("div_hxwebcalendar_cell_lower_half");var img_hxwebcalendar_cell_rightupper=objCell.all("img_hxwebcalendar_cell_rightupper");var img_hxwebcalendar_cell_rightlower=objCell.all("img_hxwebcalendar_cell_rightlower");objActiveElementInfo.callback_func__date_cell_format(objActiveElementInfo.webcalendarcontrol_id,intCurrentDate,objCell,objSpanForText,div_hxwebcalendar_cell_upper_half,div_hxwebcalendar_cell_lower_half,img_hxwebcalendar_cell_rightupper,img_hxwebcalendar_cell_rightlower)}};HXWWW501.HXWebCalendarControl._InternalFunctions.get_html_table_of_calendar_via_child=function(objChildElement){var objTemp=objChildElement;while(objTemp!=null){if(objTemp.id=="hxwebcalendarcontrol_calendar_table"){return objTemp}objTemp=objTemp.parentElement}return null};HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_area_clicked=function(){var objEventSrcElement=event.srcElement;var objHtmlTableForCalendar=HXWWW501.HXWebCalendarControl._InternalFunctions.get_html_table_of_calendar_via_child(objEventSrcElement);if(objHtmlTableForCalendar==null){return}var str_webcalendarcontrol_id=objHtmlTableForCalendar.getAttribute("hxwebcalendarcontrol_code");if(str_webcalendarcontrol_id==null){return}if(!HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id];if(objActiveElementInfo==null){return}var intCurrentPeriod=objActiveElementInfo.current_period;var strEventSrcElementTagName=objEventSrcElement.tagName.toLowerCase();if(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="imgbtn_hxwebcalendarcontrol_calendar_prevmonth"){var intPrevPeriod=(parseInt(intCurrentPeriod%100)==1?(parseInt(intCurrentPeriod/100)-1)*100+12:intCurrentPeriod-1);objActiveElementInfo.current_period=intPrevPeriod;HXWWW501.HXWebCalendarControl._InternalFunctions._set_dateofmonth_content(objActiveElementInfo);if(objActiveElementInfo.callback_func__period_changed!=null){objActiveElementInfo.callback_func__period_changed(str_webcalendarcontrol_id,intPrevPeriod)}return}if(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="imgbtn_hxwebcalendarcontrol_calendar_nextmonth"){var intNextPeriod=(parseInt(intCurrentPeriod%100)==12?(parseInt(intCurrentPeriod/100)+1)*100+1:intCurrentPeriod+1);objActiveElementInfo.current_period=intNextPeriod;HXWWW501.HXWebCalendarControl._InternalFunctions._set_dateofmonth_content(objActiveElementInfo);if(objActiveElementInfo.callback_func__period_changed!=null){objActiveElementInfo.callback_func__period_changed(str_webcalendarcontrol_id,intNextPeriod)}return}if(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="imgbtn_hxwebcalendarcontrol_calendar_prevyear"){var intNextPeriod=(parseInt(intCurrentPeriod/100)-1)*100+parseInt(intCurrentPeriod%100);objActiveElementInfo.current_period=intNextPeriod;HXWWW501.HXWebCalendarControl._InternalFunctions._set_dateofmonth_content(objActiveElementInfo);if(objActiveElementInfo.callback_func__period_changed!=null){objActiveElementInfo.callback_func__period_changed(str_webcalendarcontrol_id,intNextPeriod)}return}if(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="imgbtn_hxwebcalendarcontrol_calendar_nextyear"){var intNextPeriod=(parseInt(intCurrentPeriod/100)+1)*100+parseInt(intCurrentPeriod%100);objActiveElementInfo.current_period=intNextPeriod;HXWWW501.HXWebCalendarControl._InternalFunctions._set_dateofmonth_content(objActiveElementInfo);if(objActiveElementInfo.callback_func__period_changed!=null){objActiveElementInfo.callback_func__period_changed(str_webcalendarcontrol_id,intNextPeriod)}return}if(strEventSrcElementTagName=="td"&&objEventSrcElement.id=="td_hxwebcalendar_cell"||(strEventSrcElementTagName=="span"&&objEventSrcElement.id=="spn_hxwebcalendar_cell_text")||(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="img_hxwebcalendar_cell_rightupper")||(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="img_hxwebcalendar_cell_rightlower")){if(strEventSrcElementTagName!="td"){objEventSrcElement=objEventSrcElement.parentElement}var intCellIndex=objEventSrcElement.getAttribute("hx_cell_index");HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_date_cell_clickormouseover(objActiveElementInfo,intCellIndex,"onclick")}};HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_date_cell_clickormouseover=function(objActiveElementInfo,intCellIndex,str_event_type){if(objActiveElementInfo.callback_func__date_cell_clickormouseover==null){return}var intCurrentPeriod=objActiveElementInfo.current_period;var intYear=parseInt(intCurrentPeriod/100);var intMonth=intCurrentPeriod%100;var dtFirstDayOfDisplayMonth=new Date(intYear,intMonth-1,1);var intWeekDay=dtFirstDayOfDisplayMonth.getDay();var dtTemp=new Date(intYear,intMonth-1,1-intWeekDay);dtTemp.setDate(dtTemp.getDate()+parseInt(intCellIndex));var intSelectedDate=HXWWW501.Utility.HXUtil_GetDateAsInteger(dtTemp);objActiveElementInfo.callback_func__date_cell_clickormouseover(objActiveElementInfo.webcalendarcontrol_id,intSelectedDate,str_event_type)};HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_area_onmouseover=function(){var objEventSrcElement=event.srcElement;var strEventSrcElementTagName=objEventSrcElement.tagName.toLowerCase();if(strEventSrcElementTagName=="td"&&objEventSrcElement.id=="td_hxwebcalendar_cell"||(strEventSrcElementTagName=="span"&&objEventSrcElement.id=="spn_hxwebcalendar_cell_text")||(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="img_hxwebcalendar_cell_rightupper")||(strEventSrcElementTagName=="img"&&objEventSrcElement.id=="img_hxwebcalendar_cell_rightlower")){var objHtmlTableForCalendar=HXWWW501.HXWebCalendarControl._InternalFunctions.get_html_table_of_calendar_via_child(objEventSrcElement);if(objHtmlTableForCalendar==null){return}var str_webcalendarcontrol_id=objHtmlTableForCalendar.getAttribute("hxwebcalendarcontrol_code");if(str_webcalendarcontrol_id==null){return}if(!HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebCalendarControl._InternalFunctions._registed_elements_info[str_webcalendarcontrol_id];if(objActiveElementInfo==null){return}if(strEventSrcElementTagName!="td"){objEventSrcElement=objEventSrcElement.parentElement}var intCellIndex=objEventSrcElement.getAttribute("hx_cell_index");HXWWW501.HXWebCalendarControl._InternalFunctions._hxwebcalendar_date_cell_clickormouseover(objActiveElementInfo,intCellIndex,"onmouseover")}};HXWWW501.HXWebPopupMenuControl={};HXWWW501.HXWebPopupMenuControl._InternalFunctions={};HXWWW501.HXWebPopupMenuControl.register=function(str_popupmenucontrol_id,int_contentarea_width,bln_show_img_area,fn_onmenuitemclick,fn_onmenuitemmouseover,fn_onmenuitemmouseout){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!c){var c=new Object();c={popupmenucontrol_id:str_popupmenucontrol_id,left:null,top:null,width:int_contentarea_width,show_img_area:bln_show_img_area,hidemenu_onmenuitemclick:false,onmenuitemclick_callback_func:fn_onmenuitemclick,onmenuitemmouseover_callback_func:fn_onmenuitemmouseover,onmenuitemmouseout_callback_func:fn_onmenuitemmouseout,obj_for_hide_top_border_partly:null,popupmenu_show_event_src_object:null,xml_obj_popupmenudata:null};HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id]=c}};HXWWW501.HXWebPopupMenuControl.fill_items=function(str_popupmenucontrol_id,obj_xml_data_for_menu_data,str_node_name_for_menu,str_field_name_for_key,str_field_name_for_label,str_field_name_for_sperator,str_field_name_for_indicator,str_field_name_for_img_class){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}var str_key,str_label,int_seperator_flag,int_childmenu_indicator,str_img_class_name;var str_temp=".//"+str_node_name_for_menu;var objXmlNodes=obj_xml_data_for_menu_data.selectNodes(str_temp);var objXmlNode=objXmlNodes.nextNode();while(objXmlNode!=null){str_key=objXmlNode.selectSingleNode(str_field_name_for_key).text;str_label=objXmlNode.selectSingleNode(str_field_name_for_label).text;if(str_field_name_for_sperator!=null&&str_field_name_for_sperator!=""&&objXmlNode.selectSingleNode(str_field_name_for_sperator)!=null){int_seperator_flag=objXmlNode.selectSingleNode(str_field_name_for_sperator).text}else{int_seperator_flag=0}if(str_field_name_for_indicator!=null&&str_field_name_for_indicator!=""&&objXmlNode.selectSingleNode(str_field_name_for_indicator)!=null){int_childmenu_indicator=objXmlNode.selectSingleNode(str_field_name_for_indicator).text}else{int_childmenu_indicator=0}if(str_field_name_for_img_class!=null&&str_field_name_for_img_class!=""&&objXmlNode.selectSingleNode(str_field_name_for_img_class)!=null){str_img_class_name=objXmlNode.selectSingleNode(str_field_name_for_img_class).text}else{str_img_class_name=""}HXWWW501.HXWebPopupMenuControl._InternalFunctions._internal_append_item(objActiveElementInfo,str_key,str_label,int_seperator_flag,int_childmenu_indicator,str_img_class_name);objXmlNode=objXmlNodes.nextNode()}HXWWW501.HXWebPopupMenuControl._InternalFunctions._clear_exist_popupmenu_items_html_content(objActiveElementInfo)};HXWWW501.HXWebPopupMenuControl.clear_items=function(str_popupmenucontrol_id){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}objActiveElementInfo.xml_obj_popupmenudata=null;HXWWW501.HXWebPopupMenuControl._InternalFunctions._clear_exist_popupmenu_items_html_content(objActiveElementInfo)};HXWWW501.HXWebPopupMenuControl.append_item=function(str_popupmenucontrol_id,str_key,str_label,int_seperator_flag,int_childmenu_indicator,str_img_class_name){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}HXWWW501.HXWebPopupMenuControl._InternalFunctions._internal_append_item(objActiveElementInfo,str_key,str_label,int_seperator_flag,int_childmenu_indicator,str_img_class_name);HXWWW501.HXWebPopupMenuControl._InternalFunctions._clear_exist_popupmenu_items_html_content(objActiveElementInfo)};HXWWW501.HXWebPopupMenuControl.is_element_in_popupmencontrol=function(str_popupmenucontrol_id,objEventToElement){var objDivPopupControlArea=null;var objTemp=objEventToElement;if(objTemp!=null){if(objTemp.id=="hr_hxpopupmenucontrol_partlyline"){var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(objActiveElementInfo.obj_for_hide_top_border_partly===objTemp){return true}else{return false}}}while(objTemp!=null){if(objTemp.id=="div_hxpopupmenucontrol_area"){objDivPopupControlArea=objTemp;break}objTemp=objTemp.parentElement}if(objDivPopupControlArea!=null){var str_target_popupmenucontrol_id=objDivPopupControlArea.getAttribute("hxpopupmenucontrol_id");if(str_target_popupmenucontrol_id==str_popupmenucontrol_id){return true}}return false};HXWWW501.HXWebPopupMenuControl.is_registered=function(str_popupmenucontrol_id){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return false}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return false}return true};HXWWW501.HXWebPopupMenuControl.hide=function(str_popupmenucontrol_id){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}if(objActiveElementInfo.div_hxpopupmenu_shadow_4){objActiveElementInfo.div_hxpopupmenu_shadow_4.style.display="none"}if(objActiveElementInfo.div_hxpopupmenu_shadow_3){objActiveElementInfo.div_hxpopupmenu_shadow_3.style.display="none"}if(objActiveElementInfo.div_hxpopupmenu_shadow_2){objActiveElementInfo.div_hxpopupmenu_shadow_2.style.display="none"}if(objActiveElementInfo.div_hxpopupmenu_shadow_1){objActiveElementInfo.div_hxpopupmenu_shadow_1.style.display="none"}if(objActiveElementInfo.div_hxpopupmenu){objActiveElementInfo.div_hxpopupmenu.style.display="none"}if(objActiveElementInfo.obj_for_hide_top_border_partly){objActiveElementInfo.obj_for_hide_top_border_partly.style.display="none"}objActiveElementInfo.popupmenu_show_event_src_object=null};HXWWW501.HXWebPopupMenuControl.show=function(str_popupmenucontrol_id,obj_event_src,int_left,int_top,int_width){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}if(obj_event_src==null){obj_event_src=event.srcElement}objActiveElementInfo.popupmenu_show_event_src_object=obj_event_src;var intCurrLeft,intCurrTop,intCurrWidth,intCurrHeight;if(int_left!=null){intCurrLeft=int_left}else{intCurrLeft=document.body.scrollLeft+event.clientX-3}if(int_top!=null){intCurrTop=int_top}else{intCurrTop=document.body.scrollTop+event.clientY-3}if(intCurrLeft<0){intCurrLeft=0}if(intCurrTop<0){intCurrTop=0}if(int_width!=null){intCurrWidth=int_width}else{intCurrWidth=objActiveElementInfo.width}var cItemNumbers=objActiveElementInfo.xml_obj_popupmenudata.selectNodes("//RS_ROW").length;var intCurrHeight=cItemNumbers*24+2;var intMaxWidth=document.body.scrollLeft+document.body.clientWidth;if(intCurrLeft+intCurrWidth>intMaxWidth){intCurrLeft=intMaxWidth-intCurrWidth}var intMaxHeight=document.body.scrollTop+document.body.clientHeight;if(intCurrTop+intCurrHeight>intMaxHeight){intCurrTop=intMaxHeight-intCurrHeight}HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_html_object(objActiveElementInfo,intCurrLeft,intCurrTop,intCurrWidth,intCurrHeight);window.setTimeout(HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_items_html_content,objActiveElementInfo),50);HXWWW501.HXWebPopupMenuControl._InternalFunctions._set_popupmenu_visible(objActiveElementInfo)};HXWWW501.HXWebPopupMenuControl.demo_callback_func__onmenuitemclick=function(str_popupmenucontrol_id,objPopupMenuShowEventSrcObject,strKey,strLabel,objMenuItemDiv){alert("the function is just used to show the parameters of callback function of onmenuitemclick.")};HXWWW501.HXWebPopupMenuControl.demo_callback_func__onmenuitemmouseover=function(str_popupmenucontrol_id,objPopupMenuShowEventSrcObject,strKey,strLabel,objMenuItemDiv){alert("the function is just used to show the parameters of callback function of onmenuitemmouseover.")};HXWWW501.HXWebPopupMenuControl.demo_callback_func__onmenuitemmouseout=function(str_popupmenucontrol_id,objPopupMenuShowEventSrcObject,strKey,strLabel,objMenuItemDiv){alert("the function is just used to show the parameters of callback function of onmenuitemmouseout.")};HXWWW501.HXWebPopupMenuControl.hide_top_border_partly=function(str_popupmenucontrol_id,intLeftRelatedWithPopupArea,intWidth){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}if(!objActiveElementInfo.div_hxpopupmenu){return}if(objActiveElementInfo.div_hxpopupmenu.style.display=="none"){return}if(!objActiveElementInfo.obj_for_hide_top_border_partly){var str_HR_HTMLContent='<div id=hr_hxpopupmenucontrol_partlyline style="display:none; Z-INDEX:1100; WIDTH:1;HEIGHT:1; POSITION:absolute;" />';var objHR=document.createElement(str_HR_HTMLContent);document.body.appendChild(objHR);objActiveElementInfo.obj_for_hide_top_border_partly=objHR}var objHR=objActiveElementInfo.obj_for_hide_top_border_partly;objHR.style.posLeft=objActiveElementInfo.div_hxpopupmenu.style.posLeft+intLeftRelatedWithPopupArea;objHR.style.posTop=objActiveElementInfo.div_hxpopupmenu.style.posTop;objHR.style.width=intWidth;objHR.style.display=""};HXWWW501.HXWebPopupMenuControl._InternalFunctions._internal_append_item=function(objActiveElementInfo,str_key,str_label,int_seperator_flag,int_childmenu_indicator,str_img_class_name){if(int_seperator_flag==null){int_seperator_flag=0}if(int_seperator_flag!=0){int_seperator_flag=1}if(int_childmenu_indicator==null){int_childmenu_indicator=0}if(int_childmenu_indicator!=0){int_childmenu_indicator=1}str_key=str_key.toUpperCase();var sb_temp=new HXWWW501.StringBuilder();sb_temp.append('<RS_ROW KEY="');sb_temp.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_key));sb_temp.append('" LABEL="');sb_temp.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_label));sb_temp.append('" SEPERATOR="');sb_temp.append(int_seperator_flag);sb_temp.append('" INDICATOR="');sb_temp.append(int_childmenu_indicator);sb_temp.append('" IMG_CLASS_NAME="');sb_temp.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_img_class_name));sb_temp.append('" />');var str_xml_popupmenu_single_item=sb_temp.toString();if(objActiveElementInfo.xml_obj_popupmenudata==null){objActiveElementInfo.xml_obj_popupmenudata=new ActiveXObject("Microsoft.XMLDOM");var strXmlData="<RS_DATA>"+str_xml_popupmenu_single_item+"</RS_DATA>";objActiveElementInfo.xml_obj_popupmenudata.async=false;objActiveElementInfo.xml_obj_popupmenudata.loadXML(strXmlData)}else{if(objActiveElementInfo.xml_obj_popupmenudata.selectSingleNode("//RS_ROW")==null){var strXmlData="<RS_DATA>"+str_xml_popupmenu_single_item+"</RS_DATA>";objActiveElementInfo.xml_obj_popupmenudata.async=false;objActiveElementInfo.xml_obj_popupmenudata.loadXML(strXmlData)}else{var objXmlMenuItemNode;if(objActiveElementInfo.xml_obj_popupmenudata.selectSingleNode("//RS_ROW[@KEY='"+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_key)+"']")!=null){objXmlMenuItemNode=objActiveElementInfo.xml_obj_popupmenudata.selectSingleNode("//RS_ROW[@KEY='"+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_key)+"']")}else{objXmlMenuItemNode=objActiveElementInfo.xml_obj_popupmenudata.selectSingleNode("//RS_ROW").cloneNode(true);objXmlMenuItemNode.selectSingleNode("@KEY").text=str_key;objActiveElementInfo.xml_obj_popupmenudata.documentElement.appendChild(objXmlMenuItemNode)}objXmlMenuItemNode.selectSingleNode("@LABEL").text=str_label;objXmlMenuItemNode.selectSingleNode("@SEPERATOR").text=int_seperator_flag;objXmlMenuItemNode.selectSingleNode("@INDICATOR").text=int_childmenu_indicator;objXmlMenuItemNode.selectSingleNode("@IMG_CLASS_NAME").text=str_img_class_name}}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_html_object=function(objActiveElementInfo,int_left,int_top,int_width,int_height){if(objActiveElementInfo.div_hxpopupmenu==null){var strDivHTMLContent='<div id=div_hxpopupmenucontrol_area hxpopupmenucontrol_id="'+objActiveElementInfo.popupmenucontrol_id+'" style="display:none; Z-INDEX:1000; WIDTH:'+int_width+"px; HEIGHT:"+int_height+'; POSITION: absolute;border:1 solid #999999;background-color:white;"></div>';var objDiv=document.createElement(strDivHTMLContent);document.body.appendChild(objDiv);objDiv.style.posLeft=0;objDiv.style.posTop=0;objDiv.style.width=int_width;objDiv.style.height=int_height;objActiveElementInfo.div_hxpopupmenu=objDiv;objActiveElementInfo.div_hxpopupmenu_shadow_1=HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_shadow_div(objActiveElementInfo,1);objActiveElementInfo.div_hxpopupmenu_shadow_2=HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_shadow_div(objActiveElementInfo,2);objActiveElementInfo.div_hxpopupmenu_shadow_3=HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_shadow_div(objActiveElementInfo,3);objActiveElementInfo.div_hxpopupmenu_shadow_4=HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_shadow_div(objActiveElementInfo,4)}else{objActiveElementInfo.div_hxpopupmenu.style.width=int_width;objActiveElementInfo.div_hxpopupmenu.style.height=int_height}objActiveElementInfo.div_hxpopupmenu.style.posLeft=int_left;objActiveElementInfo.div_hxpopupmenu.style.posTop=int_top};HXWWW501.HXWebPopupMenuControl._InternalFunctions._set_popupmenu_visible=function(objActiveElementInfo){objActiveElementInfo.div_hxpopupmenu.style.display="";HXWWW501.HXWebPopupMenuControl._InternalFunctions._change_popupmenu_shadow_div_size(objActiveElementInfo.div_hxpopupmenu,objActiveElementInfo.div_hxpopupmenu_shadow_1,1);HXWWW501.HXWebPopupMenuControl._InternalFunctions._change_popupmenu_shadow_div_size(objActiveElementInfo.div_hxpopupmenu,objActiveElementInfo.div_hxpopupmenu_shadow_2,2);HXWWW501.HXWebPopupMenuControl._InternalFunctions._change_popupmenu_shadow_div_size(objActiveElementInfo.div_hxpopupmenu,objActiveElementInfo.div_hxpopupmenu_shadow_3,3);HXWWW501.HXWebPopupMenuControl._InternalFunctions._change_popupmenu_shadow_div_size(objActiveElementInfo.div_hxpopupmenu,objActiveElementInfo.div_hxpopupmenu_shadow_4,4);objActiveElementInfo.div_hxpopupmenu_shadow_4.style.display="";objActiveElementInfo.div_hxpopupmenu_shadow_3.style.display="";objActiveElementInfo.div_hxpopupmenu_shadow_2.style.display="";objActiveElementInfo.div_hxpopupmenu_shadow_1.style.display=""};HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_shadow_div=function(objActiveElementInfo,i){var color="#666666";var el=objActiveElementInfo.div_hxpopupmenu;var rect=document.createElement("div");rect.id="div_hxpopupmenucontrol_area_shadow_"+i;var rs=rect.style;rs.position="absolute";rs.left=(el.style.posLeft+i)+"px";rs.top=(el.style.posTop+i)+"px";rs.width=el.offsetWidth+"px";rs.height=el.offsetHeight+"px";rs.zIndex=el.style.zIndex-i;rs.backgroundColor=color;var opacity=1-i/(i+1);rs.filter="alpha(opacity="+(100*opacity)+")";el.insertAdjacentElement("afterEnd",rect);return rect};HXWWW501.HXWebPopupMenuControl._InternalFunctions._change_popupmenu_shadow_div_size=function(el,rect,i){var rs=rect.style;rs.left=(el.style.posLeft+i)+"px";rs.top=(el.style.posTop+i)+"px";rs.width=el.offsetWidth+"px";rs.height=el.offsetHeight+"px";rs.zIndex=el.style.zIndex-i};HXWWW501.HXWebPopupMenuControl._InternalFunctions._clear_exist_popupmenu_items_html_content=function(objActiveElementInfo){if(objActiveElementInfo.div_hxpopupmenu!=null){objActiveElementInfo.div_hxpopupmenu.innerHTML=""}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._build_popupmenu_items_html_content=function(objActiveElementInfo){if(objActiveElementInfo.div_hxpopupmenu.innerHTML!=null&&objActiveElementInfo.div_hxpopupmenu.innerHTML!=""){return}var objnodelist=objActiveElementInfo.xml_obj_popupmenudata.selectNodes("//RS_ROW");var i,str_key,str_label,str_seperator,bln_seperator,str_indicator,bln_indicator,str_img_class_name;for(i=0;i<objnodelist.length;i++){str_key=objnodelist.item(i).selectSingleNode("@KEY").text;str_label=objnodelist.item(i).selectSingleNode("@LABEL").text;str_seperator=objnodelist.item(i).selectSingleNode("@SEPERATOR").text;bln_seperator=(i>0&&str_seperator!=""&&str_seperator!="0")?true:false;str_indicator=objnodelist.item(i).selectSingleNode("@INDICATOR").text;bln_indicator=(str_indicator!=""&&str_indicator!="0")?true:false;str_img_class_name=objnodelist.item(i).selectSingleNode("@IMG_CLASS_NAME").text;HXWWW501.HXWebPopupMenuControl._InternalFunctions._add_popupmenu_menuitem_html(objActiveElementInfo.div_hxpopupmenu,objActiveElementInfo.show_img_area,str_key,str_label,bln_seperator,bln_indicator,str_img_class_name)}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._add_popupmenu_menuitem_html=function(objHXWebPopup,bln_show_img_area,str_key,str_label,bln_seperator,bln_indicator,str_img_class_name){var intMenuItemLineTotalWidth=parseInt(objHXWebPopup.style.width);var intImgAreaWidth=24;var intIndicatorImgWidth=12;var strDivMenuItem='<div id=div_hxmenuitemline nowrap hxflag_menuitemline onmouseover=HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_mouseover(this) onmouseout=HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_mouseout(this) onclick=HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_click(this) style="height:24px;width:'+intMenuItemLineTotalWidth+'" class=hxwebpopupmenucontrol_menuitem hxflag_key="'+str_key+'"></div>';var objDiv=document.createElement(strDivMenuItem);objHXWebPopup.insertBefore(objDiv);var sb_MenuItemHtmlContent=new HXWWW501.StringBuilder();if(bln_show_img_area){sb_MenuItemHtmlContent.append('<span id=span_hxmenuitemline_imgarea class=hx_bgcolor_bright style="position:absolute;left:0;top:0;width:24;height:24;" onmouseover="event.cancelBubble=true;HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_mouseover(this.parentElement)"  onmouseout="event.cancelBubble=true;HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_mouseout(this.parentElement)" />');sb_MenuItemHtmlContent.append('<img id=img_hxmenuitemline_icon src="../images/hxpub_clear.gif" class="'+str_img_class_name+'" style="position:absolute;left:5;top:6;" />')}sb_MenuItemHtmlContent.append('<span id=span_hxmenuitemline_label nowrap style="position:absolute;');sb_MenuItemHtmlContent.append("left:"+((bln_show_img_area?intImgAreaWidth:0)+6)+";width:"+(intMenuItemLineTotalWidth-(bln_show_img_area?intImgAreaWidth:0)-(bln_indicator?intIndicatorImgWidth:0)));sb_MenuItemHtmlContent.append("; height:24;padding-left:0px;padding-top:6px;");if(bln_seperator){sb_MenuItemHtmlContent.append("border-top:1px solid #999999")}sb_MenuItemHtmlContent.append('" title="'+str_label+'">'+str_label+"</span>");if(bln_indicator){sb_MenuItemHtmlContent.append('<img id=img_hxmenuitemline_indicator src="../images/hxpub_clear.gif" class=hxbtn_small_indicator_right style="position:absolute;');sb_MenuItemHtmlContent.append("left:"+(intMenuItemLineTotalWidth-intIndicatorImgWidth)+';top:8;" />')}objDiv.innerHTML=sb_MenuItemHtmlContent.toString()};HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_click=function(objMenuItemDiv){HXWWW501.HXWebPopupMenuControl._InternalFunctions._fire_event(objMenuItemDiv,"onclick")},HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_mouseover=function(objDiv){if(objDiv.all.item("span_hxmenuitemline_imgarea")!=null){objDiv.all.item("span_hxmenuitemline_imgarea").className="hx_bgcolor_dark"}objDiv.className="hxwebpopupmenucontrol_menuitem_hover";HXWWW501.HXWebPopupMenuControl._InternalFunctions._fire_event(objDiv,"onmouseover")};HXWWW501.HXWebPopupMenuControl._InternalFunctions._hxwebpopupmenuitem_mouseout=function(objDiv){if(objDiv.all.item("span_hxmenuitemline_imgarea")!=null){objDiv.all.item("span_hxmenuitemline_imgarea").className="hx_bgcolor_bright"}objDiv.className="hxwebpopupmenucontrol_menuitem";HXWWW501.HXWebPopupMenuControl._InternalFunctions._fire_event(objDiv,"onmouseout")};HXWWW501.HXWebPopupMenuControl._InternalFunctions._fire_event=function(objMenuItemDiv,strEventType){var str_popupmenucontrol_id=objMenuItemDiv.parentElement.getAttribute("hxpopupmenucontrol_id");var objActiveElementInfo=HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[str_popupmenucontrol_id];if(!objActiveElementInfo){return}var strKey=objMenuItemDiv.getAttribute("hxflag_key");var strLabel=objMenuItemDiv.all.item("span_hxmenuitemline_label").innerText;var objPopupMenuShowEventSrcObject=objActiveElementInfo.popupmenu_show_event_src_object;if(strEventType=="onclick"){if(objActiveElementInfo.hidemenu_onmenuitemclick==null||objActiveElementInfo.hidemenu_onmenuitemclick==true){HXWWW501.HXWebPopupMenuControl._InternalFunctions.hide(str_popupmenucontrol_id)}if(objActiveElementInfo.onmenuitemclick_callback_func!=null){objActiveElementInfo.onmenuitemclick_callback_func(str_popupmenucontrol_id,objPopupMenuShowEventSrcObject,strKey,strLabel,objMenuItemDiv)}}if(strEventType=="onmouseover"&&objActiveElementInfo.onmenuitemmouseover_callback_func!=null){objActiveElementInfo.onmenuitemmouseover_callback_func(str_popupmenucontrol_id,objPopupMenuShowEventSrcObject,strKey,strLabel,objMenuItemDiv)}if(strEventType=="onmouseout"&&objActiveElementInfo.onmenuitemmouseout_callback_func!=null){objActiveElementInfo.onmenuitemmouseout_callback_func(str_popupmenucontrol_id,objPopupMenuShowEventSrcObject,strKey,strLabel,objMenuItemDiv)}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._onclickprocess_outsidepopupmenuarea=function(){if(!HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){return}var objEventSrcElement=event.srcElement;if(objEventSrcElement.id=="div_hxmenuitemline"||objEventSrcElement.id=="span_hxmenuitemline_imgarea"||objEventSrcElement.id=="img_hxmenuitemline_icon"||objEventSrcElement.id=="span_hxmenuitemline_label"||objEventSrcElement.id=="img_hxmenuitemline_indicator"||objEventSrcElement.id.indexOf("div_hxpopupmenucontrol_area")!=-1){return}for(key in HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info){if(HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[key].popupmenu_show_event_src_object!=null){if(HXWWW501.HXWebPopupMenuControl._InternalFunctions._registed_elements_info[key].popupmenu_show_event_src_object!==objEventSrcElement){HXWWW501.HXWebPopupMenuControl.hide(key)}}}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._onloadprocess=function(){if(document.attachEvent){document.body.attachEvent("onclick",HXWWW501.HXWebPopupMenuControl._InternalFunctions._onclickprocess_outsidepopupmenuarea)}else{document.body.addEventListener("click",HXWWW501.HXWebPopupMenuControl._InternalFunctions._onclickprocess_outsidepopupmenuarea,false)}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._registerEventHandler=function(){if(window.attachEvent){window.attachEvent("onload",HXWWW501.HXWebPopupMenuControl._InternalFunctions._onloadprocess)}else{window.addEventListener("load",HXWWW501.HXWebPopupMenuControl._InternalFunctions._onloadprocess,false)}HXWWW501.HXWebPopupMenuControl._InternalFunctions._registerEventHandler=function(){}};HXWWW501.HXWebPopupMenuControl._InternalFunctions._registerEventHandler();HXWWW501._HXWebDataControl_Global={};HXWWW501._HXWebDataControl_Global._set_current_active_control=function(strWebDataControlType,strWebDataControlID,objWebDataControl_TextBox,objWebDataControl_DropdownButton,intChooseType,intQuickSearchOption,fn_data_choosed_callback,fn_search_data_again){HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_type=strWebDataControlType;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_id=strWebDataControlID;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_textbox=objWebDataControl_TextBox;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn=objWebDataControl_DropdownButton;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_choosetype=intChooseType;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_quicksearchoption=intQuickSearchOption;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_callback_func_data_choosed=fn_data_choosed_callback;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_callback_func_search_data_again=fn_search_data_again;if(HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object!=null){var objXmlCfgData=HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object;objXmlCfgData.selectSingleNode("//@SEARCH_KEY_WORD").text="";objXmlCfgData.selectSingleNode("//@SEARCH_FROM_BEGIN").text=""}};HXWWW501._HXWebDataControl_Global._fill_data_content=function(strXmlDataList,intFirstRecordOnPage,intLastRecordOnPage,strOrgSelectedValues){var objXmlDataIsland=HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object;objXmlDataIsland.async=false;objXmlDataIsland.loadXML(strXmlDataList);var objTable=HXWWW501._HXWebDataControl_Global._global_popup_dataarea.firstChild;if(strXmlDataList==""){objTable.dataSrc="";objTable.refresh();if(objTable.tBodies.length>0){for(var i=0;i<objTable.tBodies.length;i++){objTable.tBodies[i].style.display="none"}}}else{if(objTable.dataSrc==""){objTable.tBodies[0].style.display="";objTable.dataSrc="#hxwebdatacontrol_popup_xml_datalist_object";objTable.refresh()}else{if(objTable.tBodies.length>0&&objTable.tBodies[0].style.display=="none"){for(var i=0;i<objTable.tBodies.length;i++){objTable.tBodies[i].style.display=""}}}}if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_choosetype!=0&&strOrgSelectedValues!=null&&strOrgSelectedValues!=""){var ss=strOrgSelectedValues.split(",");for(key in ss){var objXmlNode=objXmlDataIsland.selectSingleNode("//RS_ROW[@KEY='"+ss[key]+"']/@IS_CHOOSED");if(objXmlNode!=null){objXmlNode.text="-1"}}}if(HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object!=null){HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object.selectSingleNode("//@FIRST_RECORD_ON_PAGE").text=intFirstRecordOnPage;HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object.selectSingleNode("//@LAST_RECORD_ON_PAGE").text=intLastRecordOnPage}};HXWWW501._HXWebDataControl_Global._update_record_count=function(intTotalRecordsCount){if(HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object!=null){HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object.selectSingleNode("//@TOTAL_RECORDS_COUNT").text=intTotalRecordsCount}};HXWWW501._HXWebDataControl_Global._clear_current_active_control=function(){HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_type=null;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_id=null;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn=null;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_textbox=null;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_choosetype=null;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_callback_func_data_choosed=null;HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_callback_func_search_data_again=null;HXWWW501._HXWebDataControl_Global._hide_popup_area()};HXWWW501._HXWebDataControl_Global._show_popup_area=function(intLeft,intTop,intWidth,intHeight,blnShowControlAreaChoosePart,blnShowControlAreaSearchPart){var blnShowControlArea=(blnShowControlAreaChoosePart||blnShowControlAreaSearchPart);var objTable=HXWWW501._HXWebDataControl_Global._global_popup_dataarea.firstChild;objTable.dataSrc="#hxwebdatacontrol_popup_xml_datalist_object";objTable.refresh();var intControAreaHeight=(!blnShowControlArea?0:25);if(blnShowControlArea){HXWWW501._HXWebDataControl_Global._create_popup_dataarea();HXWWW501._HXWebDataControl_Global._changesize_popup_dataarea(intLeft,intTop,intWidth,intHeight-intControAreaHeight);HXWWW501._HXWebDataControl_Global._create_popup_controlarea();HXWWW501._HXWebDataControl_Global._changesize_popup_controlarea(intLeft,intTop+intHeight-intControAreaHeight,intWidth,intControAreaHeight,blnShowControlAreaChoosePart,blnShowControlAreaSearchPart);HXWWW501._HXWebDataControl_Global._global_popup_dataarea.style.display="";HXWWW501._HXWebDataControl_Global._global_popup_controlarea.style.display=""}else{HXWWW501._HXWebDataControl_Global._create_popup_dataarea();HXWWW501._HXWebDataControl_Global._changesize_popup_dataarea(intLeft,intTop,intWidth,intHeight);HXWWW501._HXWebDataControl_Global._global_popup_dataarea.style.display="";HXWWW501._HXWebDataControl_Global._global_popup_controlarea.style.display="none"}};HXWWW501._HXWebDataControl_Global._hide_popup_area=function(){if(HXWWW501._HXWebDataControl_Global._global_popup_dataarea!=null){HXWWW501._HXWebDataControl_Global._global_popup_dataarea.style.display="none"}if(HXWWW501._HXWebDataControl_Global._global_popup_controlarea!=null){HXWWW501._HXWebDataControl_Global._global_popup_controlarea.style.display="none";HXWWW501._HXWebDataControl_Global._global_popup_controlarea.all("hxwebdatacontrol_controlarea_search_part_keyword").value=""}};HXWWW501._HXWebDataControl_Global._create_popup_dataarea=function(){if(window.document.all.item("hxwebdatacontrol_popup_dataarea")==null){var objDiv;var strDivHTMLContent='<div id=hxwebdatacontrol_popup_dataarea style="display:none; Z-INDEX:8000; LEFT:0px; TOP:0px;WIDTH:200px; HEIGHT:144px; POSITION: absolute; overflow:auto; padding:1 1 0 0;" onclick="event.cancelBubble=true;"></div>';objDiv=document.createElement(strDivHTMLContent);var sb_temp=new HXWWW501.StringBuilder();sb_temp.append('<table border="0" cellpadding="0" cellspacing="0" width="100%" id="hxwebdatacontrol_global_datalist_table" style="cursor:hand;font-size:11px;border-collapse:collapse;">');sb_temp.append('<tbody><tr height=16 class=hxwebdatacontrol_dataline onmouseover="this.className=\'hxwebdatacontrol_dataline_hover\';" onmouseout="this.className=\'hxwebdatacontrol_dataline\';" onclick="HXWWW501._HXWebDataControl_Global._datarow_clicked(this);event.cancelBubble=true;">');sb_temp.append('<td align=right id=hxwebdatacontrol_td_col_choose width=26 style="display:none"><input type=checkbox datafld=is_choosed onclick="event.cancelBubble=true;" style="padding:0;margin:0" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_1 style="PADDING-LEFT: 2px;"><span datafld="KEY" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_2 style="BORDER-LEFT: lightgrey 1px solid; PADDING-LEFT: 3px;display:none"><span datafld="DESC" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_3 style="BORDER-LEFT: lightgrey 1px solid; PADDING-LEFT: 3px;display:none"><span datafld="ATTR_1" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_4 style="BORDER-LEFT: lightgrey 1px solid; PADDING-LEFT: 3px;display:none"><span datafld="ATTR_2" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_5 style="BORDER-LEFT: lightgrey 1px solid; PADDING-LEFT: 3px;display:none"><span datafld="ATTR_3" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_6 style="BORDER-LEFT: lightgrey 1px solid; PADDING-LEFT: 3px;display:none"><span datafld="ATTR_4" /></td>');sb_temp.append('<td id=hxwebdatacontrol_td_col_7 style="BORDER-LEFT: lightgrey 1px solid; PADDING-LEFT: 3px;display:none"><span datafld="ATTR_5" /></td>');sb_temp.append("</tr></tbody></table>");objDiv.innerHTML=sb_temp.toString();document.body.appendChild(objDiv);HXWWW501._HXWebDataControl_Global._global_popup_dataarea=objDiv}};HXWWW501._HXWebDataControl_Global._datarow_clicked=function(objTR){if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_choosetype==0){var objXmlDataIsland=HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object;var objXmlRow=objXmlDataIsland.selectNodes("//RS_ROW").item(objTR.recordNumber-1);if(objXmlRow==null){return}HXWWW501._HXWebDataControl_Global._data_item_choosed_process(objXmlRow)}else{var objXmlDataIsland=HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object;var objXmlRow=objXmlDataIsland.selectNodes("//RS_ROW").item(objTR.recordNumber-1);if(objXmlRow.selectSingleNode(".//@IS_CHOOSED").text=="-1"){objXmlRow.selectSingleNode(".//@IS_CHOOSED").text="0"}else{objXmlRow.selectSingleNode(".//@IS_CHOOSED").text="-1"}}};HXWWW501._HXWebDataControl_Global._data_item_choosed_process=function(objXmlRow,objXmlNodeList){var str_webdatacontrol_type=HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_type;var str_webdatacontrol_id=HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_id;var obj_webdatacontrol_textbox=HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_textbox;var obj_webdatacontrol_dropdownbtn=HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn;var fn_datachoosed_callback=HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_callback_func_data_choosed;HXWWW501._HXWebDataControl_Global._clear_current_active_control();var objXmlDoc=new ActiveXObject("Microsoft.XMLDOM");objXmlDoc.async=false;objXmlDoc.loadXML("<RS_DATA></RS_DATA>");if(objXmlRow!=null){objXmlDoc.documentElement.appendChild(objXmlRow.cloneNode(true))}else{for(var i=0;i<objXmlNodeList.length;i++){objXmlDoc.documentElement.appendChild(objXmlNodeList.item(i).cloneNode(true))}}fn_datachoosed_callback(str_webdatacontrol_id,obj_webdatacontrol_textbox,obj_webdatacontrol_dropdownbtn,objXmlDoc.documentElement)};HXWWW501._HXWebDataControl_Global._format_display_columns=function(strColumnWidths){var objTable=HXWWW501._HXWebDataControl_Global._global_popup_dataarea.firstChild;objTable.dataSrc="";objTable.refresh();if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_choosetype==0){document.all.item("hxwebdatacontrol_td_col_choose").style.display="none"}else{document.all.item("hxwebdatacontrol_td_col_choose").style.display=""}if(strColumnWidths==null||strColumnWidths==""){strColumnWidths="100%"}if(strColumnWidths.charAt(strColumnWidths.length-1)==";"){strColumnWidths=strColumnWidths.substring(0,strColumnWidths.length-1)}var strColWidth1="0",strColWidth2="0",strColWidth3="0",strColWidth4="0",strColWidth5="0",strColWidth6="0",strColWidth7="0";var strArrary=strColumnWidths.split(";");for(var i=0;i<strArrary.length;i++){eval("strColWidth"+(i+1)+'="'+strArrary[i]+'"')}HXWWW501._HXWebDataControl_Global._set_column_width(1,strColWidth1,true);HXWWW501._HXWebDataControl_Global._set_column_width(2,strColWidth2,(strColWidth1=="0"||strColWidth1=="0%"?true:false));HXWWW501._HXWebDataControl_Global._set_column_width(3,strColWidth3,false);HXWWW501._HXWebDataControl_Global._set_column_width(4,strColWidth4,false);HXWWW501._HXWebDataControl_Global._set_column_width(5,strColWidth5,false);HXWWW501._HXWebDataControl_Global._set_column_width(6,strColWidth6,false);HXWWW501._HXWebDataControl_Global._set_column_width(7,strColWidth7,false)};HXWWW501._HXWebDataControl_Global._set_column_width=function(ColumnId,strWidthRate,blnHideLeftColumnBorder){var objTDs=document.all.item("hxwebdatacontrol_td_col_"+ColumnId);if(objTDs==null){return}if(objTDs.length==null){if(strWidthRate=="0"||strWidthRate=="0%"){objTDs.style.display="none"}else{objTDs.width=strWidthRate;objTDs.style.display="";objTDs.style.borderLeftStyle=(blnHideLeftColumnBorder?"none":"solid")}}else{for(var i=0;i<objTDs.length;i++){var objTD=objTDs.item(i);if(strWidthRate=="0"||strWidthRate=="0%"){objTD.style.display="none"}else{objTD.width=strWidthRate;objTD.style.display="";objTDs.style.borderLeftStyle=(blnHideLeftColumnBorder?"none":"solid")}}}};HXWWW501._HXWebDataControl_Global._create_xml_datalist_object=function(){if(window.document.all.item("hxwebdatacontrol_popup_xml_datalist_object")==null){var strXmlHTMLContent="<xml id=hxwebdatacontrol_popup_xml_datalist_object></xml>";var objXml=document.createElement(strXmlHTMLContent);document.body.appendChild(objXml);HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object=objXml}};HXWWW501._HXWebDataControl_Global._create_popup_controlarea=function(){if(window.document.all.item("hxwebdatacontrol_popup_controlarea")==null){var strDivHTMLContent='<div id=hxwebdatacontrol_popup_controlarea style="display:none; Z-INDEX:8000; LEFT:0px; TOP:0px;WIDTH:200px; HEIGHT:30px; POSITION: absolute; " onclick="event.cancelBubble=true;"></div>';var objDiv=document.createElement(strDivHTMLContent);document.body.appendChild(objDiv);var sb_temp=new HXWWW501.StringBuilder();sb_temp.append('<table border="0" cellpadding="0" cellspacing="0" width="100%" id="hxwebdatacontrol_global_controlarea_table" style="cursor:hand;font-size:11px;border-collapse:collapse;">');sb_temp.append('<tr height=30><td align=left id=hxwebdatacontrol_controlarea_choose_part style="padding-top:3;vertical-align:top">');sb_temp.append('<input type=checkbox onclick="event.cancelBubble=true;HXWWW501._HXWebDataControl_Global._select_all(this);" style="padding:0;margin-left:2px;vertical-align:top;" />');sb_temp.append('<input type=button class=hxwebdatacontrol_button style="width:50px;margin-left:3px;" value="Ok" onclick="HXWWW501._HXWebDataControl_Global._OKButton_onclicked()"  datasrc=#hxwebdatacontrol_popup_xml_configdata_object datafld=LBL_BTN_OK>');sb_temp.append('<input type=button class=hxwebdatacontrol_button style="width:50px;margin-left:3px;" value="Cancel" onclick="HXWWW501._HXWebDataControl_Global._CancelButton_onclicked()"  datasrc=#hxwebdatacontrol_popup_xml_configdata_object datafld=LBL_BTN_CANCEL>');sb_temp.append('</td><td id=hxwebdatacontrol_controlarea_search_part align=right id=hxwebdatacontrol_controlarea_search_part style="padding-right:2px;vertical-align:top;padding-top:3px;">');sb_temp.append('<span style="margin-left:3px;" datasrc=#hxwebdatacontrol_popup_xml_configdata_object datafld=FIRST_RECORD_ON_PAGE></span>&nbsp;~&nbsp;<span datasrc=#hxwebdatacontrol_popup_xml_configdata_object datafld=LAST_RECORD_ON_PAGE ></span>');sb_temp.append('<img class=hxbtn_showmore style="vertical-align:middle;margin-left:3px;margin-right:3px;"src="../images/hxpub_clear.gif" onclick="HXWWW501._HXWebDataControl_Global._show_more_content()" />');sb_temp.append("<span datasrc=#hxwebdatacontrol_popup_xml_configdata_object datafld=LBL_TEXT_OF>Of</span>&nbsp;<span datasrc=#hxwebdatacontrol_popup_xml_configdata_object datafld=TOTAL_RECORDS_COUNT ></span>");sb_temp.append('<input class=hxinputbox id=hxwebdatacontrol_controlarea_search_part_keyword style="width:50px;height:17px;margin-left:3px;" onkeyup="event.cancelBubble=true;HXWWW501._HXWebDataControl_Global._searchkeyword_keypressed(this.value);" /><img src="../images/hxpub_clear.gif" style="margin-left:3px;padding:0;margin-right:3px;vertical-align:middle;" class=hxbtn_search onclick="HXWWW501._HXWebDataControl_Global._begin_search()" />');sb_temp.append("</td></tr></table>");objDiv.innerHTML=sb_temp.toString();document.body.appendChild(objDiv);HXWWW501._HXWebDataControl_Global._global_popup_controlarea=objDiv}};HXWWW501._HXWebDataControl_Global._select_all=function(objCheckBox){var objXmlDataIsland=HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object;var objXmlNodeList=objXmlDataIsland.selectNodes("//RS_ROW/@IS_CHOOSED");var strTemp=(objCheckBox.checked?"-1":"0");for(var i=0;i<objXmlNodeList.length;i++){objXmlNodeList.item(i).text=strTemp}};HXWWW501._HXWebDataControl_Global._begin_search=function(blnShowMoreContent){if(blnShowMoreContent==null){blnShowMoreContent=false}var objXmlConfigData=HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object;var strSearchKeyWord=objXmlConfigData.selectSingleNode("//@SEARCH_KEY_WORD").text;var strSearchFromBegin=objXmlConfigData.selectSingleNode("//@SEARCH_FROM_BEGIN").text;var blnSearchFromBegin=(strSearchFromBegin!=""&&blnSearchFromBegin!="0"?true:false);var strCurrentSelectedValues="";if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_choosetype!=0){var objXmlDataIsland=HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object;var objXmlNodeList=objXmlDataIsland.selectNodes("//RS_ROW[@IS_CHOOSED !='0']");for(var i=0;i<objXmlNodeList.length;i++){strCurrentSelectedValues+=(strCurrentSelectedValues==""?"":",")+objXmlNodeList.item(i).selectSingleNode("@KEY").text}}var fn_search_data_again=HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_callback_func_search_data_again;fn_search_data_again(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_id,HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_textbox,HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn,blnShowMoreContent,strSearchKeyWord,blnSearchFromBegin,strCurrentSelectedValues)};HXWWW501._HXWebDataControl_Global._show_more_content=function(){HXWWW501._HXWebDataControl_Global._begin_search(true)};HXWWW501._HXWebDataControl_Global._searchkeyword_keypressed=function(strSearchKeyWord){var objXmlConfigData=HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object;if(event.keyCode==13){HXWWW501._HXWebDataControl_Global._begin_search()}else{if(objXmlConfigData.selectSingleNode("//@SEARCH_KEY_WORD").text!=strSearchKeyWord){objXmlConfigData.selectSingleNode("//@SEARCH_KEY_WORD").text=strSearchKeyWord;if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_quicksearchoption==1){HXWWW501._HXWebDataControl_Global._begin_search()}}}};HXWWW501._HXWebDataControl_Global._OKButton_onclicked=function(){var objXmlDataIsland=HXWWW501._HXWebDataControl_Global._global_popup_xml_datalist_object;var objXmlNodeList=objXmlDataIsland.selectNodes("//RS_ROW[@IS_CHOOSED !='0']");HXWWW501._HXWebDataControl_Global._data_item_choosed_process(null,objXmlNodeList)};HXWWW501._HXWebDataControl_Global._CancelButton_onclicked=function(){HXWWW501._HXWebDataControl_Global._hide_popup_area()};HXWWW501._HXWebDataControl_Global._create_xml_configdata_object=function(){if(window.document.all.item("hxwebdatacontrol_popup_xml_configdata_object")==null){var strXmlHTMLContent="<xml id=hxwebdatacontrol_popup_xml_configdata_object></xml>";var objXml=document.createElement(strXmlHTMLContent);document.body.appendChild(objXml);objXml.async=false;objXml.loadXML('<RS_DATA><RS_ROW SEARCH_KEY_WORD="" SEARCH_FROM_BEGIN="" TOTAL_RECORDS_COUNT="" FIRST_RECORD_ON_PAGE="" LAST_RECORD_ON_PAGE="" LBL_BTN_OK="" LBL_BTN_CANCEL="" LBL_TEXT_OF="" /></RS_DATA>');var strLanguageText=HXWWW501.XmlService.HXUtil_GetUITextOnServer("TEXT__HXWWW_HXWEBCOMBOBOX_RESOURCE_STRING");var strArray=strLanguageText.split(";");objXml.selectSingleNode("//@LBL_BTN_OK").text=strArray[0];objXml.selectSingleNode("//@LBL_BTN_CANCEL").text=strArray[1];objXml.selectSingleNode("//@LBL_TEXT_OF").text=strArray[2];HXWWW501._HXWebDataControl_Global._global_popup_xml_configdata_object=objXml}};HXWWW501._HXWebDataControl_Global._changesize_popup_dataarea=function(intLeft,intTop,intWidth,intHeight){if(HXWWW501._HXWebDataControl_Global._global_popup_dataarea!=null){var objDiv=HXWWW501._HXWebDataControl_Global._global_popup_dataarea;objDiv.style.posLeft=intLeft;objDiv.style.posTop=intTop;objDiv.style.width=intWidth;objDiv.style.height=intHeight}};HXWWW501._HXWebDataControl_Global._changesize_popup_controlarea=function(intLeft,intTop,intWidth,intHeight,blnShowControlAreaChoosePart,blnShowControlAreaSearchPart){if(HXWWW501._HXWebDataControl_Global._global_popup_controlarea!=null){var objDiv=HXWWW501._HXWebDataControl_Global._global_popup_controlarea;objDiv.style.posLeft=intLeft;objDiv.style.posTop=intTop;objDiv.style.width=intWidth;objDiv.style.height=intHeight}objDiv.all("hxwebdatacontrol_controlarea_choose_part").style.display=(blnShowControlAreaChoosePart?"":"none");objDiv.all("hxwebdatacontrol_controlarea_search_part").style.display=(blnShowControlAreaSearchPart?"":"none")};HXWWW501._HXWebDataControl_Global._onclickprocess_outsidedropdownarea=function(){if(!HXWWW501._HXWebDataControl_Global._global_popup_dataarea){return}if(HXWWW501._HXWebDataControl_Global._global_popup_dataarea.style.display=="none"){return}var objEventSrcElement=event.srcElement;if(objEventSrcElement!==HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_textbox&&objEventSrcElement!==HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn){HXWWW501._HXWebDataControl_Global._clear_current_active_control()}};HXWWW501._HXWebDataControl_Global._onloadprocess=function(){HXWWW501._HXWebDataControl_Global._create_popup_dataarea();HXWWW501._HXWebDataControl_Global._create_popup_controlarea();HXWWW501._HXWebDataControl_Global._create_xml_datalist_object();HXWWW501._HXWebDataControl_Global._create_xml_configdata_object();if(document.attachEvent){document.body.attachEvent("onclick",HXWWW501._HXWebDataControl_Global._onclickprocess_outsidedropdownarea)}else{document.body.addEventListener("click",HXWWW501._HXWebDataControl_Global._onclickprocess_outsidedropdownarea,false)}};HXWWW501._HXWebDataControl_Global._registerEventHandler=function(){if(document.attachEvent){window.attachEvent("onload",HXWWW501._HXWebDataControl_Global._onloadprocess)}else{window.addEventListener("load",HXWWW501._HXWebDataControl_Global._onloadprocess,false)}HXWWW501._HXWebDataControl_Global._registerEventHandler=function(){}};HXWWW501._HXWebDataControl_Global._registerEventHandler();HXWWW501.HXWebComboBoxControl={};HXWWW501.HXWebComboBoxControl._InternalFunctions={};HXWWW501.HXWebComboBoxControl.register=function(str_webdatacontrol_id,str_dropdown_btn_id,str_content_type,int_choose_type,int_is_paging,int_page_size,int_dropdownbox_width,int_dropdownbox_height,str_dropdown_columns_width_rate,fn_filter_data_callback,fn_datachoosed_callback){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(!c){var c=new Object();c={webdatacontrol_id:str_webdatacontrol_id,choose_button_id:str_dropdown_btn_id,content_type:str_content_type,choose_type:int_choose_type,is_paging:int_is_paging,page_size:int_page_size,new_page_size:int_page_size,limit_in_list:true,dropdownbox_width:int_dropdownbox_width,dropdownbox_height:int_dropdownbox_height,columns_width_rate:str_dropdown_columns_width_rate,search_content_type:HXWWW501.HXWebComboBoxControl._InternalFunctions._get_search_content_type(str_dropdown_columns_width_rate),binding_datasrc_id:null,binding_datafld_for_key:null,binding_datafld_for_desc:null,binding_datafld_for_attr_1:null,binding_datafld_for_attr_2:null,binding_datafld_for_attr_3:null,binding_datafld_for_attr_4:null,binding_datafld_for_attr_5:null,filter_data_callback_func:fn_filter_data_callback,datachoosed_callback_func:fn_datachoosed_callback,is_use_local_list_data:0,get_local_list_data_callback_func:null,predefined_hxmd_dropdownlist_code:null,predefined_hxmd_dropdownlist_show_blank_row:"no",predefined_hxmd_dropdownlist_blank_row_caption:"",is_allow_quick_search_per_char:0,is_auto_completion_hint_search_from_begin:true,is_use_autocompletion_hint:1};HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id]=c}};HXWWW501.HXWebComboBoxControl.set_predefined_dropdownlist_code=function(str_webdatacontrol_id,str_dropdownlist_code,str_show_blank_row,str_blank_row_caption){if(str_webdatacontrol_id==null){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.predefined_hxmd_dropdownlist_code=str_dropdownlist_code;if(str_show_blank_row==null){str_show_blank_row="no"}if(str_blank_row_caption==null||str_blank_row_caption==""){str_show_blank_row="no"}objActiveElementInfo.predefined_hxmd_dropdownlist_show_blank_row=str_show_blank_row;objActiveElementInfo.predefined_hxmd_dropdownlist_blank_row_caption=str_blank_row_caption};HXWWW501.HXWebComboBoxControl.set_binding_information=function(str_webdatacontrol_id,str_binding_datasrc_id,str_binding_datafield_for_key,str_binding_datafield_for_desc,str_binding_datafield_for_attr1,str_binding_datafield_for_attr2,str_binding_datafield_for_attr3,str_binding_datafield_for_attr4,str_binding_datafield_for_attr5){if(str_webdatacontrol_id==null){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.binding_datasrc_id=str_binding_datasrc_id;objActiveElementInfo.binding_datafld_for_key=str_binding_datafield_for_key;objActiveElementInfo.binding_datafld_for_desc=str_binding_datafield_for_desc;objActiveElementInfo.binding_datafld_for_attr_1=str_binding_datafield_for_attr1;objActiveElementInfo.binding_datafld_for_attr_2=str_binding_datafield_for_attr2;objActiveElementInfo.binding_datafld_for_attr_3=str_binding_datafield_for_attr3;objActiveElementInfo.binding_datafld_for_attr_4=str_binding_datafield_for_attr4;objActiveElementInfo.binding_datafld_for_attr_5=str_binding_datafield_for_attr5};HXWWW501.HXWebComboBoxControl.set_autocompletion_hint=function(str_webdatacontrol_id,bln_use_autocompletion_hint,bln_search_from_begin){if(str_webdatacontrol_id==null){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(objActiveElementInfo==null){return}if(bln_use_autocompletion_hint==null){bln_use_autocompletion_hint=true}objActiveElementInfo.is_use_autocompletion_hint=(bln_use_autocompletion_hint?1:0);if(bln_search_from_begin==null){bln_search_from_begin=true}objActiveElementInfo.is_auto_completion_hint_search_from_begin=bln_search_from_begin};HXWWW501.HXWebComboBoxControl.set_limit_in_list=function(str_webdatacontrol_id,bln_limit_in_list){if(str_webdatacontrol_id==null){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(objActiveElementInfo==null){return}if(bln_limit_in_list==null){bln_limit_in_list=true}objActiveElementInfo.limit_in_list=bln_limit_in_list};HXWWW501.HXWebComboBoxControl.set_quick_search_per_char_mode=function(str_webdatacontrol_id,bln_enable_per_char_mode){if(str_webdatacontrol_id==null){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(objActiveElementInfo==null){return}if(bln_enable_per_char_mode==null){bln_enable_per_char_mode=true}objActiveElementInfo.is_allow_quick_search_per_char=(bln_enable_per_char_mode?1:0)};HXWWW501.HXWebComboBoxControl.set_pagexmlsvc_assembly_and_class=function(str_webdatacontrol_id,str_webdatalist_pagexmlsvc_assemblyname,str_webdatalist_pagexmlsvc_classname){var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];objActiveElementInfo.webdatalist_pagexmlsvc_assemblyname=str_webdatalist_pagexmlsvc_assemblyname;objActiveElementInfo.webdatalist_pagexmlsvc_classname=str_webdatalist_pagexmlsvc_classname};HXWWW501.HXWebComboBoxControl.register_callback_for_get_local_list_data=function(str_webdatacontrol_id,fn_get_local_list_data_callback){if(str_webdatacontrol_id==null){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.is_paging=0;objActiveElementInfo.is_use_local_list_data=1;objActiveElementInfo.get_local_list_data_callback_func=fn_get_local_list_data_callback};HXWWW501.HXWebComboBoxControl.demo_callback_func__get_local_list_data=function(str_webdatacontrol_id){alert("the function is just used to show the parameters of callback function of get_local_list_data().")};HXWWW501.HXWebComboBoxControl.demo_callback_func__get_filter_data=function(str_webdatacontrol_id,objInputBox,objDropDownButton){alert("the function is just used to show the parameters of callback function of get_filter_data().")};HXWWW501.HXWebComboBoxControl.demo_callback_func__datachoosed=function(str_webdatacontrol_id,objInputBox,objDropDownButton,objXmlElementForChoosedData){alert("the function is just used to show the parameters of callback function of datachoosed().")};HXWWW501.HXWebComboBoxControl._InternalFunctions._get_search_content_type=function(strColumnWidths){if(strColumnWidths==null||strColumnWidths==""){strColumnWidths="100%"}if(strColumnWidths.charAt(strColumnWidths.length-1)==";"){strColumnWidths=strColumnWidths.substring(0,strColumnWidths.length-1)}var sb_temp=new HXWWW501.StringBuilder();var strArrary=strColumnWidths.split(";");var blnHasColumnExist=false;if(!(strArrary[0]=="0"||strArrary[0]=="0%")){sb_temp.append("KEY");blnHasColumnExist=true}if(strArrary.length>1&&!(strArrary[1]=="0"||strArrary[1]=="0%")){if(blnHasColumnExist){sb_temp.append(";")}sb_temp.append("DESC");if(!blnHasColumnExist){blnHasColumnExist=true}}if(strArrary.length>2&&!(strArrary[2]=="0"||strArrary[2]=="0%")){if(blnHasColumnExist){sb_temp.append(";")}sb_temp.append("ATTR_1");if(!blnHasColumnExist){blnHasColumnExist=true}}if(strArrary.length>3&&!(strArrary[3]=="0"||strArrary[3]=="0%")){if(blnHasColumnExist){sb_temp.append(";")}sb_temp.append("ATTR_2");if(!blnHasColumnExist){blnHasColumnExist=true}}if(strArrary.length>4&&!(strArrary[4]=="0"||strArrary[4]=="0%")){if(blnHasColumnExist){sb_temp.append(";")}sb_temp.append("ATTR_3");if(!blnHasColumnExist){blnHasColumnExist=true}}if(strArrary.length>5&&!(strArrary[5]=="0"||strArrary[5]=="0%")){if(blnHasColumnExist){sb_temp.append(";")}sb_temp.append("ATTR_4");if(!blnHasColumnExist){blnHasColumnExist=true}}if(strArrary.length>6&&!(strArrary[6]=="0"||strArrary[6]=="0%")){if(blnHasColumnExist){sb_temp.append(";")}sb_temp.append("ATTR_5");if(!blnHasColumnExist){blnHasColumnExist=true}}return sb_temp.toString()};HXWWW501.HXWebComboBoxControl._InternalFunctions._onclickprocess=function(){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objEventSrcElement=event.srcElement;var strEventSrcElementId=objEventSrcElement.id;if(!strEventSrcElementId){return}var str_webdatacontrol_id=null;for(key in HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){if(HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[key].choose_button_id==strEventSrcElementId){str_webdatacontrol_id=key;break}}if(str_webdatacontrol_id==null){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];var objInputTextBox=HXWWW501.HXWebComboBoxControl._InternalFunctions._get_related_inputbox_object(str_webdatacontrol_id,objEventSrcElement);HXWWW501._HXWebDataControl_Global._set_current_active_control("hxcombobox",str_webdatacontrol_id,objInputTextBox,objEventSrcElement,objActiveElementInfo.choose_type,objActiveElementInfo.is_allow_quick_search_per_char,HXWWW501.HXWebComboBoxControl._InternalFunctions._data_choosed_process,HXWWW501.HXWebComboBoxControl._InternalFunctions._search_data_again);objActiveElementInfo.new_page_size=objActiveElementInfo.page_size;var str_org_selected_values="";if(objActiveElementInfo.choose_type!=0){str_org_selected_values=HXWWW501.HXWebComboBoxControl._InternalFunctions._get_org_selecte_dvalues(objActiveElementInfo,objInputTextBox,objEventSrcElement)}HXWWW501.HXWebComboBoxControl._InternalFunctions._internal_search_data(objActiveElementInfo,objInputTextBox,objEventSrcElement,false,"",true,str_org_selected_values,true)};HXWWW501.HXWebComboBoxControl._InternalFunctions._get_customized_filter_data=function(objActiveElementInfo,objInputBox,objDropDownButton){var strCustomizedFilterData="";if(HXWWW501.Utility._InternalFunctions.is_js_function_defined(objActiveElementInfo.filter_data_callback_func)){try{strCustomizedFilterData=objActiveElementInfo.filter_data_callback_func(objActiveElementInfo.webdatacontrol_id,objInputBox,objDropDownButton);if(strCustomizedFilterData==null){return null}}catch(e){alert("hxcombobox filter_data_callback_func call failed. "+e.description);return null}}if(objActiveElementInfo.predefined_hxmd_dropdownlist_code!=null&&objActiveElementInfo.predefined_hxmd_dropdownlist_code!=""){var sb_XmlDropdownListPart=new HXWWW501.StringBuilder();sb_XmlDropdownListPart.append('<RS_ROW DROPDOWNLIST_CODE="');sb_XmlDropdownListPart.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objActiveElementInfo.predefined_hxmd_dropdownlist_code));sb_XmlDropdownListPart.append('" SHOW_BLANK_ROW="');sb_XmlDropdownListPart.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objActiveElementInfo.predefined_hxmd_dropdownlist_show_blank_row));sb_XmlDropdownListPart.append('" BLANK_ROW_CAPTION="');sb_XmlDropdownListPart.append(HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objActiveElementInfo.predefined_hxmd_dropdownlist_blank_row_caption));sb_XmlDropdownListPart.append('"/>');var strAllXmlData=HXWWW501.Utility.HXUtil_BuildAllXmlDatas("dropdownlist",sb_XmlDropdownListPart.toString(),"customized_filter_data",strCustomizedFilterData);return strAllXmlData}return strCustomizedFilterData};HXWWW501.HXWebComboBoxControl._InternalFunctions._fill_datalist_content=function(objActiveElementInfo,objInputTextBox,objChooseButton,strReturnValue,blnShowPopupArea,strOrgSelectedValues,strTriggeredVia){if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_type!="hxcombobox"){return}if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn!==objChooseButton){return}var strXmlDataList,intFirstRecordOnPage,intLastRecordOnPage,strOrgSearchKeyWord="";var objXmlDoc=new ActiveXObject("Microsoft.XMLDOM");objXmlDoc.async=false;objXmlDoc.loadXML(strReturnValue);var objxmlnode_updated_config_cnt=objXmlDoc.selectSingleNode("ALL_DATA/CONFIG_DATA").firstChild;if(objxmlnode_updated_config_cnt.selectSingleNode(".//@ORG_SEARCH_KEY_WORD")!=null){strOrgSearchKeyWord=objxmlnode_updated_config_cnt.selectSingleNode(".//@ORG_SEARCH_KEY_WORD").text}intFirstRecordOnPage=objxmlnode_updated_config_cnt.selectSingleNode(".//@FIRST_RECORD_ON_PAGE").text;intLastRecordOnPage=objxmlnode_updated_config_cnt.selectSingleNode(".//@LAST_RECORD_ON_PAGE").text;var strCurrentSearchKeyWord=objInputTextBox.value;if(strTriggeredVia!=null&&strTriggeredVia=="via_keyin"){if(strOrgSearchKeyWord!=strCurrentSearchKeyWord){return}}if(objXmlDoc.selectSingleNode("ALL_DATA/RESULT_DATA/RS_DATA")==null){strXmlDataList=""}else{strXmlDataList=objXmlDoc.selectSingleNode("ALL_DATA/RESULT_DATA").firstChild.xml}if(blnShowPopupArea){var intLeft,intTop,intWidth,intHeight;var blnShowControlAreaChoosePart=(objActiveElementInfo.choose_type!=0);var blnShowControlAreaSearchPart=(objActiveElementInfo.is_paging==1);if(objInputTextBox!=null){intLeft=HXWWW501.Utility._InternalFunctions._get_element_left(objInputTextBox);intTop=HXWWW501.Utility._InternalFunctions._get_element_top(objInputTextBox)+objInputTextBox.offsetHeight+1;intWidth=(objActiveElementInfo.dropdownbox_width==null?objChooseButton.offsetWidth+HXWWW501.Utility._InternalFunctions._get_element_left(objChooseButton)-HXWWW501.Utility._InternalFunctions._get_element_left(objInputTextBox):objActiveElementInfo.dropdownbox_width)}else{intLeft=HXWWW501.Utility._InternalFunctions._get_element_left(objChooseButton);intTop=HXWWW501.Utility._InternalFunctions._get_element_top(objChooseButton)+objChooseButton.offsetHeight+1;intWidth=(objActiveElementInfo.dropdownbox_width==null?objChooseButton.offsetWidth:objActiveElementInfo.dropdownbox_width)}var int_choose_type=objActiveElementInfo.choose_type;var int_is_paging=objActiveElementInfo.is_paging;if((int_choose_type!=0||int_is_paging==1)&&intWidth<200){intWidth=200}if(int_choose_type!=0&&int_is_paging==1&&intWidth<300){intWidth=300}intHeight=objActiveElementInfo.dropdownbox_height;if(intHeight==null){var intHeightPerLine=19;var intDefaultShowLines=8;var intShowLines=intDefaultShowLines;if(objActiveElementInfo.choose_type==0&&objActiveElementInfo.is_paging==0){var r=strXmlDataList.match(/<RS_ROW/gi);var intDataRowCount=(!r?0:r.length);if(intDataRowCount>0&&intDataRowCount<intDefaultShowLines){intShowLines=intDataRowCount}}intHeight=intShowLines*intHeightPerLine}var intMaxWidth=document.body.scrollLeft+document.body.clientWidth;if(intLeft+intWidth>intMaxWidth){intLeft=intMaxWidth-intWidth}var intMaxHeight=document.body.scrollTop+document.body.clientHeight;if(intTop+intHeight>intMaxHeight){intTop=intMaxHeight-intHeight}HXWWW501._HXWebDataControl_Global._format_display_columns(objActiveElementInfo.columns_width_rate);HXWWW501._HXWebDataControl_Global._show_popup_area(intLeft,intTop,intWidth,intHeight,blnShowControlAreaChoosePart,blnShowControlAreaSearchPart)}HXWWW501._HXWebDataControl_Global._fill_data_content(strXmlDataList,intFirstRecordOnPage,intLastRecordOnPage,strOrgSelectedValues)};HXWWW501.HXWebComboBoxControl._InternalFunctions._update_record_count=function(objActiveElementInfo,objChooseButton,strReturnValue){if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_type!="hxcombobox"){return}if(HXWWW501._HXWebDataControl_Global._current_active_webdatacontrol_dropdownbtn!==objChooseButton){return}HXWWW501._HXWebDataControl_Global._update_record_count(strReturnValue)};HXWWW501.HXWebComboBoxControl._InternalFunctions._search_data_again=function(str_webdatacontrol_id,objInputTextBox,objChooseButton,blnShowMoreContent,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues){var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];HXWWW501.HXWebComboBoxControl._InternalFunctions._internal_search_data(objActiveElementInfo,objInputTextBox,objChooseButton,blnShowMoreContent,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues,false)};HXWWW501.HXWebComboBoxControl._InternalFunctions._internal_search_data=function(objActiveElementInfo,objInputTextBox,objChooseButton,blnShowMoreContent,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues,blnShowPopupArea,strTriggeredVia){var strCustomizedFilterData=HXWWW501.HXWebComboBoxControl._InternalFunctions._get_customized_filter_data(objActiveElementInfo,objInputTextBox,objChooseButton);if(strCustomizedFilterData==null){return}var intNewPageSize=0;if(objActiveElementInfo.is_paging==1){if(blnShowMoreContent){objActiveElementInfo.new_page_size=objActiveElementInfo.new_page_size*2}intNewPageSize=objActiveElementInfo.new_page_size}var fnResponseForDataList=function(strReturnValue){if(strReturnValue==null){return}HXWWW501.HXWebComboBoxControl._InternalFunctions._fill_datalist_content(objActiveElementInfo,objInputTextBox,objChooseButton,strReturnValue,blnShowPopupArea,strOrgSelectedValues,strTriggeredVia);if(objActiveElementInfo.is_paging==1){var fnResponseForRecordCount=function(strReturnValue){if(strReturnValue==null){return}HXWWW501.HXWebComboBoxControl._InternalFunctions._update_record_count(objActiveElementInfo,objChooseButton,strReturnValue)};var strXmlDataForRecordCount=HXWWW501.HXWebComboBoxControl._InternalFunctions._build_pagxmlservice_xmlcontent_getdata(objActiveElementInfo.webdatacontrol_id,0,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues,strCustomizedFilterData,"recordcount",objActiveElementInfo.search_content_type);HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_pagxmlservice_async(strXmlDataForRecordCount,fnResponseForRecordCount)}};if(objActiveElementInfo.is_use_local_list_data==1){HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_local(objActiveElementInfo,0,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues,fnResponseForDataList)}else{var strXmlDataForDataList=HXWWW501.HXWebComboBoxControl._InternalFunctions._build_pagxmlservice_xmlcontent_getdata(objActiveElementInfo.webdatacontrol_id,intNewPageSize,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues,strCustomizedFilterData,"datalist",objActiveElementInfo.search_content_type);HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_pagxmlservice_async(strXmlDataForDataList,fnResponseForDataList)}};HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_local=function(objActiveElementInfo,intRequireRecordsCount,strSearchKeyWord,blnSearchFromBegin,strCurrentSelectedValue,fnResponseForDataList){if(!HXWWW501.Utility._InternalFunctions.is_js_function_defined(objActiveElementInfo.get_local_list_data_callback_func)){alert("Application Error:get_local_list_data_callback_func do not registered!");return}var strContentType=objActiveElementInfo.content_type.toUpperCase();if(strContentType!="DESC"){strContentType="KEY"}var strLocalDropDownXmlListData="";var objLocalDropDownXmlListData=objActiveElementInfo.get_local_list_data_callback_func(objActiveElementInfo.webdatacontrol_id);if(objLocalDropDownXmlListData==null||typeof(objLocalDropDownXmlListData)!="object"){alert("Application Error: get_local_list_data_callback_func() must return valid XML object type!");return}if(objLocalDropDownXmlListData==null||(objLocalDropDownXmlListData.selectSingleNode("//RS_ROW")!=null&&(objLocalDropDownXmlListData.selectSingleNode("//RS_ROW/@IS_CHOOSED")==null||objLocalDropDownXmlListData.selectSingleNode("//RS_ROW/@KEY")==null))){alert('Application Error: get_local_list_data_callback_func() must return a xml object with the format:<RS_DATA><RS_ROW IS_CHOOSED="0" KEY="" DESC="" ... />...</RS_DATA>!');return}if(intRequireRecordsCount==1){if(strCurrentSelectedValue!=null&&strCurrentSelectedValue!=""){if(objLocalDropDownXmlListData.selectSingleNode("//RS_ROW[@KEY='"+HXUtil_MarkXMLSpecialChars(strCurrentSelectedValue)+"']")!=null){var strTemp=objLocalDropDownXmlListData.selectSingleNode("//RS_ROW[@KEY='"+HXUtil_MarkXMLSpecialChars(strCurrentSelectedValue)+"']").xml;strLocalDropDownXmlListData="<RS_DATA>"+strTemp+"</RS_DATA>"}}if(strSearchKeyWord!=null&&strSearchKeyWord!=""){var objXmlNodeList=objLocalDropDownXmlListData.selectNodes("//RS_ROW");for(var i=0;i<objXmlNodeList.length;i++){var strTemp=objXmlNodeList.item(i).selectSingleNode("@"+strContentType).text;if(strTemp.indexOf(strSearchKeyWord)==0){strLocalDropDownXmlListData="<RS_DATA>"+objXmlNodeList.item(i).xml+"</RS_DATA>";break}}}if(fnResponseForDataList!=null){fnResponseForDataList(strLocalDropDownXmlListData)}return strLocalDropDownXmlListData}else{strLocalDropDownXmlListData=objLocalDropDownXmlListData.xml}var strAllXmlData='<ALL_DATA><CONFIG_DATA><RS_DATA><RS_ROW FIRST_RECORD_ON_PAGE="0" LAST_RECORD_ON_PAGE="1" /></RS_DATA></CONFIG_DATA><RESULT_DATA>'+strLocalDropDownXmlListData+"</RESULT_DATA></ALL_DATA>";if(fnResponseForDataList!=null){fnResponseForDataList(strAllXmlData)}return strAllXmlData};HXWWW501.HXWebComboBoxControl._InternalFunctions._get_related_inputbox_object=function(str_webdatacontrol_id,objDropdownButton){return objDropdownButton.parentElement.parentElement.all(str_webdatacontrol_id)};HXWWW501.HXWebComboBoxControl._InternalFunctions._get_related_choosebutton_object=function(str_webdatacontrol_id,objInputTextBox){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return null}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id]){return null}var str_choosebutton_id=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id].choose_button_id;return objInputTextBox.parentElement.parentElement.all(str_choosebutton_id)};HXWWW501.HXWebComboBoxControl._InternalFunctions._data_choosed_process=function(str_webdatacontrol_id,obj_webdatacontrol_inputbox,obj_webdatacontrol_dropdownbtn,objXmlChoosedData){var strSelectedKey="",strSelectedDesc="",strSelectedAttr1="",strSelectedAttr2="",strSelectedAttr3="",strSelectedAttr4="",strSelectedAttr5="";var objXmlNodeList=objXmlChoosedData.selectNodes("//RS_ROW");for(var i=0;i<objXmlNodeList.length;i++){strSelectedKey+=(strSelectedKey!=""?",":"")+objXmlNodeList.item(i).selectSingleNode(".//@KEY").text;strSelectedDesc+=(strSelectedDesc!=""?",":"")+objXmlNodeList.item(i).selectSingleNode(".//@DESC").text;strSelectedAttr1+=(strSelectedAttr1!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_1")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_1").text:"");strSelectedAttr2+=(strSelectedAttr2!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_2")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_2").text:"");strSelectedAttr3+=(strSelectedAttr3!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_3")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_3").text:"");strSelectedAttr4+=(strSelectedAttr4!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_4")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_4").text:"");strSelectedAttr5+=(strSelectedAttr5!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_5")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_5").text:"")}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];var objInputTextBox=HXWWW501.HXWebComboBoxControl._InternalFunctions._get_related_inputbox_object(str_webdatacontrol_id,obj_webdatacontrol_dropdownbtn);var str_binding_datasrc_id=objActiveElementInfo.binding_datasrc_id;if(!str_binding_datasrc_id){if(objInputTextBox!=null){objInputTextBox.value=(objActiveElementInfo.content_type=="key"?strSelectedKey:strSelectedDesc)}}else{var intBindingDataLine=null;if(obj_webdatacontrol_dropdownbtn.recordNumber!=null){intBindingDataLine=obj_webdatacontrol_dropdownbtn.recordNumber-1}HXWWW501.HXWebComboBoxControl._InternalFunctions._set_selected_desc_to_textbox(objActiveElementInfo,objInputTextBox,strSelectedDesc);HXWWW501.HXWebComboBoxControl._InternalFunctions._set_binding_datafields_values(objActiveElementInfo,intBindingDataLine,strSelectedKey,strSelectedDesc,strSelectedAttr1,strSelectedAttr2,strSelectedAttr3,strSelectedAttr4,strSelectedAttr5)}HXWWW501.HXWebComboBoxControl._InternalFunctions._run_datachoosed_callback_function(objActiveElementInfo,objInputTextBox,obj_webdatacontrol_dropdownbtn,objXmlChoosedData)};HXWWW501.HXWebComboBoxControl._InternalFunctions._set_selected_desc_to_textbox=function(objActiveElementInfo,objInputTextBox,strSelectedDesc){if(objInputTextBox!=null&&objActiveElementInfo.content_type=="desc"&&(objActiveElementInfo.binding_datasrc_id==null||objActiveElementInfo.binding_datafld_for_desc=="")){objInputTextBox.value=strSelectedDesc}};HXWWW501.HXWebComboBoxControl._InternalFunctions._set_binding_datafields_values=function(objActiveElementInfo,intBindingDataLine,strSelectedKey,strSelectedDesc,strSelectedAttr1,strSelectedAttr2,strSelectedAttr3,strSelectedAttr4,strSelectedAttr5){var objXmlNodeForKey=null,objXmlNodeForDesc=null,objXmlNodeForAttr1=null,objXmlNodeForAttr2=null,objXmlNodeForAttr3=null,objXmlNodeForAttr4=null,objXmlNodeForAttr5=null;var str_binding_datasrc_id=objActiveElementInfo.binding_datasrc_id;if(!str_binding_datasrc_id){return}var objDataSrc=document.all.item(str_binding_datasrc_id);if(objDataSrc!=null){var intLineNo=intBindingDataLine;var strDataFieldNameForKey=objActiveElementInfo.binding_datafld_for_key;var strDataFieldNameForDesc=objActiveElementInfo.binding_datafld_for_desc;var strDataFieldNameForAttr1=objActiveElementInfo.binding_datafld_for_attr_1;var strDataFieldNameForAttr2=objActiveElementInfo.binding_datafld_for_attr_2;var strDataFieldNameForAttr3=objActiveElementInfo.binding_datafld_for_attr_3;var strDataFieldNameForAttr4=objActiveElementInfo.binding_datafld_for_attr_4;var strDataFieldNameForAttr5=objActiveElementInfo.binding_datafld_for_attr_5;if(strDataFieldNameForKey!=null&&strDataFieldNameForKey!=""){strDataFieldNameForKey=strDataFieldNameForKey.toUpperCase();if(intLineNo!=null){objXmlNodeForKey=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForKey)}else{objXmlNodeForKey=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForKey)}}if(strDataFieldNameForDesc!=null&&strDataFieldNameForDesc!=""){strDataFieldNameForDesc=strDataFieldNameForDesc.toUpperCase();if(intLineNo!=null){objXmlNodeForDesc=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForDesc)}else{objXmlNodeForDesc=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForDesc)}}if(strDataFieldNameForAttr1!=null&&strDataFieldNameForAttr1!=""){strDataFieldNameForAttr1=strDataFieldNameForAttr1.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr1=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr1)}else{objXmlNodeForAttr1=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr1)}}if(strDataFieldNameForAttr2!=null&&strDataFieldNameForAttr2!=""){strDataFieldNameForAttr2=strDataFieldNameForAttr2.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr2=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr2)}else{objXmlNodeForAttr2=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr2)}}if(strDataFieldNameForAttr3!=null&&strDataFieldNameForAttr3!=""){strDataFieldNameForAttr3=strDataFieldNameForAttr3.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr3=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr3)}else{objXmlNodeForAttr3=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr3)}}if(strDataFieldNameForAttr4!=null&&strDataFieldNameForAttr4!=""){strDataFieldNameForAttr4=strDataFieldNameForAttr4.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr4=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr4)}else{objXmlNodeForAttr4=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr4)}}if(strDataFieldNameForAttr5!=null&&strDataFieldNameForAttr5!=""){strDataFieldNameForAttr5=strDataFieldNameForAttr5.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr5=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr5)}else{objXmlNodeForAttr5=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr5)}}}if(objXmlNodeForKey!=null){objXmlNodeForKey.text=strSelectedKey}if(objXmlNodeForDesc!=null){objXmlNodeForDesc.text=strSelectedDesc}if(objXmlNodeForAttr1!=null){objXmlNodeForAttr1.text=strSelectedAttr1}if(objXmlNodeForAttr2!=null){objXmlNodeForAttr2.text=strSelectedAttr2}if(objXmlNodeForAttr3!=null){objXmlNodeForAttr3.text=strSelectedAttr3}if(objXmlNodeForAttr4!=null){objXmlNodeForAttr4.text=strSelectedAttr4}if(objXmlNodeForAttr5!=null){objXmlNodeForAttr5.text=strSelectedAttr5}};HXWWW501.HXWebComboBoxControl._InternalFunctions._run_datachoosed_callback_function=function(objActiveElementInfo,objInputTextBox,objDropdownButton,objXmlChoosedData){var str_webdatacontrol_id=objActiveElementInfo.webdatacontrol_id;if(HXWWW501.Utility._InternalFunctions.is_js_function_defined(objActiveElementInfo.datachoosed_callback_func)){try{objActiveElementInfo.datachoosed_callback_func(str_webdatacontrol_id,objInputTextBox,objDropdownButton,objXmlChoosedData)}catch(e){alert("hxcombobox datachoosed_callback_func call failed. "+e.description);return}}};HXWWW501.HXWebComboBoxControl._InternalFunctions._onbeforeupdateprocess=function(){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objInputTextBox=event.srcElement;var strInputBoxId=objInputTextBox.id;if(!strInputBoxId){return}if(objInputTextBox.readOnly){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId]){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId];var intBindingDataLine=null;if(objInputTextBox.recordNumber!=null){intBindingDataLine=objInputTextBox.recordNumber-1}if(objInputTextBox.value==""){HXWWW501.HXWebComboBoxControl._InternalFunctions._set_binding_datafields_values(objActiveElementInfo,intBindingDataLine,"","","","","","","");HXWWW501.HXWebComboBoxControl._InternalFunctions._run_datachoosed_callback_function(objActiveElementInfo,objInputTextBox,null,null);objInputTextBox.setAttribute("hx_org_value_onfousin",objInputTextBox.value);return}if(!objActiveElementInfo.limit_in_list){objInputTextBox.setAttribute("hx_org_value_onfousin",objInputTextBox.value);return}var strCustomizedFilterData=HXWWW501.HXWebComboBoxControl._InternalFunctions._get_customized_filter_data(objActiveElementInfo,objInputTextBox,null);if(strCustomizedFilterData==null){return}var strReturnValue="";if(objActiveElementInfo.is_use_local_list_data==1){strReturnValue=HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_local(objActiveElementInfo,1,objInputTextBox.value,true,"",null)}else{var blnSearchFromBegin=objActiveElementInfo.is_auto_completion_hint_search_from_begin;var strXmlDataForSingleDataCheck=HXWWW501.HXWebComboBoxControl._InternalFunctions._build_pagxmlservice_xmlcontent_getdata(objActiveElementInfo.webdatacontrol_id,1,objInputTextBox.value,blnSearchFromBegin,"",strCustomizedFilterData,"singledata",objActiveElementInfo.search_content_type);strReturnValue=HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_pagxmlservice(strXmlDataForSingleDataCheck)}if(strReturnValue==null||strReturnValue.indexOf("<RS_ROW")==-1){var strMsg=HXWWW501.XmlService.HXUtil_GetUITextOnServer("WARNING_MSG__HXWWW_HXWEBCOMBOBOX_NO_DATA_FOUND");alert(strMsg);event.returnValue=false;return}var objXmlDoc=new ActiveXObject("Microsoft.XMLDOM");objXmlDoc.async=false;objXmlDoc.loadXML(strReturnValue);var strKey=objXmlDoc.documentElement.selectSingleNode("//@KEY").text;var strDesc=objXmlDoc.documentElement.selectSingleNode("//@DESC").text;var strAttr1=(objXmlDoc.documentElement.selectSingleNode("//@ATTR_1")!=null?objXmlDoc.documentElement.selectSingleNode("//@ATTR_1").text:"");var strAttr2=(objXmlDoc.documentElement.selectSingleNode("//@ATTR_2")!=null?objXmlDoc.documentElement.selectSingleNode("//@ATTR_2").text:"");var strAttr3=(objXmlDoc.documentElement.selectSingleNode("//@ATTR_3")!=null?objXmlDoc.documentElement.selectSingleNode("//@ATTR_3").text:"");var strAttr4=(objXmlDoc.documentElement.selectSingleNode("//@ATTR_4")!=null?objXmlDoc.documentElement.selectSingleNode("//@ATTR_4").text:"");var strAttr5=(objXmlDoc.documentElement.selectSingleNode("//@ATTR_5")!=null?objXmlDoc.documentElement.selectSingleNode("//@ATTR_5").text:"");HXWWW501.HXWebComboBoxControl._InternalFunctions._set_selected_desc_to_textbox(objActiveElementInfo,objInputTextBox,strDesc);HXWWW501.HXWebComboBoxControl._InternalFunctions._set_binding_datafields_values(objActiveElementInfo,intBindingDataLine,strKey,strDesc,strAttr1,strAttr2,strAttr3,strAttr4,strAttr5);objInputTextBox.setAttribute("hx_org_value_onfousin",objInputTextBox.value);HXWWW501.HXWebComboBoxControl._InternalFunctions._run_datachoosed_callback_function(objActiveElementInfo,objInputTextBox,null,objXmlDoc.documentElement)};HXWWW501.HXWebComboBoxControl._InternalFunctions._onkeyup_or_onmouseup_process=function(){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objInputTextBox=event.srcElement;var strInputBoxId=objInputTextBox.id;if(!strInputBoxId){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId]){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId];if(event.type=="keyup"&&(event.keyCode==9||event.keyCode==13||event.keyCode==27)){HXWWW501._HXWebDataControl_Global._hide_popup_area();return}if(objActiveElementInfo.is_use_autocompletion_hint==0){return}if(objActiveElementInfo.choose_type==1){return}if(objInputTextBox.readOnly){return}var objChooseButton=HXWWW501.HXWebComboBoxControl._InternalFunctions._get_related_choosebutton_object(strInputBoxId,objInputTextBox);HXWWW501._HXWebDataControl_Global._set_current_active_control("hxcombobox",strInputBoxId,objInputTextBox,objChooseButton,objActiveElementInfo.choose_type,objActiveElementInfo.is_allow_quick_search_per_char,HXWWW501.HXWebComboBoxControl._InternalFunctions._data_choosed_process,HXWWW501.HXWebComboBoxControl._InternalFunctions._search_data_again);objActiveElementInfo.new_page_size=objActiveElementInfo.page_size;var is_first_time_fousin=objInputTextBox.getAttribute("hx_is_fousin_first_time");objInputTextBox.setAttribute("hx_is_fousin_first_time",0);var strSearchKeyWord=objInputTextBox.value;var blnSearchFromBegin=objActiveElementInfo.is_auto_completion_hint_search_from_begin;if(is_first_time_fousin==1){HXWWW501.HXWebComboBoxControl._InternalFunctions._internal_search_data(objActiveElementInfo,objInputTextBox,objChooseButton,false,"",blnSearchFromBegin,"",true)}else{HXWWW501.HXWebComboBoxControl._InternalFunctions._internal_search_data(objActiveElementInfo,objInputTextBox,objChooseButton,false,strSearchKeyWord,blnSearchFromBegin,"",true,"via_keyin")}};HXWWW501.HXWebComboBoxControl._InternalFunctions._onfocusinprocess=function(){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objInputTextBox=event.srcElement;var strInputBoxId=objInputTextBox.id;if(!strInputBoxId){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId]){return}if(objInputTextBox.dataFld==null||objInputTextBox.dataFld==""){return}objInputTextBox.setAttribute("hx_org_value_onfousin",objInputTextBox.value);objInputTextBox.setAttribute("hx_is_fousin_first_time",1)};HXWWW501.HXWebComboBoxControl._InternalFunctions._onfocusoutprocess=function(){if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info){return}var objInputTextBox=event.srcElement;var strInputBoxId=objInputTextBox.id;if(!strInputBoxId){return}if(!HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId]){return}if(objInputTextBox.dataFld==null||objInputTextBox.dataFld==""){return}if(objInputTextBox.readOnly){return}var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputBoxId];if(!objActiveElementInfo.limit_in_list){return}if(objInputTextBox.getAttribute("hx_org_value_onfousin")!=objInputTextBox.value){objInputTextBox.fireEvent("onbeforeupdate")}};HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_pagxmlservice_async=function(strXmlContent,fnResponse){var strAssemblyName="TrustHX.HXWWW501";var strClassName="TrustHX.HXWWW501.HXWebComboboxControlHelper";HXWWW501.XmlService.HXUtil_CallPageXmlServiceAsync("HXWEBCOMBOBOXCONTROL_GET_DATA_LIST",strXmlContent,fnResponse,strAssemblyName,strClassName)};HXWWW501.HXWebComboBoxControl._InternalFunctions._call_getdatalist_pagxmlservice=function(strXmlContent){var strAssemblyName="TrustHX.HXWWW501";var strClassName="TrustHX.HXWWW501.HXWebComboboxControlHelper";return HXWWW501.XmlService.HXUtil_CallPageXmlService("HXWEBCOMBOBOXCONTROL_GET_DATA_LIST",strXmlContent,strAssemblyName,strClassName)};HXWWW501.HXWebComboBoxControl._InternalFunctions._build_pagxmlservice_xmlcontent_getdata=function(strInputTextBoxId,intNewPageSize,strSearchKeyWord,blnSearchFromBegin,strOrgSelectedValues,strCustomizedFilterData,strReturnDataType,strSearchContentType){var objActiveElementInfo=HXWWW501.HXWebComboBoxControl._InternalFunctions._registed_elements_info[strInputTextBoxId];var strWebDataListPageAssemblyName=(objActiveElementInfo.webdatalist_pagexmlsvc_assemblyname?objActiveElementInfo.webdatalist_pagexmlsvc_assemblyname:mstrPageXmlServiceAssemblyName);var strWebDataListPageClassName=(objActiveElementInfo.webdatalist_pagexmlsvc_classname?objActiveElementInfo.webdatalist_pagexmlsvc_classname:mstrPageXmlServiceClassName);if(objActiveElementInfo.predefined_hxmd_dropdownlist_code!=null&&objActiveElementInfo.predefined_hxmd_dropdownlist_code!=""){strWebDataListPageAssemblyName="TrustHX.HXWWW501";strWebDataListPageClassName="TrustHX.HXWWW501.HXWebComboboxControlHelper_PredefinedDropdownList"}if(strOrgSelectedValues==null){strOrgSelectedValues=""}if(strSearchContentType==null){strSearchContentType=""}if(strCustomizedFilterData==null){strCustomizedFilterData=""}var objSB=new HXWWW501.StringBuilder();objSB.append('<ALL_DATA RETURN_DATA_TYPE="'+strReturnDataType+'"');objSB.append(' ASSEMBLY="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strWebDataListPageAssemblyName)+'"');objSB.append(' CLASS_NAME="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strWebDataListPageClassName)+'"');objSB.append(' HX_WEB_DATA_LIST_TYPE="hxwebcomboboxcontrol"');objSB.append(' HX_WEB_DATA_LIST_CONTROL_ID="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strInputTextBoxId)+'">');objSB.append("<CONFIG_DATA><RS_ROW");objSB.append(' NEW_PAGE_SIZE="'+intNewPageSize+'"');objSB.append(' SEARCH_KEY_WORD="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSearchKeyWord)+'"');objSB.append(' SEARCH_FROM_BEGIN="'+(!blnSearchFromBegin?0:1)+'"');objSB.append(' ORG_SELECTED_VALUES="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strOrgSelectedValues)+'"');objSB.append(' CUSTOMIZED_FILTER_DATA="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strCustomizedFilterData)+'"');objSB.append(' SEARCH_CONTENT_TYPE="'+strSearchContentType+'" /></CONFIG_DATA>');objSB.append("</ALL_DATA>");return objSB.toString()};HXWWW501.HXWebComboBoxControl._InternalFunctions._get_org_selecte_dvalues=function(objActiveElementInfo,objInputTextBox,objDropdownClickButton){var objDataSrc=null;var objXmlNodeForKey=null,objXmlNodeForDesc=null;var strDataSrc=objActiveElementInfo.binding_datasrc_id;if(strDataSrc!=null&&strDataSrc!=""){objDataSrc=eval(strDataSrc);if(objDataSrc!=null){var intLineNo=null;if(objDropdownClickButton.recordNumber!=null){intLineNo=objDropdownClickButton.recordNumber-1}var strDataFieldNameForKey=objActiveElementInfo.binding_datafld_for_key;if(strDataFieldNameForKey!=null&&strDataFieldNameForKey!=""){strDataFieldNameForKey=strDataFieldNameForKey.toUpperCase();if(intLineNo!=null){objXmlNodeForKey=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForKey)}else{objXmlNodeForKey=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForKey)}if(objXmlNodeForKey!=null){return objXmlNodeForKey.text}}}}if(objActiveElementInfo.content_type=="key"&&objInputTextBox!=null){return objInputTextBox.value}return null};HXWWW501.HXWebComboBoxControl._InternalFunctions._onloadprocess=function(){if(document.attachEvent){document.body.attachEvent("onclick",HXWWW501.HXWebComboBoxControl._InternalFunctions._onclickprocess);document.body.attachEvent("onbeforeupdate",HXWWW501.HXWebComboBoxControl._InternalFunctions._onbeforeupdateprocess);document.body.attachEvent("onfocusin",HXWWW501.HXWebComboBoxControl._InternalFunctions._onfocusinprocess);document.body.attachEvent("onfocusout",HXWWW501.HXWebComboBoxControl._InternalFunctions._onfocusoutprocess);document.body.attachEvent("onkeyup",HXWWW501.HXWebComboBoxControl._InternalFunctions._onkeyup_or_onmouseup_process);document.body.attachEvent("onmouseup",HXWWW501.HXWebComboBoxControl._InternalFunctions._onkeyup_or_onmouseup_process)}else{document.body.addEventListener("click",HXWWW501.HXWebComboBoxControl._InternalFunctions._onclickprocess,false);document.body.addEventListener("beforeupdate",HXWWW501.HXWebComboBoxControl._InternalFunctions._onbeforeupdateprocess,false);document.body.addEventListener("focusin",HXWWW501.HXWebComboBoxControl._InternalFunctions._onfocusinprocess,false);document.body.addEventListener("focusout",HXWWW501.HXWebComboBoxControl._InternalFunctions._onfocusoutprocess,false);document.body.addEventListener("keyup",HXWWW501.HXWebComboBoxControl._InternalFunctions._onkeyup_or_onmouseup_process,false);document.body.addEventListener("mouseup",HXWWW501.HXWebComboBoxControl._InternalFunctions._onkeyup_or_onmouseup_process,false)}};HXWWW501.HXWebComboBoxControl._InternalFunctions._registerEventHandler=function(){if(window.attachEvent){window.attachEvent("onload",HXWWW501.HXWebComboBoxControl._InternalFunctions._onloadprocess)}else{window.addEventListener("load",HXWWW501.HXWebComboBoxControl._InternalFunctions._onloadprocess,false)}HXWWW501.HXWebComboBoxControl._InternalFunctions._registerEventHandler=function(){}};HXWWW501.HXWebComboBoxControl._InternalFunctions._registerEventHandler();HXWWW501.HXWebTreeViewControl={};HXWWW501.HXWebTreeViewControl._InternalFunctions={};HXWWW501.HXWebTreeViewControl.register=function(str_treeviewcontrol_id,obj_treeview_container,int_is_show_checkbox,int_is_show_images,int_is_show_root_line,fn_callback,str_dft_node_img_class_name,int_is_show_plusminus){if(obj_treeview_container==null){return}if(int_is_show_checkbox==null||int_is_show_checkbox!=1){int_is_show_checkbox=0}if(int_is_show_images==null||int_is_show_images!=1){int_is_show_images=0}if(int_is_show_root_line==null||int_is_show_root_line!=0){int_is_show_root_line=1}if(int_is_show_plusminus==null||int_is_show_plusminus!=0){int_is_show_plusminus=1}if(str_dft_node_img_class_name==null){str_dft_node_img_class_name="hxicon_folder_closed"}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(!c){var c=new Object();c={treeviewcontrol_id:str_treeviewcontrol_id,is_show_root_line:int_is_show_root_line,is_show_plusminus:int_is_show_plusminus,is_show_checkbox:int_is_show_checkbox,is_show_images:int_is_show_images,dft_node_img_class_name:str_dft_node_img_class_name,node_type_img_class_collection:null,callback_func:fn_callback,treeview_container_object:obj_treeview_container,last_selected_treenode_table:null};HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id]=c}};HXWWW501.HXWebTreeViewControl.set_pagexmlsvc_assembly_and_class=function(str_treeviewcontrol_id,str_pagexmlsvc_assemblyname,str_pagexmlsvc_classname){var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_webdatacontrol_id];objActiveElementInfo.webtreeview_pagexmlsvc_assemblyname=str_pagexmlsvc_assemblyname;objActiveElementInfo.webtreeview_pagexmlsvc_classname=str_pagexmlsvc_classname};HXWWW501.HXWebTreeViewControl.demo_callback_func__all_events=function(str_event_type,obj_current_treenode_data){alert("str_event_type={onhxnodeclicked|onhxcheckstatuschanged|onhxchildnodeinit|onhxcheckstatusafterupdated|onhxtreenode_expanded|onhxtreenode_collapsed}.  obj_current_treenode_data has attributes:treeviewcontrol_id,node_unique_code,node_text,node_level,node_type,node_choose_status,node_hint_desc,node_need_init_children, node_attr_1/2/3/4/5")};HXWWW501.HXWebTreeViewControl.set_image_info=function(str_treeviewcontrol_id,obj_node_type_img_class_collection){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.node_type_img_class_collection=obj_node_type_img_class_collection};HXWWW501.HXWebTreeViewControl.init_root_nodes=function(str_treeviewcontrol_id,int_is_auto_init_nodes){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}if(int_is_auto_init_nodes==null){int_is_auto_init_nodes=1}if(int_is_auto_init_nodes!=0){HXWWW501.HXWebTreeViewControl._InternalFunctions._init_child_nodes(objActiveElementInfo,"","",0,int_is_auto_init_nodes)}};HXWWW501.HXWebTreeViewControl.set_dragdrop_info=function(str_treeviewcontrol_id,int_is_allow_dragdrop,fn_callback_before_ondrop,int_allow_drag_to_root_node){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}if(int_is_allow_dragdrop==null||int_is_allow_dragdrop!=1){int_is_allow_dragdrop=0}if(int_allow_drag_to_root_node==null||int_allow_drag_to_root_node!=1){int_allow_drag_to_root_node=0}objActiveElementInfo.is_allow_dragdrop=int_is_allow_dragdrop;objActiveElementInfo.callback_func_before_ondrop=fn_callback_before_ondrop;objActiveElementInfo.is_allow_drag_to_root_node=int_allow_drag_to_root_node;if(int_is_allow_dragdrop!=0){if(window.attachEvent){objActiveElementInfo.treeview_container_object.attachEvent("ondragstart",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragstart_process,objActiveElementInfo));objActiveElementInfo.treeview_container_object.attachEvent("ondragenter",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragenterandover_process,objActiveElementInfo));objActiveElementInfo.treeview_container_object.attachEvent("ondragover",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragenterandover_process,objActiveElementInfo));objActiveElementInfo.treeview_container_object.attachEvent("ondrop",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondrop_process,objActiveElementInfo))}else{objActiveElementInfo.treeview_container_object.addEventListener("dragstart",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragstart_process,objActiveElementInfo),false);objActiveElementInfo.treeview_container_object.addEventListener("dragenter",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragenterandover_process,objActiveElementInfo),false);objActiveElementInfo.treeview_container_object.addEventListener("dragover",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragenterandover_process,objActiveElementInfo),false);objActiveElementInfo.treeview_container_object.addEventListener("drop",HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebTreeViewControl._InternalFunctions._ondrop_process,objActiveElementInfo),false)}}};HXWWW501.HXWebTreeViewControl.set_filter_data_get_callback=function(str_treeviewcontrol_id,fn_filter_data_callback){if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.filter_data_callback_func=fn_filter_data_callback};HXWWW501.HXWebTreeViewControl.append_node=function(str_treeviewcontrol_id,str_node_unique_code,str_node_text,str_node_hint_desc,str_node_type,str_parent_node_unique_code,str_young_brother_node_unique_code,int_need_init_children,int_is_checked,str_attr_1,str_attr_2,str_attr_3,str_attr_4,str_attr_5){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}var obj_node_table=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);if(obj_node_table!=null){throw"HXWWW501.HXWebTreeViewControl.append_node() Error! the node ("+str_node_unique_code+") you want to append has exist in the treeview.";return}var obj_parent_node_table=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_parent_node_unique_code);var obj_young_brother_node_table=(str_young_brother_node_unique_code==null?null:HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_young_brother_node_unique_code));var objBrotherAndNextNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_brother_and_next_node_object(objActiveElementInfo,obj_parent_node_table,obj_young_brother_node_table);var obj_brother_node_table=(objBrotherAndNextNode==null?null:objBrotherAndNextNode.BrotherNodeTable);var obj_next_node_table=(objBrotherAndNextNode==null?null:objBrotherAndNextNode.NextNodeTable);var intNodeLevel=(str_parent_node_unique_code==null||str_parent_node_unique_code==""?0:parseInt(obj_parent_node_table.getAttribute("node_level"))+1);if(int_need_init_children==null||(int_need_init_children!=1&&int_need_init_children!=2)){int_need_init_children=0}if(int_is_checked==null||int_is_checked!=1){int_is_checked=0}if(str_node_type==null){str_node_type=""}if(str_attr_1!=null&&str_attr_1!=""){str_attr_1=str_attr_1.replace(/\"/g,"&quot;")}if(str_attr_2!=null&&str_attr_2!=""){str_attr_2=str_attr_2.replace(/\"/g,"&quot;")}if(str_attr_3!=null&&str_attr_3!=""){str_attr_3=str_attr_3.replace(/\"/g,"&quot;")}if(str_attr_4!=null&&str_attr_4!=""){str_attr_4=str_attr_4.replace(/\"/g,"&quot;")}if(str_attr_5!=null&&str_attr_5!=""){str_attr_5=str_attr_5.replace(/\"/g,"&quot;")}var objSB_NodeHtml=new HXWWW501.StringBuilder();objSB_NodeHtml.append('<table id=hx_node_table_object  border=0 style="BORDER-COLLAPSE:collapse;" cellSpacing=0 cellPadding=0');objSB_NodeHtml.append(" hx_has_children="+int_need_init_children.toString());objSB_NodeHtml.append(" hx_is_expanded=0");objSB_NodeHtml.append(" hx_choose_status="+int_is_checked.toString());objSB_NodeHtml.append(' hx_parent_node_uuid="'+(str_parent_node_unique_code==null?"":str_parent_node_unique_code)+'"');objSB_NodeHtml.append(' hx_is_need_init_children="'+int_need_init_children.toString()+'"');objSB_NodeHtml.append(' hx_treenode_uuid="'+str_node_unique_code+'"');objSB_NodeHtml.append(' node_level="'+intNodeLevel.toString()+'"');objSB_NodeHtml.append(' hx_node_type="'+str_node_type+'"');objSB_NodeHtml.append(' hx_attr_1="'+str_attr_1+'" hx_attr_2="'+str_attr_2+'" hx_attr_3="'+str_attr_3+'" hx_attr_4="'+str_attr_4+'" hx_attr_5="'+str_attr_5+'"');objSB_NodeHtml.append(" onclick=\"event.cancelBubble=true;HXWWW501.HXWebTreeViewControl.click_node('"+objActiveElementInfo.treeviewcontrol_id+"', '"+str_node_unique_code+"');\" ");objSB_NodeHtml.append("<tr>");objSB_NodeHtml.append(HXWWW501.HXWebTreeViewControl._InternalFunctions._build_prefix_tds_html(objActiveElementInfo,intNodeLevel));objSB_NodeHtml.append(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_checkbox_td_html(objActiveElementInfo,int_is_checked));objSB_NodeHtml.append(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_image_td_html(objActiveElementInfo,str_node_type));objSB_NodeHtml.append(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_content_td_html(objActiveElementInfo,str_node_text,str_node_hint_desc,intNodeLevel));objSB_NodeHtml.append("</tr></table>");var objDivTable=document.createElement("DIV");objDivTable.style.width="100%";objDivTable.style.height="18px";objDivTable.innerHTML=objSB_NodeHtml.toString();if(obj_next_node_table==null){objActiveElementInfo.treeview_container_object.appendChild(objDivTable)}else{objActiveElementInfo.treeview_container_object.insertBefore(objDivTable,obj_next_node_table.parentElement)}HXWWW501.HXWebTreeViewControl._InternalFunctions._process_tree_lines_images(objActiveElementInfo,objDivTable.all("hx_node_table_object"),obj_parent_node_table,obj_brother_node_table,obj_young_brother_node_table);if(int_need_init_children==2){HXWWW501.HXWebTreeViewControl._InternalFunctions._init_child_nodes(objActiveElementInfo,str_node_unique_code,str_node_type,int_is_checked,int_need_init_children)}};HXWWW501.HXWebTreeViewControl.change_node_data=function(str_treeviewcontrol_id,str_node_unique_code,str_node_text,str_node_hint_desc,str_attr_1,str_attr_2,str_attr_3,str_attr_4,str_attr_5){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}var obj_node_table=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);if(obj_node_table==null){throw"HXWWW501.HXWebTreeViewControl.change_node_data() Error! the node ("+str_node_unique_code+") you want to update do not exist in the treeview.";return}if(str_node_text!=null){obj_node_table.all("spn_hx_treenode").innerText=str_node_text}if(str_node_hint_desc!=null){obj_node_table.all("spn_hx_treenode").title=str_node_hint_desc}if(str_attr_1!=null){obj_node_table.setAttribute("hx_attr_1",str_attr_1,0)}if(str_attr_2!=null){obj_node_table.setAttribute("hx_attr_2",str_attr_2,0)}if(str_attr_3!=null){obj_node_table.setAttribute("hx_attr_3",str_attr_3,0)}if(str_attr_4!=null){obj_node_table.setAttribute("hx_attr_4",str_attr_4,0)}if(str_attr_5!=null){obj_node_table.setAttribute("hx_attr_5",str_attr_5,0)}};HXWWW501.HXWebTreeViewControl.clear_nodes=function(str_treeviewcontrol_id){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}objActiveElementInfo.last_selected_treenode_table=null;objActiveElementInfo.treeview_container_object.innerHTML=""};HXWWW501.HXWebTreeViewControl.remove_node=function(str_treeviewcontrol_id,str_node_unique_code){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}var obj_node_table=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);if(obj_node_table==null){return}HXWWW501.HXWebTreeViewControl._InternalFunctions._remove_node_by_object(objActiveElementInfo,obj_node_table)};HXWWW501.HXWebTreeViewControl.click_node=function(str_treeviewcontrol_id,str_node_unique_code,obj_event_src_element){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}var objSrcElement=(obj_event_src_element==null?event.srcElement:obj_event_src_element);var objTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);var intHasChildren=parseInt(objTreeNodeTable.getAttribute("hx_has_children"));var intNeedInitChildren=parseInt(objTreeNodeTable.getAttribute("hx_is_need_init_children"));var intIsExpanded=parseInt(objTreeNodeTable.getAttribute("hx_is_expanded"));var strParentNodeUUID=objTreeNodeTable.getAttribute("hx_parent_node_uuid");var intNodeLevel=parseInt(objTreeNodeTable.getAttribute("node_level"));var strNodeUniqueCode=objTreeNodeTable.getAttribute("hx_treenode_uuid");var strNodeType=objTreeNodeTable.getAttribute("hx_node_type");var intChooseStatus=objTreeNodeTable.getAttribute("hx_choose_status");if(objSrcElement.id=="img_hx_plusminus"){if(intHasChildren==0){return}if(intIsExpanded==0){if(intNeedInitChildren!=0){var blnTempInitResult=HXWWW501.HXWebTreeViewControl._InternalFunctions._init_child_nodes(objActiveElementInfo,strNodeUniqueCode,strNodeType,intChooseStatus,intNeedInitChildren,true);if(blnTempInitResult==false){return}}var objTemp=objTreeNodeTable.parentElement.nextSibling;var intChildCounts=0;while(objTemp!=null&&parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))>intNodeLevel){if(parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))==intNodeLevel+1){objTemp.style.display="";intChildCounts++}objTemp=objTemp.nextSibling}if(intChildCounts>0){objSrcElement.className=objSrcElement.className.replace("plus","minus")}else{objSrcElement.className=objSrcElement.className.replace("_plus","");objTreeNodeTable.setAttribute("hx_has_children",0)}objTreeNodeTable.setAttribute("hx_is_expanded",1);if(objActiveElementInfo.callback_func!=null){var objTempTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTreeNodeTable);blnTempReturnResult=objActiveElementInfo.callback_func("onhxtreenode_expanded",objTempTreeNodeData)}}else{var objTemp=objTreeNodeTable.parentElement.nextSibling;var intChildCounts=0;var intTempNodeLevel=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"));while(objTemp!=null&&intTempNodeLevel>intNodeLevel){objTemp.style.display="none";if(objTemp.all("hx_prefix_td_"+intTempNodeLevel).all("img_hx_plusminus")!=null){objTemp.all("hx_prefix_td_"+intTempNodeLevel).all("img_hx_plusminus").className=objTemp.all("hx_prefix_td_"+intTempNodeLevel).all("img_hx_plusminus").className.replace("_minus","_plus");objTemp.all("hx_node_table_object").setAttribute("hx_is_expanded",0)}if(intTempNodeLevel==intNodeLevel+1){intChildCounts++}objTemp=objTemp.nextSibling;if(objTemp!=null){intTempNodeLevel=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))}}if(intChildCounts>0){objSrcElement.className=objSrcElement.className.replace("minus","plus")}else{objSrcElement.className=objSrcElement.className.replace("_minus","");objTreeNodeTable.setAttribute("hx_has_children",0)}objTreeNodeTable.setAttribute("hx_is_expanded",0);if(objActiveElementInfo.callback_func!=null){var objTempTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTreeNodeTable);blnTempReturnResult=objActiveElementInfo.callback_func("onhxtreenode_collapsed",objTempTreeNodeData)}}}if(objSrcElement.id=="chkbx_hx_treenode"){var blnCurrCheckedStatus=objSrcElement.checked;var blnTempReturnResult=true;if(objActiveElementInfo.callback_func!=null){var objTempTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTreeNodeTable);blnTempReturnResult=objActiveElementInfo.callback_func("onhxcheckstatuschanged",objTempTreeNodeData)}if(blnTempReturnResult==false){objSrcElement.checked=!blnCurrCheckedStatus;return}objSrcElement.checked=blnCurrCheckedStatus;objSrcElement.indeterminat=false;objTreeNodeTable.setAttribute("hx_choose_status",(blnCurrCheckedStatus?1:0));var objTemp=objTreeNodeTable.parentElement.nextSibling;while(objTemp!=null){if(parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))>intNodeLevel){objTemp.all("hx_node_table_object").all("chkbx_hx_treenode").checked=blnCurrCheckedStatus;objTemp.all("hx_node_table_object").all("chkbx_hx_treenode").indeterminat=false;objTemp.all("hx_node_table_object").setAttribute("hx_choose_status",(blnCurrCheckedStatus?1:0))}else{break}objTemp=objTemp.nextSibling}objTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objTreeNodeTable);while(objTemp!=null){var intTempChildNodesChooseStatus=HXWWW501.HXWebTreeViewControl._InternalFunctions._check_child_choose_status(objActiveElementInfo,objTemp);objTemp.all("chkbx_hx_treenode").checked=(intTempChildNodesChooseStatus==0?false:true);objTemp.all("chkbx_hx_treenode").indeterminate=(intTempChildNodesChooseStatus==2?true:false);objTemp.setAttribute("hx_choose_status",intTempChildNodesChooseStatus);objTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objTemp)}if(objActiveElementInfo.callback_func!=null){var objTempTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTreeNodeTable);objActiveElementInfo.callback_func("onhxcheckstatusafterupdated",objTempTreeNodeData)}}if(objSrcElement.id=="img_hx_treenode"||objSrcElement.id=="spn_hx_treenode"){var blnTempReturnResult=true;if(objActiveElementInfo.callback_func!=null){var objTempTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTreeNodeTable);blnTempReturnResult=objActiveElementInfo.callback_func("onhxnodeclicked",objTempTreeNodeData)}if(blnTempReturnResult==false){return}if(objActiveElementInfo.last_selected_treenode_table!=null&&objActiveElementInfo.last_selected_treenode_table.innerHTML!=""){if(parseInt(objActiveElementInfo.last_selected_treenode_table.getAttribute("node_level"))==0){objActiveElementInfo.last_selected_treenode_table.all("spn_hx_treenode").className="hxwebtreeviewcontrol_root_node_normal"}else{objActiveElementInfo.last_selected_treenode_table.all("spn_hx_treenode").className="hxwebtreeviewcontrol_child_node_normal"}}objTreeNodeTable.all("spn_hx_treenode").className=(intNodeLevel==0?"hxwebtreeviewcontrol_root_node_normal":"hxwebtreeviewcontrol_child_node_normal");objActiveElementInfo.last_selected_treenode_table=objTreeNodeTable;if(intHasChildren==1&&objActiveElementInfo.is_auto_expandshrink==1){var objTemp=objTreeNodeTable.all("img_hx_plusminus");if(objTemp!=null){HXWWW501.HXWebTreeViewControl.click_node(str_treeviewcontrol_id,str_node_unique_code,objTemp)}}}};HXWWW501.HXWebTreeViewControl.get_hovering_node_info=function(str_treeviewcontrol_id,obj_event_src_element){if(str_treeviewcontrol_id==null){return null}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return null}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return null}var objSrcElement=(obj_event_src_element==null?event.srcElement:obj_event_src_element);var objTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object_via_event_src_element(objActiveElementInfo,objSrcElement);if(objTreeNodeTable==null){return null}var objNodeTextSpan=objTreeNodeTable.all("spn_hx_treenode");var objResultData=new Object();objResultData.node_unique_code=objTreeNodeTable.getAttribute("hx_treenode_uuid");objResultData.node_text=objNodeTextSpan.innerText;objResultData.node_textarea_pos_left=HXWWW501.Utility._InternalFunctions._get_element_left(objNodeTextSpan);objResultData.node_textarea_pos_right=objResultData.node_textarea_pos_left+objNodeTextSpan.offsetWidth;objResultData.node_textarea_pos_top=HXWWW501.Utility._InternalFunctions._get_element_top(objNodeTextSpan);objResultData.node_textarea_pos_bottom=objResultData.node_textarea_pos_top+objNodeTextSpan.offsetHeight;return objResultData};HXWWW501.HXWebTreeViewControl.get_node_textarea_info_via_code=function(str_treeviewcontrol_id,str_node_unique_code){if(str_treeviewcontrol_id==null){return null}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return null}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];var objTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);if(objTreeNodeTable==null){return null}var objNodeTextSpan=objTreeNodeTable.all("spn_hx_treenode");var objResultData=new Object();objResultData.node_unique_code=objTreeNodeTable.getAttribute("hx_treenode_uuid");objResultData.node_text=objNodeTextSpan.innerText;objResultData.node_textarea_pos_left=HXWWW501.Utility._InternalFunctions._get_element_left(objNodeTextSpan);objResultData.node_textarea_pos_right=objResultData.node_textarea_pos_left+objNodeTextSpan.offsetWidth;objResultData.node_textarea_pos_top=HXWWW501.Utility._InternalFunctions._get_element_top(objNodeTextSpan);objResultData.node_textarea_pos_bottom=objResultData.node_textarea_pos_top+objNodeTextSpan.offsetHeight;return objResultData};HXWWW501.HXWebTreeViewControl._InternalFunctions._init_child_nodes=function(objActiveElementInfo,str_parent_node_unique_code,str_parent_node_type,int_check_status,int_is_auto_init_child,blnIsDirectDataAcquire){if(int_check_status==null){int_check_status=0}if(int_is_auto_init_child==null){int_is_auto_init_child=1}if(blnIsDirectDataAcquire==null){blnIsDirectDataAcquire=false}var fnResponseForDataList=function(strReturnValue){if(strReturnValue==null){return}var objXmlDoc=new ActiveXObject("Microsoft.XMLDOM");objXmlDoc.async=false;objXmlDoc.loadXML(strReturnValue);var objXmlNodeList=objXmlDoc.selectNodes("//RS_ROW");for(var i=0;i<objXmlNodeList.length;i++){var objTempXmlNode=objXmlNodeList.item(i);var strAttr1=(objTempXmlNode.selectSingleNode("@ATTR_1")==null?"":objTempXmlNode.selectSingleNode("@ATTR_1").text);var strAttr2=(objTempXmlNode.selectSingleNode("@ATTR_2")==null?"":objTempXmlNode.selectSingleNode("@ATTR_2").text);var strAttr3=(objTempXmlNode.selectSingleNode("@ATTR_3")==null?"":objTempXmlNode.selectSingleNode("@ATTR_3").text);var strAttr4=(objTempXmlNode.selectSingleNode("@ATTR_4")==null?"":objTempXmlNode.selectSingleNode("@ATTR_4").text);var strAttr5=(objTempXmlNode.selectSingleNode("@ATTR_5")==null?"":objTempXmlNode.selectSingleNode("@ATTR_5").text);HXWWW501.HXWebTreeViewControl.append_node(objActiveElementInfo.treeviewcontrol_id,objTempXmlNode.selectSingleNode("@NODE_UNIQUE_CODE").text,objTempXmlNode.selectSingleNode("@NODE_TEXT").text,objTempXmlNode.selectSingleNode("@NODE_DESC").text,objTempXmlNode.selectSingleNode("@NODE_TYPE").text,str_parent_node_unique_code,"",int_is_auto_init_child,int_check_status,strAttr1,strAttr2,strAttr3,strAttr4,strAttr5)}if(str_parent_node_unique_code!=null&&str_parent_node_unique_code!=""){var objTreeNodeTableTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_parent_node_unique_code);if(objTreeNodeTableTemp!=null){objTreeNodeTableTemp.setAttribute("hx_is_need_init_children",0);if(objActiveElementInfo.callback_func!=null){var objTempTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTreeNodeTableTemp);objActiveElementInfo.callback_func("onhxchildnodeinit",objTempTreeNodeData)}}}};var strCustomizedFilterData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_customized_filter_data(objActiveElementInfo);var strXmlDataForDataAcquire=HXWWW501.HXWebTreeViewControl._InternalFunctions._build_pagxmlservice_xmlcontent_getdata(objActiveElementInfo,str_parent_node_unique_code,str_parent_node_type,strCustomizedFilterData);if(blnIsDirectDataAcquire==true){var strReturnValue=HXWWW501.HXWebTreeViewControl._InternalFunctions._call_gettreeviewdata_pagxmlservice(strXmlDataForDataAcquire);if(strReturnValue==null){return false}fnResponseForDataList(strReturnValue);return true}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._call_gettreeviewdata_pagxmlservice_async(strXmlDataForDataAcquire,fnResponseForDataList);return null}};HXWWW501.HXWebTreeViewControl.select_node=function(str_treeviewcontrol_id,str_node_unique_code){if(str_treeviewcontrol_id==null){return}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return}var objTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);var obj_event_src_element=objTreeNodeTable.all("spn_hx_treenode");HXWWW501.HXWebTreeViewControl.click_node(str_treeviewcontrol_id,str_node_unique_code,obj_event_src_element)};HXWWW501.HXWebTreeViewControl.get_parent_node_unique_code=function(str_treeviewcontrol_id,str_node_unique_code){if(str_treeviewcontrol_id==null){return null}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return null}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return null}var objTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,str_node_unique_code);if(objTreeNodeTable==null){return null}var objParentTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objTreeNodeTable);if(objParentTreeNodeTable==null){return null}return objParentTreeNodeTable.getAttribute("hx_treenode_uuid")};HXWWW501.HXWebTreeViewControl.get_last_selected_node_unique_code=function(str_treeviewcontrol_id){if(str_treeviewcontrol_id==null){return null}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return null}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return null}if(objActiveElementInfo.last_selected_treenode_table!=null){return objActiveElementInfo.last_selected_treenode_table.all("hx_treenode_uuid")}return null};HXWWW501.HXWebTreeViewControl.get_choosed_nodes=function(str_treeviewcontrol_id,int_choose_return_value_option){if(str_treeviewcontrol_id==null){return null}if(!HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info){return null}var objActiveElementInfo=HXWWW501.HXWebTreeViewControl._InternalFunctions._registed_elements_info[str_treeviewcontrol_id];if(objActiveElementInfo==null){return null}if(int_choose_return_value_option==null){int_choose_return_value_option=3}var objtablelist=objActiveElementInfo.treeview_container_object.all("hx_node_table_object");if(objtablelist==null){return""}var objTreeNodeTable="",strUUID="",intNodeLevel;var objSB_Temp=new HXWWW501.StringBuilder();objSB_Temp.append("<SELECTED_NODES>");if(objtablelist.length==null){if(objtablelist.getAttribute("hx_choose_status")!=0){objTreeNodeTable=objtablelist;strUUID=objTreeNodeTable.getAttribute("hx_treenode_uuid");objSB_Temp.append("<RS_ROW");objSB_Temp.append(' UUID="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strUUID)+'"');objSB_Temp.append(' CHOOSE_STATUS="'+objTreeNodeTable.getAttribute("hx_choose_status")+'"');objSB_Temp.append(' NODE_LEVEL="'+objTreeNodeTable.getAttribute("node_level")+'"');objSB_Temp.append(' NODE_TYPE="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_node_type"))+'"');objSB_Temp.append(' KEY="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strUUID)+'"');objSB_Temp.append(' DESC="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.all("spn_hx_treenode").innerText)+'"');objSB_Temp.append(' ATTR_1="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_1"))+'"');objSB_Temp.append(' ATTR_2="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_2"))+'"');objSB_Temp.append(' ATTR_3="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_3"))+'"');objSB_Temp.append(' ATTR_4="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_4"))+'"');objSB_Temp.append(' ATTR_5="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_5"))+'"');objSB_Temp.append(" /></SELECTED_NODES>");return objSB_Temp.toString()}else{return""}}for(var i=0;i<objtablelist.length;i++){var objTreeNodeTable=objtablelist[i];if(objTreeNodeTable.getAttribute("hx_choose_status")!=0){strUUID=objTreeNodeTable.getAttribute("hx_treenode_uuid");if(int_choose_return_value_option==1){if(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_firstchild_node_object(objActiveElementInfo,objTreeNodeTable)!=null){continue}}if(int_choose_return_value_option==2){if(objTreeNodeTable.getAttribute("hx_choose_status")==2){continue}}objSB_Temp.append("<RS_ROW");objSB_Temp.append(' UUID="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strUUID)+'"');objSB_Temp.append(' CHOOSE_STATUS="'+objTreeNodeTable.getAttribute("hx_choose_status")+'"');objSB_Temp.append(' NODE_LEVEL="'+objTreeNodeTable.getAttribute("node_level")+'"');objSB_Temp.append(' NODE_TYPE="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_node_type"))+'"');objSB_Temp.append(' KEY="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strUUID)+'"');objSB_Temp.append(' DESC="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.all("spn_hx_treenode").innerText)+'"');objSB_Temp.append(' ATTR_1="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_1"))+'"');objSB_Temp.append(' ATTR_2="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_2"))+'"');objSB_Temp.append(' ATTR_3="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_3"))+'"');objSB_Temp.append(' ATTR_4="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_4"))+'"');objSB_Temp.append(' ATTR_5="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objTreeNodeTable.getAttribute("hx_attr_5"))+'"');objSB_Temp.append(" />")}}objSB_Temp.append("</SELECTED_NODES>");var strTempXmlResult=objSB_Temp.toString();if(strTempXmlResult=="<SELECTED_NODES></SELECTED_NODES>"){return""}else{return strTempXmlResult}};HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragstart_process=function(objActiveElementInfo){if(objActiveElementInfo==null){return}var objDragSourceNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object_via_event_src_element(objActiveElementInfo,event.srcElement);if(objDragSourceNodeTable==null){return}var objSB=new HXWWW501.StringBuilder();objSB.append("HXWWW501_hxwebtreeviewcontrol;");objSB.append(objActiveElementInfo.treeviewcontrol_id+";");objSB.append(objDragSourceNodeTable.getAttribute("hx_treenode_uuid")+";");objSB.append(objDragSourceNodeTable.getAttribute("hx_node_type")+";");event.dataTransfer.setData("Text",objSB.toString());event.dataTransfer.effectAllowed="move"};HXWWW501.HXWebTreeViewControl._InternalFunctions._ondragenterandover_process=function(objActiveElementInfo){if(objActiveElementInfo==null){return}var objDragTargetNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object_via_event_src_element(objActiveElementInfo,event.srcElement);if(objDragTargetNodeTable==null){return}var strDragDropData=event.dataTransfer.getData("Text");if(strDragDropData==null){return}var strArrayDragSrcNodeInfo=strDragDropData.split(";");if(strArrayDragSrcNodeInfo[0]!="HXWWW501_hxwebtreeviewcontrol"||strArrayDragSrcNodeInfo[1]!=objActiveElementInfo.treeviewcontrol_id){event.returnValue=false;event.dataTransfer.dropEffect="move";return}var strDragSrcNode_Code=strArrayDragSrcNodeInfo[2];var strDragSrcNode_Type=strArrayDragSrcNodeInfo[3];var strDragTargetNode_Code=objDragTargetNodeTable.getAttribute("hx_treenode_uuid");var strDragTargetNode_Type=objDragTargetNodeTable.getAttribute("hx_node_type");var objSrcNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,strDragSrcNode_Code);var objTgtNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,strDragTargetNode_Code);var blnIsAllowDrop=false;if(HXWWW501.HXWebTreeViewControl._InternalFunctions._is_descendent_node(objActiveElementInfo,objTgtNodeTable,objSrcNodeTable)){blnIsAllowDrop=false}else{if(strDragSrcNode_Type==""&&strDragTargetNode_Type==""){if(objTgtNodeTable.getAttribute("node_level")=="0"&&objActiveElementInfo.is_allow_drag_to_root_node==0){blnIsAllowDrop=false}else{blnIsAllowDrop=true}}if(strDragSrcNode_Type!=""&&strDragTargetNode_Type!=""){if(strDragSrcNode_Type==strDragTargetNode_Type){blnIsAllowDrop=true}else{if(objSrcNodeTable!=null){var objNodeTable_ParentOfSrcNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objSrcNodeTable);if(objNodeTable_ParentOfSrcNode!=null){if(objNodeTable_ParentOfSrcNode.getAttribute("hx_node_type")==strDragTargetNode_Type){blnIsAllowDrop=true}}}}}}if(blnIsAllowDrop){event.returnValue=false;event.dataTransfer.dropEffect="move"}};HXWWW501.HXWebTreeViewControl._InternalFunctions._ondrop_process=function(objActiveElementInfo){if(objActiveElementInfo==null){return}var objDragTargetNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object_via_event_src_element(objActiveElementInfo,event.srcElement);if(objDragTargetNodeTable==null){return}var objDragTargetTreeNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objDragTargetNodeTable);var strDragTargetNode_TreeViewControlId=objDragTargetTreeNodeData.treeviewcontrol_id;var strDragTargetNode_Code=objDragTargetTreeNodeData.node_unique_code;var strDragTargetNode_Type=objDragTargetTreeNodeData.node_type;var strDragDropData=event.dataTransfer.getData("Text");if(strDragDropData==null){return}var strArrayDragSrcNodeInfo=strDragDropData.split(";");if(strArrayDragSrcNodeInfo[0]!="HXWWW501_hxwebtreeviewcontrol"||strArrayDragSrcNodeInfo[1]!=objActiveElementInfo.treeviewcontrol_id){if(objActiveElementInfo.callback_func_before_ondrop!=null){objActiveElementInfo.callback_func_before_ondrop(strDragDropData,objDragTargetTreeNodeData)}return}var strDragSrcNode_Code=strArrayDragSrcNodeInfo[2];var strDragSrcNode_Type=strArrayDragSrcNodeInfo[3];var intNodeMoveStyle=0;var objTgtNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,strDragTargetNode_Code);var objSrcNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object(objActiveElementInfo,strDragSrcNode_Code);if(HXWWW501.HXWebTreeViewControl._InternalFunctions._is_descendent_node(objActiveElementInfo,objTgtNodeTable,objSrcNodeTable)){return}if(strDragSrcNode_Type==""&&strDragTargetNode_Type==""){intNodeMoveStyle=1;if(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objSrcNodeTable)===objTgtNodeTable){intNodeMoveStyle=2}}if(strDragSrcNode_Type!=""&&strDragTargetNode_Type!=""){if(strDragSrcNode_Type==strDragTargetNode_Type){intNodeMoveStyle=2;if(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,objTgtNodeTable)===objSrcNodeTable){intNodeMoveStyle=0}}else{intNodeMoveStyle=0;var objNodeTable_ParentOfSrcNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objSrcNodeTable);if(objNodeTable_ParentOfSrcNode!=null){if(objNodeTable_ParentOfSrcNode.getAttribute("hx_node_type")==strDragTargetNode_Type){intNodeMoveStyle=1}}}}if(intNodeMoveStyle==0){return}if(objActiveElementInfo.callback_func_before_ondrop!=null){var blnTempReturnResult=objActiveElementInfo.callback_func_before_ondrop(strDragDropData,objDragTargetTreeNodeData);if(blnTempReturnResult==false){return}}var int_drag_src_node_level=parseInt(objSrcNodeTable.getAttribute("node_level"));var strTemp_ParentNodeUniqueCode,strTemp_YoungBrotherNodeUniqueCode;if(intNodeMoveStyle==1){strTemp_ParentNodeUniqueCode=strDragTargetNode_Code;var objTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_firstchild_node_object(objActiveElementInfo,objTgtNodeTable);strTemp_YoungBrotherNodeUniqueCode=(objTemp!=null?objTemp.getAttribute("hx_treenode_uuid"):"")}else{var objTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objTgtNodeTable);strTemp_ParentNodeUniqueCode=(objTemp!=null?objTemp.getAttribute("hx_treenode_uuid"):"");objTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,objTgtNodeTable);strTemp_YoungBrotherNodeUniqueCode=(objTemp!=null?objTemp.getAttribute("hx_treenode_uuid"):"")}var arrTempNodeDataForMove=new Array();var arrTempNodeParentUniqueCode=new Array();var arrTempNodeYoungBrotherUniqueCode=new Array();var objTempNodeTable=objSrcNodeTable;while(objTempNodeTable!=null){var objTempNodeData=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data(objActiveElementInfo,objTempNodeTable);arrTempNodeDataForMove[objTempNodeData.node_unique_code]=objTempNodeData;arrTempNodeParentUniqueCode[objTempNodeData.node_unique_code]=strTemp_ParentNodeUniqueCode;arrTempNodeYoungBrotherUniqueCode[objTempNodeData.node_unique_code]=strTemp_YoungBrotherNodeUniqueCode;objTempNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_next_node_object(objActiveElementInfo,objTempNodeTable);if(objTempNodeTable==null){break}if(parseInt(objTempNodeTable.getAttribute("node_level"))<=int_drag_src_node_level){break}var objTemp=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objTempNodeTable);strTemp_ParentNodeUniqueCode=(objTemp!=null?objTemp.getAttribute("hx_treenode_uuid"):"");strTemp_YoungBrotherNodeUniqueCode=""}HXWWW501.HXWebTreeViewControl._InternalFunctions._remove_node_by_object(objActiveElementInfo,objSrcNodeTable);for(var strTempNodeUniqueCode in arrTempNodeDataForMove){var objTempNodeData=arrTempNodeDataForMove[strTempNodeUniqueCode];strTemp_ParentNodeUniqueCode=arrTempNodeParentUniqueCode[strTempNodeUniqueCode];strTemp_YoungBrotherNodeUniqueCode=arrTempNodeYoungBrotherUniqueCode[strTempNodeUniqueCode];HXWWW501.HXWebTreeViewControl.append_node(objActiveElementInfo.treeviewcontrol_id,objTempNodeData.node_unique_code,objTempNodeData.node_text,objTempNodeData.node_hint_desc,objTempNodeData.node_type,strTemp_ParentNodeUniqueCode,strTemp_YoungBrotherNodeUniqueCode,objTempNodeData.node_need_init_children,(objTempNodeData.node_choose_status==0?false:true))}};HXWWW501.HXWebTreeViewControl._InternalFunctions._is_descendent_node=function(objActiveElementInfo,objNodeTable1,objNodeTable2){var intCurrentNodeLevelNo=parseInt(objNodeTable2.getAttribute("node_level"));var objTempTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_next_node_object(objActiveElementInfo,objNodeTable2);var intTempLevelNo;while(objTempTreeNodeTable!=null){intTempLevelNo=parseInt(objTempTreeNodeTable.getAttribute("node_level"));if(intTempLevelNo<=intCurrentNodeLevelNo){return false}if(objTempTreeNodeTable===objNodeTable1){return true}objTempTreeNodeTable=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_next_node_object(objActiveElementInfo,objTempTreeNodeTable)}return false};HXWWW501.HXWebTreeViewControl._InternalFunctions._remove_node_by_object=function(objActiveElementInfo,obj_node_table){if(obj_node_table==null){return}var intNodeLevel;var objTemp;var objTempOld,strNode_UUID_Temp;var intTempNodeLevel;intNodeLevel=parseInt(obj_node_table.getAttribute("node_level"));var strLastSelectedNodeUUID="";if(objActiveElementInfo.last_selected_treenode_table!=null){strLastSelectedNodeUUID=objActiveElementInfo.last_selected_treenode_table.getAttribute("hx_treenode_uuid");if(obj_node_table.getAttribute("hx_treenode_uuid")==strLastSelectedNodeUUID){objActiveElementInfo.last_selected_treenode_table=null}}objTemp=obj_node_table.parentElement.nextSibling;while(objTemp!=null){intTempNodeLevel=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"));if(intTempNodeLevel<=intNodeLevel){break}strNode_UUID_Temp=objTemp.all("hx_node_table_object").getAttribute("hx_treenode_uuid");if(strNode_UUID_Temp==strLastSelectedNodeUUID){objActiveElementInfo.last_selected_treenode_table=null}objTempOld=objTemp;objTemp=objTemp.nextSibling;objTempOld.removeNode(true)}var blnIsNodeLastChild=(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,obj_node_table)==null?true:false);if(blnIsNodeLastChild==true){objTemp=obj_node_table.parentElement.previousSibling;if(objTemp!=null){intTempNodeLevel=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"));if(intTempNodeLevel>=intNodeLevel){if(intTempNodeLevel>intNodeLevel){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),intNodeLevel,-1);objTemp=objTemp.previousSibling;intTempNodeLevel=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"));while(intTempNodeLevel>intNodeLevel){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),intNodeLevel,-1);objTemp=objTemp.previousSibling;intTempNodeLevel=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))}}if(intNodeLevel==0){if(objTemp.previousSibling!=null){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),intNodeLevel,3)}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),0,0)}}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),intNodeLevel,3)}}}}var objTempNodeDivArea_PreviousSiblingOfRemovedNode=obj_node_table.parentElement.previousSibling;var objTempNodeDivArea_NextSiblingOfRemovedNode=obj_node_table.parentElement.nextSibling;obj_node_table.parentElement.removeNode(true);if(objTempNodeDivArea_PreviousSiblingOfRemovedNode!=null){if(parseInt(objTempNodeDivArea_PreviousSiblingOfRemovedNode.all("hx_node_table_object").getAttribute("node_level"))==intNodeLevel-1){if(objTempNodeDivArea_NextSiblingOfRemovedNode==null||parseInt(objTempNodeDivArea_NextSiblingOfRemovedNode.all("hx_node_table_object").getAttribute("node_level"))<intNodeLevel){objTableParentTreeNode=objTempNodeDivArea_PreviousSiblingOfRemovedNode.all("hx_node_table_object");objTableParentTreeNode.setAttribute("hx_has_children",0);var objTempTableParentTreeNodeOfParent=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object(objActiveElementInfo,objTableParentTreeNode);var objTableYongBrotherNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,objTableParentTreeNode);HXWWW501.HXWebTreeViewControl._InternalFunctions._process_tree_lines_images(objActiveElementInfo,objTableParentTreeNode,objTempTableParentTreeNodeOfParent,null,objTableYongBrotherNode)}}}else{if(objTempNodeDivArea_NextSiblingOfRemovedNode!=null){var objTableNextYongBrotherRootNode=objTempNodeDivArea_NextSiblingOfRemovedNode.all("hx_node_table_object");var objTableYongBrotherNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,objTableNextYongBrotherRootNode);HXWWW501.HXWebTreeViewControl._InternalFunctions._process_tree_lines_images(objActiveElementInfo,objTableNextYongBrotherRootNode,null,null,objTableYongBrotherNode)}}};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_data=function(objActiveElementInfo,objTreeNodeTable){if(objActiveElementInfo==null||objTreeNodeTable==null){return null}var objData=new Object();objData.treeviewcontrol_id=objActiveElementInfo.treeviewcontrol_id;objData.node_unique_code=objTreeNodeTable.getAttribute("hx_treenode_uuid");objData.node_text=objTreeNodeTable.all("spn_hx_treenode").innerText;objData.node_level=parseInt(objTreeNodeTable.getAttribute("node_level"));objData.node_type=objTreeNodeTable.getAttribute("hx_node_type");objData.node_choose_status=objTreeNodeTable.getAttribute("hx_choose_status");objData.node_hint_desc=objTreeNodeTable.all("spn_hx_treenode").title;objData.node_need_init_children=objTreeNodeTable.getAttribute("hx_is_need_init_children");objData.node_attr_1=objTreeNodeTable.getAttribute("hx_attr_1");objData.node_attr_2=objTreeNodeTable.getAttribute("hx_attr_2");objData.node_attr_3=objTreeNodeTable.getAttribute("hx_attr_3");objData.node_attr_4=objTreeNodeTable.getAttribute("hx_attr_4");objData.node_attr_5=objTreeNodeTable.getAttribute("hx_attr_5");return objData};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object_via_event_src_element=function(objActiveElementInfo,objEventSrcElement){var strEventSrcElementId=objEventSrcElement.id;if(strEventSrcElementId==null){return null}var objNodeTable=null;if(strEventSrcElementId=="img_hx_treenode"||strEventSrcElementId=="spn_hx_treenode"){objNodeTable=objEventSrcElement.parentElement.parentElement.parentElement.parentElement}if(strEventSrcElementId=="hx_img_line_td"||strEventSrcElementId=="hx_content_line_td"){objNodeTable=objEventSrcElement.parentElement.parentElement.parentElement}if(objNodeTable!=null){if(objNodeTable.parentElement.parentElement!==objActiveElementInfo.treeview_container_object){objNodeTable=null}}return objNodeTable};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_treenode_table_object=function(objActiveElementInfo,str_node_unique_code){var obj_node_table=null;if(str_node_unique_code==null||str_node_unique_code==""){return null}var objtablelist=objActiveElementInfo.treeview_container_object.all("hx_node_table_object");if(objtablelist==null){return null}if(objtablelist.length==null){if(objtablelist.getAttribute("hx_treenode_uuid")!=str_node_unique_code){return null}obj_node_table=objtablelist}else{for(var i=0;i<objtablelist.length;i++){if(objtablelist[i].getAttribute("hx_treenode_uuid")==str_node_unique_code){obj_node_table=objtablelist[i];break}}if(i>=objtablelist.length){return null}}return obj_node_table};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_old_brother_node_object=function(objActiveElementInfo,obj_node_table){var intCurrentNodeLevelNo=parseInt(obj_node_table.getAttribute("node_level"));var objTempTreeNodeDivArea=obj_node_table.parentElement.previousSibling;var intTempLevelNo;while(objTempTreeNodeDivArea!=null){intTempLevelNo=parseInt(objTempTreeNodeDivArea.all("hx_node_table_object").getAttribute("node_level"));if(intTempLevelNo==intCurrentNodeLevelNo){return objTempTreeNodeDivArea.all("hx_node_table_object")}if(intTempLevelNo<intCurrentNodeLevelNo){return null}objTempTreeNodeDivArea=objTempTreeNodeDivArea.previousSibling}return null};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object=function(objActiveElementInfo,obj_brother_node_table){var intCurrentNodeLevelNo=parseInt(obj_brother_node_table.getAttribute("node_level"));var objTempTreeNodeDivArea=obj_brother_node_table.parentElement.nextSibling;var intTempLevelNo;while(objTempTreeNodeDivArea!=null){intTempLevelNo=parseInt(objTempTreeNodeDivArea.all("hx_node_table_object").getAttribute("node_level"));if(intTempLevelNo==intCurrentNodeLevelNo){return objTempTreeNodeDivArea.all("hx_node_table_object")}if(intTempLevelNo<intCurrentNodeLevelNo){return null}objTempTreeNodeDivArea=objTempTreeNodeDivArea.nextSibling}return null};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_parent_node_object=function(objActiveElementInfo,obj_treenode_table){var intCurrentNodeLevelNo=parseInt(obj_treenode_table.getAttribute("node_level"));var objTempTreeNodeDivArea=obj_treenode_table.parentElement.previousSibling;var intTempLevelNo;while(objTempTreeNodeDivArea!=null){intTempLevelNo=parseInt(objTempTreeNodeDivArea.all("hx_node_table_object").getAttribute("node_level"));if(intTempLevelNo==intCurrentNodeLevelNo-1){return objTempTreeNodeDivArea.all("hx_node_table_object")}objTempTreeNodeDivArea=objTempTreeNodeDivArea.previousSibling}return null};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_firstchild_node_object=function(objActiveElementInfo,obj_treenode_table){var intCurrentNodeLevelNo=parseInt(obj_treenode_table.getAttribute("node_level"));var objTempTreeNodeDivArea=obj_treenode_table.parentElement.nextSibling;var intTempLevelNo;if(objTempTreeNodeDivArea!=null){intTempLevelNo=parseInt(objTempTreeNodeDivArea.all("hx_node_table_object").getAttribute("node_level"));if(intTempLevelNo==intCurrentNodeLevelNo+1){return objTempTreeNodeDivArea.all("hx_node_table_object")}}return null};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_previous_node_object=function(objActiveElementInfo,obj_treenode_table){var objTempTreeNodeDivArea=obj_treenode_table.parentElement.previousSibling;if(objTempTreeNodeDivArea==null){return null}return objTempTreeNodeDivArea.all("hx_node_table_object")};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_next_node_object=function(objActiveElementInfo,obj_treenode_table){var objTempTreeNodeDivArea=obj_treenode_table.parentElement.nextSibling;if(objTempTreeNodeDivArea==null){return null}return objTempTreeNodeDivArea.all("hx_node_table_object")};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_brother_and_next_node_object=function(objActiveElementInfo,obj_parent_node_table,obj_young_brother_node_table){var objBrotherAndNextNode=new Object();if(obj_parent_node_table==null){if(obj_young_brother_node_table!=null){if(parseInt(obj_young_brother_node_table.getAttribute("node_level"))!=0){obj_young_brother_node_table=null}}var objTempTreeNodeDivArea;if(obj_young_brother_node_table==null){objTempTreeNodeDivArea=objActiveElementInfo.treeview_container_object.lastChild;if(objTempTreeNodeDivArea==null){return null}}else{objTempTreeNodeDivArea=obj_young_brother_node_table.parentElement.previousSibling;if(objTempTreeNodeDivArea==null){objBrotherAndNextNode.BrotherNodeTable=null;objBrotherAndNextNode.NextNodeTable=obj_young_brother_node_table;return objBrotherAndNextNode}}while(objTempTreeNodeDivArea!=null){if(parseInt(objTempTreeNodeDivArea.all("hx_node_table_object").getAttribute("node_level"))==0){objBrotherAndNextNode.BrotherNodeTable=objTempTreeNodeDivArea.all("hx_node_table_object");objBrotherAndNextNode.NextNodeTable=obj_young_brother_node_table;return objBrotherAndNextNode}objTempTreeNodeDivArea=objTempTreeNodeDivArea.previousSibling}}else{var intParentNodeLevel=parseInt(obj_parent_node_table.getAttribute("node_level"));if(obj_young_brother_node_table!=null&&parseInt(obj_young_brother_node_table.getAttribute("node_level"))!=intParentNodeLevel+1){obj_young_brother_node_table=null}var objTemp=obj_parent_node_table.parentElement.nextSibling;var objLastBrotherNodeArea=null;var objNextTreeNodeArea=null;if(objTemp!=null&&parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))<=intParentNodeLevel){objBrotherAndNextNode.BrotherNodeTable=null;objBrotherAndNextNode.NextNodeTable=objTemp.all("hx_node_table_object");return objBrotherAndNextNode}while(objTemp!=null&&parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))>intParentNodeLevel){if(parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))==intParentNodeLevel+1){if(objTemp.all("hx_node_table_object")!=obj_young_brother_node_table){objLastBrotherNodeArea=objTemp}else{objNextTreeNodeArea=obj_young_brother_node_table.parentElement;break}}objTemp=objTemp.nextSibling;if(objNextTreeNodeArea==null&&objTemp!=null&&parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"))<=intParentNodeLevel){objNextTreeNodeArea=objTemp}}if(objLastBrotherNodeArea==null){objBrotherAndNextNode.BrotherNodeTable=null}else{objBrotherAndNextNode.BrotherNodeTable=objLastBrotherNodeArea.all("hx_node_table_object")}if(objNextTreeNodeArea==null){objBrotherAndNextNode.NextNodeTable=null}else{objBrotherAndNextNode.NextNodeTable=objNextTreeNodeArea.all("hx_node_table_object")}return objBrotherAndNextNode}};HXWWW501.HXWebTreeViewControl._InternalFunctions._check_child_choose_status=function(objActiveElementInfo,obj_treenode_table){var intChildNodesCount=0,intChoosedNodesCount=0;var objTempNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_firstchild_node_object(objActiveElementInfo,obj_treenode_table);while(objTempNode!=null){intChildNodesCount++;if(parseInt(objTempNode.getAttribute("hx_choose_status"))>0){intChoosedNodesCount++}objTempNode=HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,objTempNode)}if(intChoosedNodesCount==0){if(intChildNodesCount>0){return 0}else{return -1}}if(intChoosedNodesCount>0){if(intChoosedNodesCount==intChildNodesCount){return 1}else{return 2}}return 0};HXWWW501.HXWebTreeViewControl._InternalFunctions._build_prefix_tds_html=function(objActiveElementInfo,int_node_level){var objSB_TD_HTML=new HXWWW501.StringBuilder();for(var i=(objActiveElementInfo.is_show_root_line==1?0:1);i<=int_node_level;i++){objSB_TD_HTML.append("<td id=hx_prefix_td_"+i);objSB_TD_HTML.append(' style=\'width:17px;height:18px\'><img id=hx_tree_img src="../images/hxpub_clear.gif" style="width:17px;height:18px;" /></td>')}return objSB_TD_HTML.toString()};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_checkbox_td_html=function(objActiveElementInfo,int_is_checked){if(objActiveElementInfo.is_show_checkbox==0){return""}var objSB_TD_HTML=new HXWWW501.StringBuilder();objSB_TD_HTML.append("<td id=hx_checkbox_line_td style='width:17px;height:18px'>");objSB_TD_HTML.append("<input id=chkbx_hx_treenode type=checkbox style='cursor:hand;width:17px;height:18px;'");if(int_is_checked==1){objSB_TD_HTML.append(" checked")}objSB_TD_HTML.append("/></td>");return objSB_TD_HTML.toString()};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_image_td_html=function(objActiveElementInfo,str_node_type){if(objActiveElementInfo.is_show_images==0){return""}var str_node_image_class_name=objActiveElementInfo.dft_node_img_class_name;if(objActiveElementInfo.node_type_img_class_collection!=null){if(objActiveElementInfo.node_type_img_class_collection[str_node_type]!=null){str_node_image_class_name=objActiveElementInfo.node_type_img_class_collection[str_node_type]}}var objSB_TD_HTML=new HXWWW501.StringBuilder();objSB_TD_HTML.append("<td id=hx_img_line_td style='width:17px;height:18px'>");objSB_TD_HTML.append('<img id=img_hx_treenode src="../images/hxpub_clear.gif" style="cursor:hand;width:18px;height:18px;"');objSB_TD_HTML.append(' class="'+str_node_image_class_name+'" />');objSB_TD_HTML.append("</td>");return objSB_TD_HTML.toString()};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_content_td_html=function(objActiveElementInfo,str_nodetext,str_node_hint_desc,int_node_level){var objSB_TD_HTML=new HXWWW501.StringBuilder();var normal_class_name=(int_node_level==0?"hxwebtreeviewcontrol_root_node_normal":"hxwebtreeviewcontrol_child_node_normal");var hover_class_name=(int_node_level==0?"hxwebtreeviewcontrol_root_node_hover":"hxwebtreeviewcontrol_child_node_hover");var clicked_class_name=(int_node_level==0?"hxwebtreeviewcontrol_root_node_click":"hxwebtreeviewcontrol_child_node_click");objSB_TD_HTML.append("<td id=hx_content_line_td style='width:100%;height:18px;'>");objSB_TD_HTML.append("<span id=spn_hx_treenode style='padding-left:0;'");objSB_TD_HTML.append(' class="'+normal_class_name+'"');if(str_node_hint_desc!=null){objSB_TD_HTML.append(' title="'+str_node_hint_desc.replace(/\"/g,"&quot;")+'"')}objSB_TD_HTML.append(" onmouseover=\"if( this.className != '"+clicked_class_name+"') this.className='"+hover_class_name+"';\"");objSB_TD_HTML.append(" onmouseout=\"if( this.className != '"+clicked_class_name+"') this.className='"+normal_class_name+"';\"");objSB_TD_HTML.append(">"+str_nodetext+"</span></td>");return objSB_TD_HTML.toString()};HXWWW501.HXWebTreeViewControl._InternalFunctions._process_tree_lines_images=function(objActiveElementInfo,objTableNewNode,objTableParentNode,objTableBrotherNode,objTableYongBrotherNode){var intIsRootNode=(parseInt(objTableNewNode.getAttribute("node_level"))==0?true:false);if(intIsRootNode==true){if(objTableBrotherNode==null){if(objTableYongBrotherNode==null){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,0,0)}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,0,1);var blnYongBrotherNodeHasChild=(HXWWW501.HXWebTreeViewControl._InternalFunctions._get_young_brother_node_object(objActiveElementInfo,objTableYongBrotherNode)==null?false:true);HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableYongBrotherNode,0,(blnYongBrotherNodeHasChild?2:3))}}else{if(objTableYongBrotherNode==null){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,0,3)}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,0,2)}if(objTableBrotherNode.parentElement.previousSibling==null){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableBrotherNode,0,1)}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableBrotherNode,0,2)}var objTemp=objTableBrotherNode.parentElement.nextSibling;while(objTemp!=null&&objTemp!=objTableNewNode.parentElement){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),0,4);objTemp=objTemp.nextSibling}}}else{var intLevelNo=parseInt(objTableNewNode.getAttribute("node_level"));if(objTableYongBrotherNode==null){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,intLevelNo,3)}else{HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,intLevelNo,2)}if(objTableBrotherNode!=null){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableBrotherNode,intLevelNo,2);var objTemp=objTableBrotherNode.parentElement.nextSibling;while(objTemp!=objTableNewNode.parentElement){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTemp.all("hx_node_table_object"),intLevelNo,4);objTemp=objTemp.nextSibling}}var objTemp=objTableNewNode.parentElement.nextSibling;var intTempLevelNo_LastUpdated=intLevelNo;var blnParentHasYoungBrother=false;while(objTemp!=null){var intTempLevelNo=parseInt(objTemp.all("hx_node_table_object").getAttribute("node_level"));if(intTempLevelNo<intLevelNo){if(intTempLevelNo<intTempLevelNo_LastUpdated){HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableNewNode,intTempLevelNo,4);intTempLevelNo_LastUpdated=intTempLevelNo}}if(intTempLevelNo==intLevelNo-1){blnParentHasYoungBrother=true}objTemp=objTemp.nextSibling}objTableParentNode.setAttribute("hx_has_children",1);objTableParentNode.setAttribute("hx_is_expanded",1);var intParentNodeLevelNo=parseInt(objTableParentNode.getAttribute("node_level"));var intTmpImgType=-1;if(intParentNodeLevelNo==0){if(objTableParentNode.parentElement.previousSibling==null){intTmpImgType=(blnParentHasYoungBrother?1:0)}else{intTmpImgType=(blnParentHasYoungBrother?2:3)}}else{intTmpImgType=(blnParentHasYoungBrother?2:3)}HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage(objActiveElementInfo,objTableParentNode,intParentNodeLevelNo,intTmpImgType)}};HXWWW501.HXWebTreeViewControl._InternalFunctions._setTreeLineImage=function(objActiveElementInfo,objTreeNodeTable,intLevelNo,intImgType){if(objActiveElementInfo.is_show_root_line==0&&intLevelNo==0){return}var strImgClassName;if(intImgType==-1){objTreeNodeTable.all("hx_prefix_td_"+intLevelNo).innerHTML="<img src=\"../images/hxpub_clear.gif\" style='width:17px;height:18px;'>";return}var intHasChildren=parseInt(objTreeNodeTable.getAttribute("hx_has_children"));var intIsExpanded=parseInt(objTreeNodeTable.getAttribute("hx_is_expanded"));var intCurrNodeLevelNo=parseInt(objTreeNodeTable.getAttribute("node_level"));if(intCurrNodeLevelNo<intLevelNo){return}if(intImgType==4){strImgClassName="hxicon_treeview_vline"}else{var strImgClassNamePart_PlusOrMinus,strImgClassNamePart_FirstOrMiddleOrLast;if(objActiveElementInfo.is_show_plusminus==1&&intHasChildren==1){strImgClassNamePart_PlusOrMinus=(intIsExpanded==1?"_minus":"_plus")}else{strImgClassNamePart_PlusOrMinus=""}switch(intImgType){case 0:strImgClassNamePart_FirstOrMiddleOrLast="_hline";break;case 1:strImgClassNamePart_FirstOrMiddleOrLast="_first";break;case 2:strImgClassNamePart_FirstOrMiddleOrLast="_middle";break;case 3:strImgClassNamePart_FirstOrMiddleOrLast="_last";break}strImgClassName="hxicon_treeview"+strImgClassNamePart_PlusOrMinus+strImgClassNamePart_FirstOrMiddleOrLast}var objSB_HTML=new HXWWW501.StringBuilder();objSB_HTML.append('<img id=img_hx_plusminus src="../images/hxpub_clear.gif" class="'+strImgClassName+'"');if(intCurrNodeLevelNo==intLevelNo){if(objActiveElementInfo.is_show_plusminus==1&&intHasChildren==1){objSB_HTML.append("  style='width:17px;height:18px;cursor:hand;'")}}else{objSB_HTML.append(" style='width:17px;height:18px;'")}objSB_HTML.append(">");objTreeNodeTable.all("hx_prefix_td_"+intLevelNo).innerHTML=objSB_HTML.toString()};HXWWW501.HXWebTreeViewControl._InternalFunctions._get_customized_filter_data=function(objActiveElementInfo){var strCustomizedFilterData="";if(!!objActiveElementInfo.filter_data_callback_func){try{strCustomizedFilterData=objActiveElementInfo.filter_data_callback_func(objActiveElementInfo.treeviewcontrol_id);if(strCustomizedFilterData==null){return null}}catch(e){alert(e.description);return null}}return strCustomizedFilterData};HXWWW501.HXWebTreeViewControl._InternalFunctions._build_pagxmlservice_xmlcontent_getdata=function(objActiveElementInfo,str_parent_node_unique_code,str_parent_node_type,strCustomizedFilterData){var strWebTreeviewPageAssemblyName=(objActiveElementInfo.webtreeview_pagexmlsvc_assemblyname?objActiveElementInfo.webtreeview_pagexmlsvc_assemblyname:mstrPageXmlServiceAssemblyName);var strWebTreeviewPageClassName=(objActiveElementInfo.webtreeview_pagexmlsvc_classname?objActiveElementInfo.webtreeview_pagexmlsvc_classname:mstrPageXmlServiceClassName);if(str_parent_node_unique_code==null){str_parent_node_unique_code=""}if(str_parent_node_type==null){str_parent_node_type=""}var strXmlContent='<ALL_DATA RETURN_DATA_TYPE="" ASSEMBLY="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strWebTreeviewPageAssemblyName)+'" CLASS_NAME="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strWebTreeviewPageClassName)+'" HX_WEB_TREEVIEW_CONTROL_ID="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(objActiveElementInfo.treeviewcontrol_id)+'"><CONFIG_DATA><RS_ROW PARENT_NODE_UNIQUE_CODE="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_parent_node_unique_code)+'" PARENT_NODE_TYPE="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(str_parent_node_type)+'" CUSTOMIZED_FILTER_DATA="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strCustomizedFilterData)+'" /></CONFIG_DATA></ALL_DATA>';return strXmlContent};HXWWW501.HXWebTreeViewControl._InternalFunctions._call_gettreeviewdata_pagxmlservice_async=function(strXmlContent,fnResponse){var strAssemblyName="TrustHX.HXWWW501";var strClassName="TrustHX.HXWWW501.HXWebTreeViewControlHelper";HXWWW501.XmlService.HXUtil_CallPageXmlServiceAsync("HXWEBTREEVIEWCONTROL_GET_DATA_LIST",strXmlContent,fnResponse,strAssemblyName,strClassName)};HXWWW501.HXWebTreeViewControl._InternalFunctions._call_gettreeviewdata_pagxmlservice=function(strXmlContent){var strAssemblyName="TrustHX.HXWWW501";var strClassName="TrustHX.HXWWW501.HXWebTreeViewControlHelper";return HXWWW501.XmlService.HXUtil_CallPageXmlService("HXWEBTREEVIEWCONTROL_GET_DATA_LIST",strXmlContent,strAssemblyName,strClassName)};HXWWW501.HXWebPopupTreeViewControl={};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions={};HXWWW501.HXWebPopupTreeViewControl.register=function(str_popuptreeviewcontrol_id,str_dropdown_btn_id,obj_popuptreeviewcontrol_setting){if(obj_popuptreeviewcontrol_setting==null){obj_popuptreeviewcontrol_setting=new Object()}if(!HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info[str_popuptreeviewcontrol_id];if(!c){var c=new Object();c={popuptreeviewcontrol_id:str_popuptreeviewcontrol_id,choose_button_id:str_dropdown_btn_id,content_type:(obj_popuptreeviewcontrol_setting.content_type==null?"desc":obj_popuptreeviewcontrol_setting.content_type),choose_type:(obj_popuptreeviewcontrol_setting.choose_type==null?0:obj_popuptreeviewcontrol_setting.choose_type),choose_return_value_option:(obj_popuptreeviewcontrol_setting.choose_return_value_option==null?1:obj_popuptreeviewcontrol_setting.choose_return_value_option),dropdownbox_width:obj_popuptreeviewcontrol_setting.dropdownbox_width,dropdownbox_height:obj_popuptreeviewcontrol_setting.dropdownbox_height,binding_datasrc_id:obj_popuptreeviewcontrol_setting.binding_datasrc_id,binding_datafld_for_key:obj_popuptreeviewcontrol_setting.binding_datafield_for_key,binding_datafld_for_desc:obj_popuptreeviewcontrol_setting.binding_datafield_for_desc,binding_datafld_for_attr_1:obj_popuptreeviewcontrol_setting.binding_datafield_for_attr1,binding_datafld_for_attr_2:obj_popuptreeviewcontrol_setting.binding_datafield_for_attr2,binding_datafld_for_attr_3:obj_popuptreeviewcontrol_setting.binding_datafield_for_attr3,binding_datafld_for_attr_4:obj_popuptreeviewcontrol_setting.binding_datafield_for_attr4,binding_datafld_for_attr_5:obj_popuptreeviewcontrol_setting.binding_datafield_for_attr5,filter_data_callback_func:obj_popuptreeviewcontrol_setting.filter_data_callback_func,datachoosed_callback_func:obj_popuptreeviewcontrol_setting.datachoosed_callback_func,is_show_images:obj_popuptreeviewcontrol_setting.is_show_images,dft_node_img_class_name:obj_popuptreeviewcontrol_setting.dft_node_img_class_name,node_type_img_class_collection:obj_popuptreeviewcontrol_setting.node_type_img_class_collection,is_show_plusminus:obj_popuptreeviewcontrol_setting.is_show_plusminus,is_show_root_line:obj_popuptreeviewcontrol_setting.is_show_root_line};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info[str_popuptreeviewcontrol_id]=c}};HXWWW501.HXWebPopupTreeViewControl.demo_callback_func__filter_data=function(str_popuptreeviewcontrol_id,objWebPopupControl_DropdownButton){alert("filter_data_callback_func:fn(str_popuptreeviewcontrol_id, objInputTextBox/*may be null*/, objDropdownButton)")};HXWWW501.HXWebPopupTreeViewControl.demo_callback_func__datachoosed=function(str_popuptreeviewcontrol_id,objWebPopupControl_DropdownButton){alert("datachoosed_callback_func:fn(str_popuptreeviewcontrol_id, objInputTextBox/*may be null*/, objDropdownButton, objXmlChoosedData)")};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onclickprocess=function(){if(!HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info){return}var objEventSrcElement=event.srcElement;var strEventSrcElementId=objEventSrcElement.id;if(!strEventSrcElementId){return}var str_popuptreeviewcontrol_id=null;for(key in HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info){if(HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info[key].choose_button_id==strEventSrcElementId){str_popuptreeviewcontrol_id=key;break}}if(str_popuptreeviewcontrol_id==null){return}var objActiveElementInfo=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info[str_popuptreeviewcontrol_id];var objInputTextBox=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._get_related_inputbox_object(str_popuptreeviewcontrol_id,objEventSrcElement);HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._set_current_active_control("hxwebpopuptreeview",str_popuptreeviewcontrol_id,objInputTextBox,objEventSrcElement,objActiveElementInfo)};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._get_related_inputbox_object=function(str_popuptreeviewcontrol_id,objDropdownButton){return objDropdownButton.parentElement.parentElement.all(str_popuptreeviewcontrol_id)};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._set_current_active_control=function(strWebDataControlType,str_popuptreeviewcontrol_id,objWebPopupControl_TextBox,objWebPopupControl_DropdownButton,objActiveElementInfo){if(HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea==null){return}HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_id=str_popuptreeviewcontrol_id;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_textbox=objWebPopupControl_TextBox;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_dropdownbtn=objWebPopupControl_DropdownButton;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.innerHTML="";var intLeft,intTop,intWidth,intHeight;if(objWebPopupControl_TextBox!=null){intLeft=HXWWW501.Utility._InternalFunctions._get_element_left(objWebPopupControl_TextBox);intTop=HXWWW501.Utility._InternalFunctions._get_element_top(objWebPopupControl_TextBox)+objWebPopupControl_TextBox.offsetHeight+1;intWidth=(objActiveElementInfo.dropdownbox_width==null?objWebPopupControl_DropdownButton.offsetWidth+HXWWW501.Utility._InternalFunctions._get_element_left(objWebPopupControl_DropdownButton)-HXWWW501.Utility._InternalFunctions._get_element_left(objWebPopupControl_TextBox):objActiveElementInfo.dropdownbox_width)}else{intLeft=HXWWW501.Utility._InternalFunctions._get_element_left(objWebPopupControl_DropdownButton);intTop=HXWWW501.Utility._InternalFunctions._get_element_top(objWebPopupControl_DropdownButton)+objChooseButton.offsetHeight+1;intWidth=(objActiveElementInfo.dropdownbox_width==null?objWebPopupControl_DropdownButton.offsetWidth:objActiveElementInfo.dropdownbox_width)}if(intWidth<200){intWidth=200}intHeight=(objActiveElementInfo.dropdownbox_height==null?200:objActiveElementInfo.dropdownbox_height);if(intHeight<300){intHeight=300}var intMaxWidth=document.body.scrollLeft+document.body.clientWidth;if(intLeft+intWidth>intMaxWidth){intLeft=intMaxWidth-intWidth}var intMaxHeight=document.body.scrollTop+document.body.clientHeight;if(intTop+intHeight>intMaxHeight){intTop=intMaxHeight-intHeight}HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.posLeft=intLeft;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.posTop=intTop;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.width=intWidth;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.height=intHeight;HXWWW501.HXWebTreeViewControl.register(str_popuptreeviewcontrol_id,HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea,objActiveElementInfo.choose_type,objActiveElementInfo.is_show_images,objActiveElementInfo.is_show_root_line,HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onhxnodeclicked_or_onhxcheckstatusafterupdated,objActiveElementInfo.dft_node_img_class_name,objActiveElementInfo.is_show_plusminus);if(objActiveElementInfo.filter_data_callback_func!=null){HXWWW501.HXWebTreeViewControl.set_filter_data_get_callback(str_popuptreeviewcontrol_id,HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._active_control_filter_data_get_callback_func)}if(objActiveElementInfo.node_type_img_class_collection!=null){HXWWW501.HXWebTreeViewControl.set_image_info(str_popuptreeviewcontrol_id,objActiveElementInfo.node_type_img_class_collection)}HXWWW501.HXWebTreeViewControl.init_root_nodes(str_popuptreeviewcontrol_id,1);HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.display=""};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._active_control_filter_data_get_callback_func=function(str_popuptreeviewcontrol_id){if(!HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info){return""}var objActiveElementInfo=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info[str_popuptreeviewcontrol_id];if(objActiveElementInfo==null){return""}if(objActiveElementInfo.filter_data_callback_func==null){return""}var objInputBox=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_textbox;var objWebPopupControl_DropdownButton=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_dropdownbtn;var strCustomizedFilterData=objActiveElementInfo.filter_data_callback_func(str_popuptreeviewcontrol_id,objInputBox,objWebPopupControl_DropdownButton);return strCustomizedFilterData};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onhxnodeclicked_or_onhxcheckstatusafterupdated=function(str_event_type,obj_current_treenode_data){if(str_event_type=="onhxchildnodeinit"||str_event_type=="onhxcheckstatuschanged"||str_event_type=="onhxtreenode_expanded"||str_event_type=="onhxtreenode_collapsed"){return}var str_popuptreeviewcontrol_id=obj_current_treenode_data.treeviewcontrol_id;if(!HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info){return}var objActiveElementInfo=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registed_elements_info[str_popuptreeviewcontrol_id];if(objActiveElementInfo==null){return}var strSelectedKey="",strSelectedDesc="",strSelectedAttr1="",strSelectedAttr2="",strSelectedAttr3="",strSelectedAttr4="",strSelectedAttr5="";var objSB_Temp=new HXWWW501.StringBuilder();objSB_Temp.append("<SELECTED_NODES>");var strXmlDataForChoosedNodes="";var objXmlChoosedData=null;if(objActiveElementInfo.choose_type==null||objActiveElementInfo.choose_type==0){strSelectedKey=obj_current_treenode_data.node_unique_code;strSelectedDesc=obj_current_treenode_data.node_text;strSelectedAttr1=obj_current_treenode_data.node_attr_1;strSelectedAttr2=obj_current_treenode_data.node_attr_2;strSelectedAttr3=obj_current_treenode_data.node_attr_3;strSelectedAttr4=obj_current_treenode_data.node_attr_4;strSelectedAttr5=obj_current_treenode_data.node_attr_5;objSB_Temp.append("<RS_ROW");objSB_Temp.append(' UUID="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedKey)+'"');objSB_Temp.append(' CHOOSE_STATUS="'+(obj_current_treenode_data.node_choosed_status==null?"":obj_current_treenode_data.node_choosed_status)+'"');objSB_Temp.append(' NODE_LEVEL="'+obj_current_treenode_data.node_level+'"');objSB_Temp.append(' NODE_TYPE="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(obj_current_treenode_data.node_type)+'"');objSB_Temp.append(' KEY="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedKey)+'"');objSB_Temp.append(' DESC="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedDesc)+'"');objSB_Temp.append(' ATTR_1="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedAttr1)+'"');objSB_Temp.append(' ATTR_2="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedAttr2)+'"');objSB_Temp.append(' ATTR_3="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedAttr3)+'"');objSB_Temp.append(' ATTR_4="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedAttr4)+'"');objSB_Temp.append(' ATTR_5="'+HXWWW501.Utility.HXUtil_MarkXMLSpecialChars(strSelectedAttr5)+'"');objSB_Temp.append(" /></SELECTED_NODES>");strXmlDataForChoosedNodes=objSB_Temp.toString();objXmlChoosedData=new ActiveXObject("Microsoft.XMLDOM");objXmlChoosedData.async=false;objXmlChoosedData.loadXML(strXmlDataForChoosedNodes)}else{strXmlDataForChoosedNodes=HXWWW501.HXWebTreeViewControl.get_choosed_nodes(str_popuptreeviewcontrol_id,objActiveElementInfo.choose_return_value_option);if(strXmlDataForChoosedNodes!=null&&strXmlDataForChoosedNodes!=""){objXmlChoosedData=new ActiveXObject("Microsoft.XMLDOM");objXmlChoosedData.async=false;objXmlChoosedData.loadXML(strXmlDataForChoosedNodes);var objXmlNodeList=objXmlChoosedData.selectNodes("//RS_ROW");for(var i=0;i<objXmlNodeList.length;i++){strSelectedKey+=(strSelectedKey!=""?",":"")+objXmlNodeList.item(i).selectSingleNode(".//@UUID").text;strSelectedDesc+=(strSelectedDesc!=""?",":"")+objXmlNodeList.item(i).selectSingleNode(".//@DESC").text;strSelectedAttr1+=(strSelectedAttr1!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_1")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_1").text:"");strSelectedAttr2+=(strSelectedAttr2!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_2")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_2").text:"");strSelectedAttr3+=(strSelectedAttr3!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_3")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_3").text:"");strSelectedAttr4+=(strSelectedAttr4!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_4")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_4").text:"");strSelectedAttr5+=(strSelectedAttr5!=""?",":"")+(objXmlNodeList.item(i).selectSingleNode(".//@ATTR_5")!=null?objXmlNodeList.item(i).selectSingleNode(".//@ATTR_5").text:"")}}}var objInputTextBox=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_textbox;var objDropdownButton=HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_dropdownbtn;var str_binding_datasrc_id=objActiveElementInfo.binding_datasrc_id;if(str_binding_datasrc_id==null){if(objInputTextBox!=null){objInputTextBox.value=(objActiveElementInfo.content_type=="key"?strSelectedKey:strSelectedDesc)}}else{var intBindingDataLine=null;if(objDropdownButton.recordNumber!=null){intBindingDataLine=objDropdownButton.recordNumber-1}HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._set_selected_desc_to_textbox(objActiveElementInfo,objInputTextBox,strSelectedDesc);HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._set_binding_datafields_values(objActiveElementInfo,intBindingDataLine,strSelectedKey,strSelectedDesc,strSelectedAttr1,strSelectedAttr2,strSelectedAttr3,strSelectedAttr4,strSelectedAttr5)}HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._run_datachoosed_callback_function(objActiveElementInfo,objInputTextBox,objDropdownButton,objXmlChoosedData);if(objActiveElementInfo.choose_type==null||objActiveElementInfo.choose_type==0){HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._clear_current_active_control()}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._set_selected_desc_to_textbox=function(objActiveElementInfo,objInputTextBox,strSelectedDesc){if(objInputTextBox!=null&&objActiveElementInfo.content_type=="desc"&&(objActiveElementInfo.binding_datasrc_id==null||objActiveElementInfo.binding_datafld_for_desc=="")){objInputTextBox.value=strSelectedDesc}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._set_binding_datafields_values=function(objActiveElementInfo,intBindingDataLine,strSelectedKey,strSelectedDesc,strSelectedAttr1,strSelectedAttr2,strSelectedAttr3,strSelectedAttr4,strSelectedAttr5){var objXmlNodeForKey=null,objXmlNodeForDesc=null,objXmlNodeForAttr1=null,objXmlNodeForAttr2=null,objXmlNodeForAttr3=null,objXmlNodeForAttr4=null,objXmlNodeForAttr5=null;var str_binding_datasrc_id=objActiveElementInfo.binding_datasrc_id;if(!str_binding_datasrc_id){return}var objDataSrc=document.all.item(str_binding_datasrc_id);if(objDataSrc!=null){var intLineNo=intBindingDataLine;var strDataFieldNameForKey=objActiveElementInfo.binding_datafld_for_key;var strDataFieldNameForDesc=objActiveElementInfo.binding_datafld_for_desc;var strDataFieldNameForAttr1=objActiveElementInfo.binding_datafld_for_attr_1;var strDataFieldNameForAttr2=objActiveElementInfo.binding_datafld_for_attr_2;var strDataFieldNameForAttr3=objActiveElementInfo.binding_datafld_for_attr_3;var strDataFieldNameForAttr4=objActiveElementInfo.binding_datafld_for_attr_4;var strDataFieldNameForAttr5=objActiveElementInfo.binding_datafld_for_attr_5;if(strDataFieldNameForKey!=null&&strDataFieldNameForKey!=""){strDataFieldNameForKey=strDataFieldNameForKey.toUpperCase();if(intLineNo!=null){objXmlNodeForKey=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForKey)}else{objXmlNodeForKey=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForKey)}}if(strDataFieldNameForDesc!=null&&strDataFieldNameForDesc!=""){strDataFieldNameForDesc=strDataFieldNameForDesc.toUpperCase();if(intLineNo!=null){objXmlNodeForDesc=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForDesc)}else{objXmlNodeForDesc=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForDesc)}}if(strDataFieldNameForAttr1!=null&&strDataFieldNameForAttr1!=""){strDataFieldNameForAttr1=strDataFieldNameForAttr1.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr1=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr1)}else{objXmlNodeForAttr1=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr1)}}if(strDataFieldNameForAttr2!=null&&strDataFieldNameForAttr2!=""){strDataFieldNameForAttr2=strDataFieldNameForAttr2.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr2=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr2)}else{objXmlNodeForAttr2=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr2)}}if(strDataFieldNameForAttr3!=null&&strDataFieldNameForAttr3!=""){strDataFieldNameForAttr3=strDataFieldNameForAttr3.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr3=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr3)}else{objXmlNodeForAttr3=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr3)}}if(strDataFieldNameForAttr4!=null&&strDataFieldNameForAttr4!=""){strDataFieldNameForAttr4=strDataFieldNameForAttr4.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr4=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr4)}else{objXmlNodeForAttr4=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr4)}}if(strDataFieldNameForAttr5!=null&&strDataFieldNameForAttr5!=""){strDataFieldNameForAttr5=strDataFieldNameForAttr5.toUpperCase();if(intLineNo!=null){objXmlNodeForAttr5=objDataSrc.selectNodes("//RS_ROW").item(intLineNo).selectSingleNode("@"+strDataFieldNameForAttr5)}else{objXmlNodeForAttr5=objDataSrc.selectSingleNode("//RS_ROW/@"+strDataFieldNameForAttr5)}}}if(objXmlNodeForKey!=null){objXmlNodeForKey.text=strSelectedKey}if(objXmlNodeForDesc!=null){objXmlNodeForDesc.text=strSelectedDesc}if(objXmlNodeForAttr1!=null){objXmlNodeForAttr1.text=strSelectedAttr1}if(objXmlNodeForAttr2!=null){objXmlNodeForAttr2.text=strSelectedAttr2}if(objXmlNodeForAttr3!=null){objXmlNodeForAttr3.text=strSelectedAttr3}if(objXmlNodeForAttr4!=null){objXmlNodeForAttr4.text=strSelectedAttr4}if(objXmlNodeForAttr5!=null){objXmlNodeForAttr5.text=strSelectedAttr5}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._run_datachoosed_callback_function=function(objActiveElementInfo,objInputTextBox,objDropdownButton,objXmlChoosedData){var str_popuptreeviewcontrol_id=objActiveElementInfo.popuptreeviewcontrol_id;if(!!objActiveElementInfo.datachoosed_callback_func){try{objActiveElementInfo.datachoosed_callback_func(str_popuptreeviewcontrol_id,objInputTextBox,objDropdownButton,objXmlChoosedData)}catch(e){alert("hxwebpopuptreeview datachoosed_callback_func call failed. "+e.description);return}}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._clear_current_active_control=function(){HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_id=null;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_dropdownbtn=null;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_textbox=null;HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._hide_popup_area()};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._hide_popup_area=function(){if(HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea!=null){HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.display="none"}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onclickprocess_outsidedropdownarea=function(){if(!HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea){return}if(HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea.style.display=="none"){return}var objEventSrcElement=event.srcElement;if(objEventSrcElement!==HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_textbox&&objEventSrcElement!==HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._current_active_webpopupcontrol_dropdownbtn){HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._clear_current_active_control()}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._create_popup_treeviewarea=function(){if(window.document.all.item("hxwebpopuptreeviewcontrol_popup_treeviewarea")==null){var strDivHTMLContent='<div id=hxwebpopuptreeviewcontrol_popup_treeviewarea style="display:none; Z-INDEX:8000; LEFT:0px; TOP:0px;WIDTH:200px; HEIGHT:100px; POSITION: absolute; overflow:auto; padding:1 1 0 0;" onclick="event.cancelBubble=true;"></div>';var objDiv=document.createElement(strDivHTMLContent);document.body.appendChild(objDiv);HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._global_popup_treeviewarea=objDiv}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onloadprocess=function(){HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._create_popup_treeviewarea();if(document.attachEvent){document.body.attachEvent("onclick",HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onclickprocess);document.body.attachEvent("onclick",HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onclickprocess_outsidedropdownarea)}else{document.body.addEventListener("click",HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onclickprocess,false);document.body.addEventListener("click",HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onclickprocess_outsidedropdownarea,false)}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registerEventHandler=function(){if(window.attachEvent){window.attachEvent("onload",HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onloadprocess)}else{window.addEventListener("load",HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._onloadprocess,false)}HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registerEventHandler=function(){}};HXWWW501.HXWebPopupTreeViewControl._InternalFunctions._registerEventHandler();HXWWW501.HXWebCommonPageHelper={};HXWWW501.HXWebCommonPageHelper.head_line_sort_process=function(strTableId){var fn_callback_after_table_sorted=null;if(HXWWW501.Utility._InternalFunctions.is_js_function_defined("hxfn_callback_websimpledatalist__after_data_row_rebinding")){fn_callback_after_table_sorted=HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebCommonPageHelper._InternalFunctions._check_table_binding_finish_and_run_callback_func,strTableId)}HXWWW501.HXWebCommonPageHelper._InternalFunctions._head_line_sort_process(strTableId,fn_callback_after_table_sorted)};HXWWW501.HXWebCommonPageHelper.get_binding_xml_object_of_html_table=function(strTableId){var strTempDataSrcName=document.all(strTableId).dataSrc;if(strTempDataSrcName==null||strTempDataSrcName==""){return null}return document.all.item(strTempDataSrcName.substr(1))};HXWWW501.HXWebCommonPageHelper.binding_html_table_check=function(strHtmlTableId,blnRebindData){if(!window.attachEvent){return}var objHtmlTable=document.all(strHtmlTableId);var objXmlDataList=HXWWW501.HXWebCommonPageHelper.get_binding_xml_object_of_html_table(strHtmlTableId);if(objXmlDataList==null){alert("The html table ("+strHtmlTableId+") have no binding dataSrc defined!");return}if(blnRebindData!=null&&blnRebindData==true){objHtmlTable.dataSrc="";objHtmlTable.dataSrc="#"+objXmlDataList.id;objHtmlTable.refresh()}if(objHtmlTable.tBodies.length>0){if(objXmlDataList.xml==""||objXmlDataList.xml.indexOf("<RS_ROW")==-1){objHtmlTable.tBodies[0].style.display="none"}else{objHtmlTable.tBodies[0].style.display=""}}HXWWW501.HXWebCommonPageHelper._InternalFunctions._check_table_binding_finish_and_run_callback_func(strHtmlTableId)};HXWWW501.HXWebCommonPageHelper._InternalFunctions={};HXWWW501.HXWebCommonPageHelper._InternalFunctions._check_table_binding_finish_and_run_callback_func=function(strTableId){var objtable=document.getElementById(strTableId);var objxmldoc=HXWWW501._BrowserIndependent.XML.getDataIsland(objtable.dataSrc.substr(1));if(objxmldoc==null){return}if(HXWWW501._BrowserIndependent.XML.getNodeXmlString(objxmldoc)==""){return}var objxmlnodelist=HXWWW501._BrowserIndependent.XML.getNodes(objxmldoc,"//RS_ROW");if(objtable.tBodies.length==objxmlnodelist.length){if(HXWWW501.HXWebEditPageHelper!=null&&HXWWW501.HXWebEditPageHelper._InternalFunctions!=null&&HXWWW501.HXWebEditPageHelper._InternalFunctions._registered_metadata_info!=null){if(objtable.getAttribute("hx_is_childobject_sublistarea")!=null&&objtable.getAttribute("hxchildobjectcode")!=null){var strChildObjectCode=objtable.getAttribute("hxchildobjectcode");HXWWW501.HXWebEditPageHelper.child_object_sublist_table_display_format_process(strChildObjectCode);return}}if(!HXWWW501.Utility._InternalFunctions.is_js_function_defined("hxfn_callback_websimpledatalist__after_data_row_rebinding")){return}try{for(var i=0;i<objtable.tBodies.length;i++){var objTR=objtable.tBodies[i].firstChild;hxfn_callback_websimpledatalist__after_data_row_rebinding(strTableId,i,objTR,objxmlnodelist[i])}}catch(ex){alert("HXWWW501.HXWebCommonPageHelper hxfn_callback_websimpledatalist__after_data_row_rebinding failed. Error Detail:"+ex)}}else{window.setTimeout('HXWWW501.HXWebCommonPageHelper._InternalFunctions._check_table_binding_finish_and_run_callback_func("'+strTableId+'")',200)}};HXWWW501.HXWebCommonPageHelper._InternalFunctions._head_line_sort_process=function(strTableId,fn_callback_after_table_sorted){event.returnValue=false;var objSrcElement=event.srcElement;while(objSrcElement!=null&&objSrcElement.tagName.toLowerCase()!="td"){objSrcElement=objSrcElement.parentElement}if(objSrcElement==null){return}if(objSrcElement.getAttribute("hx_field_name")==null){return}var objParentTableElement=null;if(strTableId!=null){objParentTableElement=document.all.item(strTableId)}else{objParentTableElement=objSrcElement.parentElement;while(objParentTableElement!=null&&objParentTableElement.tagName.toLowerCase()!="table"){objParentTableElement=objParentTableElement.parentElement}}if(objParentTableElement==null){return}var objXmlDataIsland=document.all.item(objParentTableElement.dataSrc.substr(1));var strCurrentChoosedFieldName=objSrcElement.getAttribute("hx_field_name").toLowerCase();var strLastTimeSortFieldName="";var strLastTimeSortType="";if(objSrcElement.parentElement.getAttribute("hx_last_time_sort_field_name")!=null){strLastTimeSortFieldName=objSrcElement.parentElement.getAttribute("hx_last_time_sort_field_name").toLowerCase()}if(objSrcElement.parentElement.getAttribute("hx_last_time_sort_type")!=null){strLastTimeSortType=objSrcElement.parentElement.getAttribute("hx_last_time_sort_type").toUpperCase()}if(strLastTimeSortFieldName!=strCurrentChoosedFieldName){var hx_td_list=objSrcElement.parentElement.all.tags("td");for(var i=0;i<hx_td_list.length;i++){if(hx_td_list(i).getAttribute("hx_field_name")!=null){if(hx_td_list(i).getAttribute("hx_field_name").toLowerCase()==strLastTimeSortFieldName){if(hx_td_list(i).all("hxbtn_sort_direction")!=null){hx_td_list(i).all("hxbtn_sort_direction").className="hxbtn_sort_hide";break}}}}}var strCurrentSortType="ASC";if(strLastTimeSortFieldName==strCurrentChoosedFieldName){strCurrentSortType=(strLastTimeSortType=="ASC"?"DESC":"ASC")}if(objSrcElement.all("hxbtn_sort_direction")==null){objSrcElement.innerHTML+='&nbsp;<img id=hxbtn_sort_direction src="../images/hxpub_clear.gif" class=hxbtn_sort_hide />'}objSrcElement.all("hxbtn_sort_direction").className=(strCurrentSortType=="ASC"?"hxbtn_sort_asc":"hxbtn_sort_desc");objSrcElement.parentElement.setAttribute("hx_last_time_sort_field_name",strCurrentChoosedFieldName);objSrcElement.parentElement.setAttribute("hx_last_time_sort_type",strCurrentSortType);var blnAscOrDesc=(strCurrentSortType=="ASC"?true:false);HXWWW501.Utility._InternalFunctions.HXWebXmlList_QuickSort(objXmlDataIsland,"@"+strCurrentChoosedFieldName.toUpperCase(),blnAscOrDesc);objParentTableElement.refresh();if(fn_callback_after_table_sorted!=null){fn_callback_after_table_sorted()}window.document.body.fireEvent("onresizeend")};HXWWW501.HXWebCommonPageHelper._InternalFunctions._onloadprocess=function(){if(window.attachEvent){window.document.body.attachEvent("onclick",function(){if(parent!=null&&parent!=window.self){parent.document.body.fireEvent("onclick")}});window.document.body.attachEvent("onmove",function(){if(parent!=null&&parent.hxmainpage_adjust_content_zone_height!=null){parent.hxmainpage_adjust_content_zone_height()}});window.document.body.attachEvent("onresizeend",function(){if(parent!=null&&parent.hxmainpage_adjust_content_zone_height!=null){parent.hxmainpage_adjust_content_zone_height()}})}else{window.document.body.addEventListener("click",function(){if(parent!=null&&parent!=window.self){parent.document.body.dispatchEvent({type:"click",target:this})}},false);window.document.body.addEventListener("move",function(){if(parent!=null&&parent.hxmainpage_adjust_content_zone_height!=null){parent.hxmainpage_adjust_content_zone_height()}},false);window.document.body.addEventListener("resizeend",function(){if(parent!=null&&parent.hxmainpage_adjust_content_zone_height!=null){parent.hxmainpage_adjust_content_zone_height()}},false)}if(parent!=null&&parent.hxmainpage_adjust_content_zone_height!=null){parent.hxmainpage_adjust_content_zone_height()}};HXWWW501.HXWebCommonPageHelper._InternalFunctions._registerEventHandler=function(){if(window.attachEvent){window.attachEvent("onload",HXWWW501.HXWebCommonPageHelper._InternalFunctions._onloadprocess)}else{window.addEventListener("load",HXWWW501.HXWebCommonPageHelper._InternalFunctions._onloadprocess,false)}HXWWW501.HXWebCommonPageHelper._InternalFunctions._registerEventHandler=function(){}};HXWWW501.HXWebCommonPageHelper._InternalFunctions._registerEventHandler();HXWWW501.HXWebChartControlWrapper={};HXWWW501.HXWebChartControlWrapper.create_chart_area=function(objHtmlContainerForChart,fnCallbackAfterChartCreated){if(objHtmlContainerForChart==null){return null}if(objHtmlContainerForChart.all("hxiframe_chart_window")==null){var objFrame=document.createElement("iframe");objFrame.id="hxiframe_chart_window";objFrame.src="../hxpublic/hx_chart_wrapper.htm";objFrame.frameborder=0;objFrame.width="100%";objFrame.height="100%";objHtmlContainerForChart.appendChild(objFrame)}if(fnCallbackAfterChartCreated!=null){var fnDelegated;var objChartWindow=objHtmlContainerForChart.all("hxiframe_chart_window").contentWindow;if(objHtmlContainerForChart.all("hxiframe_chart_window").readyState!="complete"){fnDelegated=HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebChartControlWrapper.create_chart_area,objHtmlContainerForChart,fnCallbackAfterChartCreated);window.setTimeout(fnDelegated,200);return}if(objChartWindow.document.readyState!="complete"){fnDelegated=HXWWW501.Utility._InternalFunctions.CreateDelegate(this,HXWWW501.HXWebChartControlWrapper.create_chart_area,objHtmlContainerForChart,fnCallbackAfterChartCreated);window.setTimeout(fnDelegated,200);return}fnCallbackAfterChartCreated(objHtmlContainerForChart)}};HXWWW501.HXWebChartControlWrapper.get_chart_data_xml_object=function(objHtmlContainerForChart){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.get_chart_data_xml_object()};HXWWW501.HXWebChartControlWrapper.get_chart_axes_x_info_xml_object=function(objHtmlContainerForChart){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.get_chart_axes_x_info_xml_object()};HXWWW501.HXWebChartControlWrapper.get_chart_axes_y_info_xml_object=function(objHtmlContainerForChart){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.get_chart_axes_y_info_xml_object()};HXWWW501.HXWebChartControlWrapper.get_blank_xmlnode_for_data_series=function(objHtmlContainerForChart){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.get_blank_xmlnode_for_data_series()};HXWWW501.HXWebChartControlWrapper.get_blank_xmlnode_for_data_point=function(objHtmlContainerForChart){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.get_blank_xmlnode_for_data_point()};HXWWW501.HXWebChartControlWrapper.set_chart_title=function set_chart_title(objHtmlContainerForChart,strChartTitle,blnToolbarEnabled){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.set_chart_title(strChartTitle,blnToolbarEnabled)};HXWWW501.HXWebChartControlWrapper.set_chart_axes_x_info=function(objHtmlContainerForChart){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.set_chart_axes_x_info(strChartAxesXInfoXmlData)};HXWWW501.HXWebChartControlWrapper.set_chart_axes_y_info=function(objHtmlContainerForChart,strChartAxesYInfoXmlData){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.set_chart_axes_y_info(strChartAxesYInfoXmlData)};HXWWW501.HXWebChartControlWrapper.set_chart_data=function(objHtmlContainerForChart,strChartXmlData){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.set_chart_data(strChartXmlData)};HXWWW501.HXWebChartControlWrapper.show_or_refresh_chart=function(objHtmlContainerForChart,fnCallbackForAttachEvent){var objChartFrame=objHtmlContainerForChart.all("hxiframe_chart_window");if(objChartFrame==null){return}objChartWindow=objChartFrame.contentWindow;if(objChartWindow==null){return}return objChartWindow.show_or_refresh_chart(fnCallbackForAttachEvent)};HXWWW501.HXWebTabControl={};HXWWW501.HXWebTabControl._InternalFunctions={};HXWWW501.HXWebTabControl.register=function(str_webtabcontrol_id,fn_callback_after_tab_changed){if(!HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info){HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info={}}var c=HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info[str_webtabcontrol_id];if(!c){var c=new Object();c={webtabcontrol_id:str_webtabcontrol_id,tab_changed_callback_func:fn_callback_after_tab_changed};HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info[str_webtabcontrol_id]=c}};HXWWW501.HXWebTabControl.demo_callback_func__tab_changed=function(str_webtabcontrol_id,str_tab_id){alert("tab_changed_callback_func:fn(str_webtabcontrol_id, str_current_selected_tab_id)")};HXWWW501.HXWebTabControl._InternalFunctions._onclickprocess=function(){if(!HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info){return}var objEventSrcElement=event.srcElement;var strEventSrcParentElementId=objEventSrcElement.parentElement.id;if(!strEventSrcParentElementId){return}var str_webtabcontrol_id=null;for(key in HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info){if(HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info[key].webtabcontrol_id==strEventSrcParentElementId){str_webtabcontrol_id=key;break}}if(str_webtabcontrol_id==null){return}var objActiveElementInfo=HXWWW501.HXWebTabControl._InternalFunctions._registed_elements_info[str_webtabcontrol_id];HXWWW501.HXWebTabControl._InternalFunctions._hxtab_changed_process(objEventSrcElement,objActiveElementInfo)};HXWWW501.HXWebTabControl._InternalFunctions._onloadprocess=function(){if(document.attachEvent){document.body.attachEvent("onclick",HXWWW501.HXWebTabControl._InternalFunctions._onclickprocess)}else{document.body.addEventListener("click",HXWWW501.HXWebTabControl._InternalFunctions._onclickprocess,false)}};HXWWW501.HXWebTabControl._InternalFunctions._registerEventHandler=function(){if(window.attachEvent){window.attachEvent("onload",HXWWW501.HXWebTabControl._InternalFunctions._onloadprocess)}else{window.addEventListener("load",HXWWW501.HXWebTabControl._InternalFunctions._onloadprocess,false)}HXWWW501.HXWebTabControl._InternalFunctions._registerEventHandler=function(){}};HXWWW501.HXWebTabControl._InternalFunctions._registerEventHandler();HXWWW501.HXWebTabControl._InternalFunctions._hxtab_changed_process=function(objHXTabButton,objActiveElementInfo){var strClassName=objHXTabButton.className.toLowerCase();if(strClassName=="hxtab_selected"){return}if(strClassName!="hxtab_unselected"){return}var strOldTabId="";var strCurrentSelectedTabId=objHXTabButton.getAttribute("hxtab_id");if(strCurrentSelectedTabId==null||strCurrentSelectedTabId==""){return}var strClassNameForSelected="hxtab_selected";var strClassNameForUnselected="hxtab_unselected";var objHXTabArea=objHXTabButton.parentElement;for(var i=0;i<objHXTabArea.childNodes.length;i++){var objNode=objHXTabArea.childNodes.item(i);if(objNode.nodeType==1&&objNode.className.indexOf("hxtab_")!=-1){var strTempTabId=objNode.getAttribute("hxtab_id");if(strTempTabId!=null&&strTempTabId!=""){if(strTempTabId!=strCurrentSelectedTabId){if(objNode.className.indexOf("hxtab_selected")!=-1){strOldTabId=strTempTabId}objNode.className=strClassNameForUnselected}}}}objHXTabButton.className=strClassNameForSelected;var fn_callback_after_tab_changed=objActiveElementInfo.tab_changed_callback_func;if(fn_callback_after_tab_changed!=null){fn_callback_after_tab_changed(objActiveElementInfo.webtabcontrol_id,strCurrentSelectedTabId,strOldTabId)}};
