HxG_6.prototype.JSFDataTable=function () {
this.type=hX_6.CMP_datatable;
this.adjustColumns=false;
this.percentageColumns=hX_6._E;
this.handleSelection=this.singleSelect=false;
this.statisticsCnt=null;
this.statisticsDiv=this.selectionClass=this.selectedImg=this.unselectedImg=this.selectedTitle=this.unselectedTitle=this.selectionListener=null;
this.statisticsDivs=null;
this.initialWidth=null;
this.monitorSet=null;
this.monitorTimer=null;
this.selection=new this.HxTableSelectionGroup();
this.arrayMembers=this.selection.arrayMembers;
this.attributeTable=[];
this.attributeTable ['adjust-columns']=['adjustColumns',		hX_6.ARG_IS_TRUE,	true,	null,	null];
this.attributeTable ['selection']=['handleSelection',	hX_6.ARG_IS_TRUE,	true,	null,	null];
this.attributeTable ['single-select']=['singleSelect',		hX_6.ARG_IS_TRUE,	true,	null,	null];
this.attributeTable ['selection-class']=['selectionClass',	hX_6.ARG_TO_NAN,	true,	null,	null];
this.attributeTable ['pager-select-div']=['statisticsDiv',		hX_6.ARG_TO_NAN,	true,	null,	null];
this.attributeTable ['pager-select-cnt']=['statisticsCnt',		hX_6.ARG_TO_NUM,	true,	0,		99999];
this.attributeTable ['selected-img']=['selectedImg',		hX_6.ARG_TO_NAN,	false,	null,	null];
this.attributeTable ['unselected-img']=['unselectedImg',		hX_6.ARG_TO_NAN,	false,	null,	null];
this.attributeTable ['selected-alt']=['selectedTitle',		hX_6.ARG_TO_NAN,	false,	null,	null];
this.attributeTable ['unselected-alt']=['unselectedTitle',	hX_6.ARG_TO_NAN,	false,	null,	null];
this.attributeTable ['listener']=['selectionListener', hX_6.ARG_TO_FCN, 	false, 	null,	null];
this.setAttribute(arguments);
}
HxG_6.prototype.JSFDataTable.prototype.onPageLoad=function () {
if (this.handleSelection) {
if (this.selection.statisticsDiv && this.selection.statisticsCnt==null) {
var d=hX_6.getElementById(this.selection.statisticsDiv);
if (d) this.selection.statisticsCnt=parseInt(d.innerHTML,10);
}
}
if (this.adjustColumns) {
this.percentageColumns=hX_6._E;
var i, _T='T', _F='F', hasP=false;
var table2=hX_6.getElementById(this.DOMobj.id + "head2");
if (table2==null) table2=hX_6.getElementById(this.DOMobj.id + "head3");
if (table2) {
for (i=0; i<table2.rows[0].cells.length; i++)
if (table2.rows[0].cells[i].width.indexOf(hX_6._PCT)>0) {
this.percentageColumns=this.percentageColumns+_T;
hasP=true;
} else this.percentageColumns=this.percentageColumns+_F;
}
if (!hasP) this.percentageColumns=hX_6._E
 if (hX_6.brw.isNavOrMoz() && this.DOMobj.parentNode.tagName!=undefined && this.DOMobj.parentNode.tagName==hX_6._DIV && this.DOMobj.parentNode.style.overflowX!=undefined && this.DOMobj.parentNode.style.overflowX==hX_6._E)
this.DOMobj.parentNode.style.overflowX=hX_6._HI;
this.redraw();
}
return true;
}
HxG_6.prototype.JSFDataTable.prototype.redraw=function (resizeOnly) {
if (this.adjustColumns) this.adjustColumnWidths();
return true;
}
HxG_6.prototype.JSFDataTable.prototype.adjustColumnWidths=function() {
if (this.adjustColumns) {
var width=hX_6.getScrollbarWidth();
var table1=hX_6.getElementById(this.DOMobj.id + "head1");
var table2=hX_6.getElementById(this.DOMobj.id + "head2");
var table3=hX_6.getElementById(this.DOMobj.id + "foot1");
var table4=hX_6.getElementById(this.DOMobj.id + "foot2");
var i,currRow,lastCell,lastDiv,t1_width=t2_width=t3_width=t4_width=0;
if(table1) {
t1_width=hX_6.g.getRendWidth(table1);
for(i=0; i<table1.rows.length; i++) {
currRow=table1.rows[i];
lastCell=currRow.cells[currRow.cells.length-1];
lastDiv=lastCell.firstChild;
lastDiv.style.width=width+hX_6._PX;
lastCell.width=width;
}
}
if(table2) {
t2_width=hX_6.g.getRendWidth(table2);
for(i=0; i<table2.rows.length; i++) {
currRow=table2.rows[i];
lastCell=currRow.cells[currRow.cells.length-1];
lastDiv=lastCell.firstChild;
lastDiv.style.width=width+hX_6._PX;
lastCell.width=width;
}
}
if(table3) {
t3_width=hX_6.g.getRendWidth(table3);
for(i=0; i<table3.rows.length; i++) {
currRow=table3.rows[i];
lastCell=currRow.cells[currRow.cells.length-1];
lastDiv=lastCell.firstChild;
lastDiv.style.width=width+hX_6._PX;
lastCell.width=width;
}
}
if(table4) {
t4_width=hX_6.g.getRendWidth(table4);
for(i=0; i<table4.rows.length; i++) {
currRow=table4.rows[i];
lastCell=currRow.cells[currRow.cells.length-1];
lastDiv=lastCell.firstChild;
lastDiv.style.width=width+hX_6._PX;
lastCell.width=width;
}
}
if (hX_6.brw.isIE() && table1!=null && table1.style.tableLayout!=undefined && table1.style.tableLayout=="fixed") table1.style.tableLayout=hX_6._E;
if (hX_6.brw.isIE() && table3!=null && table3.style.tableLayout!=undefined && table3.style.tableLayout=="fixed") table3.style.tableLayout=hX_6._E;
if (hX_6.brw.isIE() && table4!=null && table4.style.tableLayout!=undefined && table4.style.tableLayout=="fixed") table4.style.tableLayout=hX_6._E;
lastDiv=this.DOMobj.parentNode;
if (lastDiv && lastDiv.tagName == hX_6._DIV) {
if (this.initialWidth==null) this.initialWidth=lastDiv.style.width;
var curW=hX_6.g.getRendWidth(lastDiv), maxW=Math.max(Math.max(t1_width,t2_width),Math.max(t3_width,t4_width));
if (maxW<=0) maxW=parseInt(this.initialWidth,10);
if (maxW!=curW) {
lastDiv.style.width=((hX_6.brw.isIE() && hX_6.brw.isW3Cstd())?(maxW-width):maxW)+hX_6._PX;
if (this.monitorSet==null && this.initialWidth.indexOf(hX_6._PCT)>0) {
this.monitorSet=(table2)?table2:((table1)?table1:((table3)?table3:((table4)?table4:null)));
if (this.monitorSet!=null) {
hX_6.i.attachResizeMonitor(this.monitorSet, this.dispatchMonitorResize, true);
}
}
}
}
if(this.percentageColumns != hX_6._E) {
if(table2 == null) table2=table3;
if(table2 != null) {
var tr=(this.DOMobj.tBodies!=undefined && this.DOMobj.tBodies.length>0)?this.DOMobj.tBodies[0]:this.DOMobj;
tr=(tr && tr.rows.length>0)?tr.rows[0]:null;
var th=(table2 && table2.rows.length>0)?table2.rows[0]:null;
var y, borderLeft, borderRight, paddingLeft, paddingRight, newWidth, _T='T';
for(y=0; th!=null && tr!=null && y<this.percentageColumns.length; y++) {
if (this.percentageColumns.charAt(y) == _T) {
newWidth=th.cells[y].offsetWidth;
if(!hX_6.brw.isIE() || hX_6.brw.isW3Cstd()) {
borderLeft=hX_6.g.parseBorder(tr.cells[y], hX_6._LFT, 1);
borderRight=hX_6.g.parseBorder(tr.cells[y], hX_6._RGT, 1);
paddingLeft=hX_6.g.getP(tr.cells[y], hX_6._PADL);
if (paddingLeft.indexOf("px") > 0) paddingLeft=paddingLeft.substr(0,paddingLeft.length-2);
else paddingLeft=hX_6.toPixels(tr.cells[y],paddingLeft);
paddingRight=hX_6.g.getP(tr.cells[y], hX_6._PADR);
if (paddingRight.indexOf("px") > 0) paddingRight=paddingRight.substr(0,paddingRight.length-2);
else paddingRight=hX_6.toPixels(tr.cells[y],paddingRight);
if(borderLeft!=null)	newWidth=newWidth - borderLeft;
if(borderRight!=null)	newWidth=newWidth - borderRight;
if(paddingLeft!=null)	newWidth=newWidth - paddingLeft;
if(paddingRight!=null)	newWidth=newWidth - paddingRight;
}
tr.cells[y].width=newWidth;
tr.cells[y].style.width=newWidth + hX_6._PX;
if (hX_6.brw.isW3Cstd()) {
th.cells[y].width=newWidth;
th.cells[y].style.width=newWidth + hX_6._PX;
}
}
}
if (this.monitorSet==null && this.initialWidth.indexOf(hX_6._PCT)>0) {
this.monitorSet=table2;
hX_6.i.attachResizeMonitor(this.monitorSet, this.dispatchMonitorResize, true);
}
}
}
}
}
HxG_6.prototype.JSFDataTable.prototype.uirelease=function (free) {
if (this.monitorTimer) hX_6.i.killTimerTimed(this.monitorTimer);
this.monitorTimer=null;
if (free!=null) hX_6.uirelease(true);
return true;
}
HxG_6.prototype.JSFDataTable.prototype.destroy=function () {
if (this.monitorSet) hX_6.i.removeResizeMonitor(this.monitorSet);
if (this.selection) {
this.selection.destroy();
delete this.selection;
this.arrayMembers=null;
this.selection=null;
}
return true;
}
HxG_6.prototype.JSFDataTable.prototype.setValue=function (value, notify, returns) {
var r=false;
return r;
}
HxG_6.prototype.JSFDataTable.prototype.getValue=function(cast) {
return null;
}
HxG_6.prototype.JSFDataTable.prototype.setAttribute=function(a) {
var wasListener=this.selectionListener;
var wasStatisticsDiv=this.statisticsDiv;
hX_6.parseArg (this.attributeTable, this, (arguments.length>1)?arguments:a);
if (this.handleSelection) {
this.selection.singleSelect=this.singleSelect;
this.selection.statisticsDiv=this.statisticsDiv;
if (wasStatisticsDiv!=null && wasStatisticsDiv!=hX_6._E && this.statisticsDiv!=null && this.statisticsDiv!=hX_6._E && this.statisticsDiv!=wasStatisticsDiv) {
if (this.statisticsDivs==null) {
this.statisticsDivs=[];
this.statisticsDivs.push(wasStatisticsDiv);
}
this.statisticsDivs.push(this.statisticsDiv);
} else if (wasStatisticsDiv=null) {
this.statisticsDivs=null;
}
this.selection.statisticsDivs=this.statisticsDivs;
this.selection.statisticsCnt=this.statisticsCnt;
this.selection.selectionClass=this.selectionClass;
this.selection.selectedImg=this.selectedImg;
this.selection.unselectedImg=this.unselectedImg;
this.selection.selectedTitle=this.selectedTitle;
this.selection.unselectedTitle=this.unselectedTitle;
if (wasListener != this.selectionListener) this.selection.addListener(this.selectionListener);
}
if (this.HTMLrendered && this.adjustColumns) this.redraw();
return true;
}
HxG_6.prototype.JSFDataTable.prototype.getAttribute=function (attribute) {
return (hX_6.getArg(this.attributeTable, this, attribute));
}
HxG_6.prototype.JSFDataTable.prototype.dispatchMonitorResize=function (evt) {
evt=(evt) ? evt : ((event) ? event: null);
if (evt) {
if (hX_6.brw.isIE()) {
var obj, src=((this.nodeType == hX_6.ELEMENT_NODE || this.nodeType == hX_6.DOCUMENT_NODE) ? this : this.parentNode);
if (src) {
obj=src.id;
if (obj.lastIndexOf("head1")>0) obj=obj.substr(0,obj.length-5);
else if (obj.lastIndexOf("head2")>0) obj=obj.substr(0,obj.length-5);
else if (obj.lastIndexOf("foot1")>0) obj=obj.substr(0,obj.length-5);
else if (obj.lastIndexOf("foot2")>0) obj=obj.substr(0,obj.length-5);
obj=hX_6.getComponentById(obj);
if (hX_6.brw.isIE()) {
if (obj.monitorTimer!=null) hX_6.i.killTimerTimed(obj.monitorTimer);
obj.monitorTimer=hX_6.i.startObjTimerTimed(obj, "resize", 10);
}
}
} else
 hX_6.redraw();
}
}
HxG_6.prototype.JSFDataTable.prototype.dispatchTimer=function (item, action) {
this.monitorTimer=null;
this.redraw();
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup=function () {
this.singleSelect=false;
this.statisticsCnt=0;
this.statisticsDiv=this.selectionClass=this.selectedImg=this.unselectedImg=this.selectedTitle=this.unselectedTitle=null;
this.statisticsDivs=null;
this.arrayMembers=[];
this.bDragSelected=false;
this.statisticsDivObj=null;
this.statisticsDivObjs=null;
this.selectionColumnClasses=null;
this.parsedSelectionClass=null;
this.selectionListeners=null;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.destroy=function() {
if (this.statisticsDivObjs!=null) {
delete this.statisticsDivObjs;
this.statisticsDivObjs=null;
}
if (this.statisticsDivs!=null) {
delete this.statisticsDivs;
this.statisticsDivs=null;
}
if (this.selectionColumnClasses) {
delete this.selectionColumnClasses;
this.selectionColumnClasses=null;
}
if (this.arrayMembers) {
delete this.arrayMembers;
this.arrayMembers=null;
}
if (this.selectionListeners) {
var s;
while (this.selectionListeners.length>0) {
s=this.selectionListeners.pop();
if (s.destroy) s.destroy();
}
this.selectionListeners=null;
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.addListener=function (objListener) {
if(objListener) {
if (this.selectionListeners==null) this.selectionListeners=[];
this.selectionListeners.push(objListener);
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.fireListeners=function (rowselectbehavior) {
if (this.selectionListeners) {
for (var i=0; i<this.selectionListeners.length; i++) {
if (hX_6.isFunction(this.selectionListeners[i]))
this.selectionListeners[i](rowselectbehavior);
else
 this.selectionListeners[i].selectionChanged(rowselectbehavior);
}
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.GROUP=null;
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.selectAll=function() {
var i, len=this.arrayMembers.length;
for (i=0; i<len; i++) {
this.arrayMembers[i].setSelected(true);
}
return false;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.selectNone=function() {
var i, len=this.arrayMembers.length;
for (i=0; i<len; i++) {
this.arrayMembers[i].setSelected(false);
}
return false;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.selectInverse=function() {
var i, len=this.arrayMembers.length;
for (i=0; i<len; i++) {
this.arrayMembers[i].setSelected(!this.arrayMembers[i].isSelected());
}
return false;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.selectMenu=function(selectId) {
var s=hX_6.getElementById(selectId);
if (s && s.options) {
if (s.options[0].selected) this.selectAll();
if (s.options[1].selected) this.selectNone();
if (s.options[2].selected) this.selectInverse();
}
return false;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.selectOne=function(index, bselected) {
if (index!=null && bselected!=null && index < this.arrayMembers.length) {
this.arrayMembers[index].setSelected (bselected);
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.isSelected=function(index) {
if (index!=null && index < this.arrayMembers.length)
return this.arrayMembers[index].isSelected();
else
 return null;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.UpdateStatistics=function (selected) {
var i,objDiv;
if (this.statisticsDivObj==null && this.statisticsDiv) {
objDiv=hX_6.getElementById(this.statisticsDiv);
if (objDiv) this.statisticsDivObj=objDiv.firstChild;
}
if (this.statisticsDivs!=null) {
if (this.statisticsDivObjs==null) this.statisticsDivObjs=[];
if (this.statisticsDivObjs.length!=this.statisticsDivs.length) {
delete this.statisticsDivObjs;
this.statisticsDivObjs=[];
for (i=0; i<this.statisticsDivs.length; i++) {
objDiv=hX_6.getElementById(this.statisticsDivs[i]);
if (objDiv) this.statisticsDivObjs.push(objDiv.firstChild);
}
}
} else this.statisticsDivObjs=null;
this.statisticsCnt+=(selected)?1:-1;
this.statisticsCnt=(this.statisticsCnt < 0)? 0: this.statisticsCnt;
if (this.statisticsDivObj && this.statisticsDivObj.data) this.statisticsDivObj.data=this.statisticsCnt;
if (this.statisticsDivObjs!=null) {
for (i=0; i < this.statisticsDivObjs.length; i++) {
if (this.statisticsDivObjs[i]!=null) {
this.statisticsDivObjs[i].data=this.statisticsCnt;
}
}
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.addMember=function (objHxCheckCellListener) {
this.arrayMembers.push(objHxCheckCellListener);
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.getRowColClasses=function () {
if (this.selectionClass) {
if (this.selectionColumnClasses==null || this.parsedSelectionClass!=this.selectionClass) {
this.parsedSelectionClass=this.selectionClass;
this.selectionColumnClasses=[];
var subs, i, n=0, str=new String(this.selectionClass);
while(true) {
i=str.indexOf(hX_6._C, n);
if (i<0) {
subs=str.substring(n,str.length);
this.selectionColumnClasses.push(subs);
break;
} else {
subs=str.substring(n,i);
this.selectionColumnClasses.push(subs);
n=i+1;
}
}
}
return this.selectionColumnClasses;
}
return null;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.isDragSelected=function() {
return this.bDragSelected;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.setDragSelected=function(bSelected) {
this.bDragSelected=bSelected;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.fireMouseDown=function(evt, bSelected) {
this.setDragSelected(bSelected);
hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.GROUP=this;
var eID;
this.extraIds=[];
if(document.attachEvent) {
eID=hX_6.attachEvent(document, hX_6._onMM, hX_6._lL, hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseEnterStatic);
this.extraIds.push([document, hX_6._onMM, eID]);
eID=hX_6.attachEvent(document, hX_6._onMU, hX_6._lL, hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseUpStatic);
this.extraIds.push([document, hX_6._onMU, eID]);
eID=hX_6.attachEvent(document, hX_6._onSS, hX_6._lL, hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onSelectStartStatic);
this.extraIds.push([document, hX_6._onSS, eID]);
window.event.cancelBubble=true;
window.event.returnValue=false;
} else if (document.addEventListener) {
eID=hX_6.attachEvent(document, hX_6._onMM, hX_6._lL, hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseEnterStatic, null, null, true);
this.extraIds.push([document, hX_6._onMM, eID]);
eID=hX_6.attachEvent(document, hX_6._onMU, hX_6._lL, hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseUpStatic, null, null, true);
this.extraIds.push([document, hX_6._onMU, eID]);
evt.preventDefault();
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onSelectStartStatic=function(evt) {
return false;
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseEnterStatic=function(evt) {
evt=(evt) ? evt : ((event) ? event: null);
hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.GROUP.onMouseEnter(evt);
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseEnter=function(evt) {
var i, len=this.arrayMembers.length;
for(i=0; i<len; i++) {
if(this.arrayMembers[i].isInElementBoundary(hX_6.g.toPoint(evt))) {
this.arrayMembers[i].setSelected (this.isDragSelected());
return;
}
}
}
HxG_6.prototype.JSFDataTable.prototype.HxTableSelectionGroup.prototype.onMouseUpStatic=function(evt) {
if (hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.GROUP) {
var e, thisp=hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.GROUP;
if (thisp.extraIds) {
while (thisp.extraIds.length > 0) {
e=thisp.extraIds.pop();
hX_6.removeEvent(e[0],e[1],e[2]);
}
}
thisp.extraIds=null;
}
hX_6.JSFDataTable.prototype.HxTableSelectionGroup.prototype.GROUP=null;
}
HxG_6.prototype.JSFBehaviorRowAction=function () {
this.type=hX_6.BHR_rowaction;
this.hiddenInputId="";
this.inputValue="";
this.colClass=null;
this.actionId="";
this.url="";
this.inputObj=null;
this.formObj=null;
this.trObj=null;
this.attributeTable=new Array();
this.attributeTable ['input-id']=['hiddenInputId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['input-value']=['inputValue',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['action-id']=['actionId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['url']=['url',hX_6.ARG_TO_NAN,false,null,null];
this.setAttribute(arguments);
}
HxG_6.prototype.JSFBehaviorRowAction.prototype=new hX_6.JSFBehavior();
HxG_6.prototype.JSFBehaviorRowAction.prototype.setAttributeCode=function() {
if(this.actionId){
this.inputObj=hX_6.getElementById(this.actionId);
this.trObj=hX_6.getParentOfType(this.inputObj,hX_6._TR);
} else {
this.inputObj=hX_6.getElementById(this.hiddenInputId);
this.formObj=hX_6.getParentOfType(this.inputObj, hX_6._FRM);
this.trObj=hX_6.getParentOfType(this.inputObj,hX_6._TR);
}
this.trObj.style.cursor="pointer";
return true;
}
HxG_6.prototype.JSFBehaviorRowAction.prototype.dispatchBehavior=function(thisObj, evt) {
if(this.actionId) {
if (hX_6.JSFBehaviorRowActionCheck(evt)) {
hX_6.action.processAction(this.DOMobj, evt, null, ["goto", "stop"], true, ["url('"+this.url+"')"], null, null, null);
}
return;
}
if (this.DOMobj != null && this.inputObj != null && this.formObj != null) {
if (hX_6.JSFBehaviorRowActionCheck(evt)) {
this.inputObj.disabled=false;
this.inputObj.value=this.inputValue;
this.formObj.submit();
this.inputObj.disabled=true;
}
}
return;
}
HxG_6.prototype.JSFBehaviorRowActionCheck=function (evt) {
evt=(evt) ? evt : ((event) ? event: null);
var r=true, tgt;
if (evt) {
tgt=hX_6.evtGetTarget(evt);
while (r && tgt!=null && tgt.tagName!=undefined) {
if (tgt.tagName == hX_6._TAB || tgt.tagName == hX_6._TD || tgt.tagName == hX_6._TH || tgt.tagName == hX_6._TR) {
tgt=null;
} else if (tgt.tagName == hX_6._ANC) {
r=!(tgt.onclick!=null || tgt.onmousedown!=null || (tgt.href!=null && tgt.href!=hX_6._E && tgt.getAttribute("href",2)!=hX_6._LB));
tgt=tgt.parentNode;
} else if (tgt.tagName == hX_6._INP) {
r=!(tgt.onclick!=null || tgt.onmousedown!=null || (tgt.type != null && tgt.type=="submit"));
tgt=tgt.parentNode;
} else {
tgt=tgt.parentNode;
}
}
}
return r;
}
HxG_6.prototype.JSFBehaviorRowCategory=function () {
this.type=hX_6.BHR_rowcategory;
this.catId=this.expImgSrc=this.colImgSrc=this.firstRowNum=this.lastRowNum=this.componentId=this.initImg="";
this.expImg=this.colImg=this.collapsedAlt=this.collapsedTitle=this.expandedAlt=this.expandedTitle=null;
this.attributeTable=[];
this.attributeTable ['cat-id']=['catId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['twistie-exp-img']=['expImgSrc',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['twistie-col-img']=['colImgSrc',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['first-row-num']=['firstRowNum',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['last-row-num']=['lastRowNum',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['component-id']=['componentId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['init-img']=['initImg',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['collapsed-alt']=['collapsedAlt',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['expanded-alt']=['expandedAlt',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['collapsed-title']=['collapsedTitle',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['expanded-title']=['expandedTitle',hX_6.ARG_TO_NAN,false,null,null];
this.setAttribute(arguments);
}
HxG_6.prototype.JSFBehaviorRowCategory.prototype=new hX_6.JSFBehavior();
HxG_6.prototype.JSFBehaviorRowCategory.prototype.IMAGE_ARRAY=[];
HxG_6.prototype.JSFBehaviorRowCategory.prototype.setAttributeCode=function() {
if(!this.expImgSrc) this.expImgSrc=hX_6.currentResource().baseImgPath + 'datagrid_category_expanded_v3_1.gif';
if(!this.colImgSrc) this.colImgSrc=hX_6.currentResource().baseImgPath + 'datagrid_category_collapsed_v3_1.gif';
for(var i=0;i < this.IMAGE_ARRAY.length;i=i+2) {
if(this.IMAGE_ARRAY[i] == this.expImgSrc) this.expImg=this.IMAGE_ARRAY[i+1];
if(this.IMAGE_ARRAY[i] == this.colImgSrc) this.colImg=this.IMAGE_ARRAY[i+1];
}
if(this.expImg==null){
this.expImg=new Image();
this.expImg.src=this.expImgSrc;
this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.expImgSrc;
this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.expImg;
}
if(this.colImg==null){
this.colImg=new Image();
this.colImg.src=this.colImgSrc;
this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.colImgSrc;
this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.colImg;
}
if (this.initImg){
var twistie=hX_6.getElementById(this.catId+'img'), twistieBtn=hX_6.getElementById(this.catId+'button');
if (twistie) {
if(this.initImg == 'exp') {
twistie.src=this.expImg.src;
if (this.expandedAlt && twistie.alt!=this.expandedAlt) twistie.alt=this.expandedAlt;
if (twistieBtn && this.expandedTitle && twistieBtn.title!=this.expandedTitle) twistieBtn.title=this.expandedTitle;
} else {
twistie.src=this.colImg.src;
if (this.collapsedAlt && twistie.alt!=this.collapsedAlt) twistie.alt=this.collapsedAlt;
if (twistieBtn && this.collapsedTitle && twistieBtn.title!=this.collapsedTitle) twistieBtn.title=this.collapsedTitle;
}
}
}
return true;
}
HxG_6.prototype.JSFBehaviorRowCategory.prototype.setEventCode=function() {
hX_6.bodyLoadRedrawB=true;
return true;
}
HxG_6.prototype.JSFBehaviorRowCategory.prototype.dispatchBehavior=function(thisObj, evt) {
var cat_hide_rows,hide_row, hideId=this.componentId + "_hide_";
this.processRows(this.catId);
for(cat_hide_rows=0;cat_hide_rows <= this.lastRowNum;cat_hide_rows++) {
hide_row=hX_6.getElementById(hideId+cat_hide_rows+'');
if(hide_row!=null) hide_row.parentNode.style.display='none';
}
hX_6.redraw();
return;
}
HxG_6.prototype.JSFBehaviorRowCategory.prototype.processRows=function(currentRow) {
var u=0, collapsed=false, rowNum=0,row=null,cell=null,cellId,twistieId=currentRow+'img',twistieBtnId=currentRow+'button',cellId="";
var twistie=hX_6.getElementById(twistieId), twistieBtn=hX_6.getElementById(twistieBtnId);
if (twistie.src == this.colImg.src){
collapsed=true;
twistie.src=this.expImg.src;
if (this.expandedAlt && twistie.alt!=this.expandedAlt) twistie.alt=this.expandedAlt;
if (twistieBtn && this.expandedTitle && twistieBtn.title!=this.expandedTitle) twistieBtn.title=this.expandedTitle;
}else{
twistie.src=this.colImg.src;
if (this.collapsedAlt && twistie.alt!=this.collapsedAlt) twistie.alt=this.collapsedAlt;
if (twistieBtn && this.collapsedTitle && twistieBtn.title!=this.collapsedTitle) twistieBtn.title=this.collapsedTitle;
}
while(true) {
cellId=currentRow+rowNum;
if ((cell=hX_6.getElementById(cellId))!=null){
row=cell.parentNode;
this.changeRowState(row, collapsed, false);
} else if ((cell=hX_6.getElementById(cellId + '_e'))!=null){
row=cell.parentNode;
this.changeRowState(row, collapsed, true);
} else {
break;
}
rowNum++;
}
return;
}
HxG_6.prototype.JSFBehaviorRowCategory.prototype.changeRowState=function(row, collapsed, subCategoryRow) {
if(collapsed == true){
var i, cell, cellId, children=row.childNodes, isHiddenRow=false, _S1="_hide_";
for (i=0; i < children.length; i++){
cell=children[i];
this.restoreStateOfSubCategories(cell);
cellId=cell.id;
if (cellId != null){
if (cellId.indexOf(_S1) > 0){
isHiddenRow=true;
break;
}
}
}
if (isHiddenRow == false && subCategoryRow == false){
row.style.display=hX_6._E;
}
} else {
row.style.display=hX_6._NO;
}
}
HxG_6.prototype.JSFBehaviorRowCategory.prototype.restoreStateOfSubCategories=function(cell) {
if (cell != null && (cell.tagName == hX_6._TD || cell.tagName==hX_6._TH)){
var cellChildren=cell.childNodes,j,cellChild,buttonId,buttonCategoryId,twistie,_S1="button",_S2="img",subCellId,rowNum;
for (j=0; j < cellChildren.length; j++){
cellChild=cellChildren[j];
if (cellChild.tagName == HxG_6.prototype._BTN){
buttonId=cellChild.id;
buttonCategoryId=buttonId.substring(0, buttonId.indexOf(_S1));
twistie=hX_6.getElementById(buttonCategoryId+_S2);
if (twistie.src == this.expImg.src){
rowNum=0;
while(true) {
subCellId=buttonCategoryId+rowNum;
if ((subCell=hX_6.getElementById(subCellId))!=null){
subCell.parentNode.style.display=hX_6._E;
}else{
break;
}
rowNum++;
}
}
}
}
}
}
HxG_6.prototype.JSFBehaviorRowEditShowHide=function () {
this.type=hX_6.BHR_roweditshowhide;
this.divId=this.show=hX_6._E;
this.divObj=this.trObj=null;
this.cloneObj=null;
this.relocated=false;
this.attributeTable=new Array();
this.attributeTable ['div-id']=['divId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['show']=['show',hX_6.ARG_TO_NAN,false,null,null];
this.setAttribute(arguments);
}
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype=new hX_6.JSFBehavior();
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.setAttributeCode=function() {
this.divObj=hX_6.getElementById(this.divId);
this.trObj=hX_6.getParentOfType(this.divObj,hX_6._TR);
this.divObj.style.display=hX_6._NO;
return true;
}
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.destroy=function() {
if (this.cloneObj!=null) delete this.cloneObj;
this.cloneObj=null;
return true;
}
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.dispatchBehavior=function(thisObj, evt) {
if (this.divObj==null || !this.divObj.style || this.trObj==null) return;
if(this.show.toLowerCase()==hX_6._FLS) {
this.restoreState(this.cloneObj, this.divObj);
this.divObj.style.visibility=hX_6._HI;
this.divObj.style.display=hX_6._NO;
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN=null;
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_STATE=null;
} else {
if(HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN!=null && HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN.style.visibility!=hX_6._HI) {
var div=HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN;
var state=HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_STATE;
this.restoreState(state, div);
div.style.visibility=hX_6._HI;
div.style.display=hX_6._NO;
}
var o=null, s=hX_6._E, i=this.DOMobj.id.lastIndexOf("__editCtrl");
if (i>=0) {
s=this.DOMobj.id.substr(0,i)+"__cancelCtrl";
o=hX_6.getBehaviorById(s,hX_6.BHR_roweditshowhide,"click");
}
if (o) {
o.saveState();
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN=o.divObj;
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_STATE=o.cloneObj;
}
if (!this.relocated) {
var pobj=this.divObj.parentNode;
while (pobj && pobj.tagName && pobj.tagName!=hX_6._TAB) pobj=pobj.parentNode;
while (pobj && (pobj.id==null || pobj.id.length==0)) {
pobj=pobj.parentNode;
while (pobj && pobj.tagName && pobj.tagName!=hX_6._TAB) pobj=pobj.parentNode;
}
if (pobj) {
if (pobj.parentNode && pobj.parentNode.tagName && pobj.parentNode.tagName==hX_6._DIV && pobj.parentNode.id && pobj.parentNode.id == pobj.id+"Div")
pobj=pobj.parentNode;
if (pobj) {
pobj.parentNode.insertBefore(this.divObj, (pobj.nextSibling)?pobj.nextSibling:null);
this.relocated=true;
}
}
}
this.divObj.style.display=hX_6._BLK;
var pageT=Math.max(document.body.scrollTop,document.body.parentNode.scrollTop),
pageL=Math.max(document.body.scrollLeft,document.body.parentNode.scrollLeft),
pageW=hX_6.g.getWindowClientWidth(),
pageH=hX_6.g.getWindowClientHeight(),
rowW=hX_6.g.getRendWidth(this.trObj), rowH=hX_6.g.getRendHeight(this.trObj),
rowL=hX_6.g.getAbsPosLeft(this.trObj), rowT=hX_6.g.getAbsPosTop(this.trObj),
spanW=hX_6.g.getRendWidth(this.divObj), spanH=hX_6.g.getRendHeight(this.divObj);
var spanL=rowL + (rowW/2) - (spanW/2);
if (pageW>0 && spanW>0 && ((spanL+spanW) > (pageL+pageW)))
spanL=(pageL+pageW)-spanW;
var spanT=(rowT + (rowH/2)) - (spanH/2);
if (pageH>0 && spanH>0 && ((spanT+spanH) > (pageT+pageH)))
spanT=(pageT+pageH)-spanH;
if(spanL<0) spanL=0;
if(spanT<0) spanT=0;
var a,f,c,pY=(this.divObj.offsetParent)?hX_6.g.getAbsPosTop(this.divObj.offsetParent):0, pX=(this.divObj.offsetParent)?hX_6.g.getAbsPosLeft(this.divObj.offsetParent):0;
this.divObj.style.left=(spanL-pX) + hX_6._PX;
this.divObj.style.top=(spanT-pY) + hX_6._PX;
this.divObj.style.zIndex=(hX_6.BIG_ZINDEX-100)+hX_6._E;
this.divObj.style.visibility=hX_6._VS;
a=hX_6.getComponentsInId (this.divObj);
if (a!=null) {
for (i=0;i<a.length;i++) {
c=hX_6.getComponentById(a[i]);
if (c!=null) c.redraw();
}
delete a;
}
if (hX_6.tabNav == null) hX_6.tabNav=new hX_6.tabNavigator();
f=hX_6.tabNav.getFirst(this.divObj);
if (f) hX_6.i.setFocus(f, false, true);
}
}
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN=null;
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_STATE=null;
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.saveState=function() {
if (this.cloneObj!=null) {
delete this.cloneObj;
this.cloneObj=null;
}
this.cloneObj=this.divObj.cloneNode(true);
this.tidyClone(this.divObj, this.cloneObj);
}
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.restoreState=function(objFrom, objTo) {
var i,c;
if(objFrom.nodeName != objTo.nodeName || objFrom.childNodes.length != objTo.childNodes.length) return;
if (objFrom.value!=null) {
if (objTo.tagName==hX_6._SEL) {
if (objTo.options.length==objFrom.options.length) {
for (i=0; i<objTo.options.length; i++)
if (objTo.options[i].selected!=objFrom.options[i].selected) objTo.options[i].selected=objFrom.options[i].selected;
}
objTo.selectedIndex=objFrom.selectedIndex;
objTo.value=objFrom.value;
} else if (objTo.tagName!=hX_6._OPT) {
if (objTo.value!=objFrom.value) objTo.value=objFrom.value;
if (objTo.checked!=undefined && objTo.checked!=objFrom.checked) objTo.checked=objFrom.checked;
}
}
for(i=0; i<objFrom.childNodes.length; i++) this.restoreState(objFrom.childNodes[i], objTo.childNodes[i]);
}
HxG_6.prototype.JSFBehaviorRowEditShowHide.prototype.tidyClone=function(div, clone) {
var dobj, cobj, i, j;
if (div!=null && clone!=null) {
if (div.tagName && clone.tagName && div.tagName==hX_6._SEL && clone.tagName==hX_6._SEL) {
for (i=0; i<div.options.length; i++) clone.options.selected=div.options.selected;
clone.value=div.value;
clone.selectedIndex=div.selectedIndex;
}
dobj=div.firstChild; cobj=clone.firstChild;
while (dobj!=null) {
this.tidyClone(dobj,cobj);
cobj=cobj.nextSibling;
dobj=dobj.nextSibling;
}
}
}
HxG_6.prototype.JSFBehaviorRowEditSave=function () {
this.type=hX_6.BHR_roweditsave;
this.divId=hX_6._E;
this.tableId=hX_6._E;
this.hiddenId=hX_6._E;
this.divObj=null;
this.tableObj=null;
this.formObj=null;
this.hiddenObj=null;
this.attributeTable=new Array();
this.attributeTable ['div-id']=['divId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['table-id']=['tableId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['hidden-id']=['hiddenId',hX_6.ARG_TO_NAN,false,null,null];
this.setAttribute(arguments);
}
HxG_6.prototype.JSFBehaviorRowEditSave.prototype=new hX_6.JSFBehavior();
HxG_6.prototype.JSFBehaviorRowEditSave.prototype.setAttributeCode=function() {
this.divObj=hX_6.getElementById(this.divId);
this.tableObj=hX_6.getElementById(this.tableId);
this.formObj=hX_6.getParentOfType(this.tableObj,hX_6._FRM);
this.hiddenObj=hX_6.getElementById(this.hiddenId);
return true;
}
HxG_6.prototype.JSFBehaviorRowEditSave.prototype.dispatchBehavior=function(thisObj, evt) {
if(this.formObj==null) return;
this.hiddenObj.value="clicked";
this.formObj.submit();
}
HxG_6.prototype.JSFWebPagerSubmit=function(strId, nIndex, strFormId)
{
if(strId==null || nIndex==null || strFormId==null) return;
var objField=null, objForm=null, cur=null;
if(document.getElementById)
{
objField=document.getElementById(strId);
objForm=document.getElementById(strFormId);
}
if((objField==null)||(objForm==null))
{
if((!document.forms[strFormId])||(!document.forms[strFormId].strId))
{
return;
}
objField=document.forms[strFormId].strId;
objForm=document.forms[strFormId];
}
if(objField != null && objForm != null) {
cur=objField.value;
objField.value=nIndex;
hX_6.i.fireEvent(objForm, "onSubmit")
objForm.submit();
objField.value=cur;
}
}
HxG_6.prototype.JSFBehaviorRowSelect=function () {
this.type=hX_6.BHR_rowselect;
this.tableId=this.inputButtonId=this.inputValueId=this.selectedImg=this.unselectedImg=this.selectedTitle=this.unselectedTitle="";
this.tableRightId=this.tableLeftId=null;
this.selectionClass=this.selectionColumnClasses=this.parsedSelectionClass=null;
this.tableObj=this.tableComponent=this.inputButton=this.inputValue=this.inputTD=null;
this.extraEvents=this.extraIds=null;
this.tdCells=this.tdCellsR=null;
this.bSelected=false;
this.attributeTable=new Array();
this.attributeTable ['table-id']		=['tableId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['input-id']		=['inputButtonId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['input-value']		=['inputValueId',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['selected-img']	=['selectedImg',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['unselected-img']	=['unselectedImg',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['selected-alt']	=['selectedTitle',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['unselected-alt']	=['unselectedTitle',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['selection-class']	=['selectionClass',hX_6.ARG_TO_NAN,false,null,null];
this.attributeTable ['selected']		=['bSelected',hX_6.ARG_IS_TRUE, true, null,	null];
this.setAttribute(arguments);
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype=new hX_6.JSFBehavior();
HxG_6.prototype.JSFBehaviorRowSelect.prototype.destroyCode=function () {
if (this.selectionColumnClasses) {
delete this.selectionColumnClasses;
this.selectionColumnClasses=null;
}
if (this.tdCells) {
delete this.tdCells;
this.tdCells=null;
}
if (this.tdCellsR) {
delete this.tdCellsR;
this.tdCellsR=null;
}
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.setEventCode=function () {
if (this.tableComponent==null) {
if (this.tableId) this.tableComponent=hX_6.getComponentById(this.tableId);
if (this.tableComponent==null) {
var idstring=this.tableId;
if (this.DOMobj.id && (idstring==null || idstring.length<=0)) {
idstring=hX_6.stripSuffix(this.DOMobj.id,hX_6._CL);
idstring=hX_6.stripSuffix(idstring,hX_6._CL);
}
if (idstring && idstring.length>0) {
this.tableId=idstring;
this.tableComponent=hX_6.getComponentById(this.tableId);
if (this.tableComponent==null) {
this.tableComponent=new hX_6.JSFDataTable("selection:true");
hX_6.addComponent(this.tableId, this.tableComponent);
}
}
if (this.tableComponent!=null && this.tableId!=null) {
var pdiv, test=hX_6.getElementById(this.tableId + "Left");
if (test!=null) {
pdiv=test.parentNode;
while (pdiv!=null) {
if (pdiv.id && pdiv.id==this.tableId) break;
pdiv=pdiv.parentNode;
}
if (pdiv && pdiv.id && pdiv.id==this.tableId) this.tableLeftId=this.tableId + "Left";
}
test=hX_6.getElementById(this.tableId + "Right");
if (test!=null) {
pdiv=test.parentNode;
while (pdiv!=null) {
if (pdiv.id && pdiv.id==this.tableId) break;
pdiv=pdiv.parentNode;
}
if (pdiv && pdiv.id && pdiv.id==this.tableId) this.tableRightId=this.tableId + "Right";
}
if (this.tableLeftId==null && this.tableRightId!=null) {
this.tableLeftId=this.tableRightId;
this.tableRightId=null;
}
}
}
}
if (this.inputButtonId==null || this.inputButtonId.length<=0)
this.inputButtonId=this.DOMobj.id + "__input_sel";
if (this.inputValueId==null || this.inputValueId.length<=0)
this.inputValueId=this.DOMobj.id + "__hidden_sel";
this.inputTD=this.getParentOfTypeCell(this.DOMobj);
this.inputValue=hX_6.getElementById(this.inputValueId);
this.inputButton=hX_6.getElementById(this.inputButtonId);
if (this.inputButton != null && this.inputTD!=null && this.inputValue!=null) {
if (this.tableComponent) this.tableComponent.selection.addMember(this);
var wasSelected=this.bSelected;
if (this.inputValue.value && this.inputValue.value!=null)
this.bSelected=(hX_6.isString(this.inputValue.value))?((this.inputValue.value.toLowerCase()=="true")):((!(!this.inputValue.value)));
if (this.inputTD.id==null || this.inputTD.id.length<=0)
this.inputTD.id=this.DOMobj.id+"TDSEL";
hX_6.attachEvent(this.inputTD, hX_6._onMC, hX_6._lL, this.subDispatch);
hX_6.attachEvent(this.inputTD, hX_6._onMD, hX_6._lL, this.subDispatch);
hX_6.attachEvent(this.inputTD, hX_6._onKP, hX_6._lL, this.subDispatch);
if (this.extraEvents==null) this.extraEvents=[];
this.extraEvents.push([this.inputTD, hX_6._onMC]);
this.extraEvents.push([this.inputTD, hX_6._onMD]);
this.extraEvents.push([this.inputTD, hX_6._onKP]);
if (this.tableId && (this.selectionClass!=null || (this.tableComponent && this.tableComponent.selection.selectionClass!=null))) {
this.tableObj=hX_6.getElementById(this.tableId);
if (this.tableObj) {
var i, table=null, tr=hX_6.getParentOfType(this.DOMobj,hX_6._TR);
if (tr) table=hX_6.getParentOfType(tr,hX_6._TAB);
while (tr!=null && table!=null && (table.id!=this.tableId && (this.tableLeftId==null || (this.tableLeftId!=null && table.id!=this.tableLeftId)) && (this.tableRightId==null || (this.tableRightId!=null && table.id!=this.tableRightId)))) {
tr=hX_6.getParentOfType(table,hX_6._TR);
if (tr) table=hX_6.getParentOfType(tr,hX_6._TAB);
}
if (tr!=null && table!=null && (table.id==this.tableId || (this.tableLeftId!=null && table.id==this.tableLeftId) || (this.tableRightId!=null && table.id==this.tableRightId))) {
this.tdCells=[];
for (i=0; i<tr.cells.length; i++) {
this.tdCells[i]=tr.cells[i];
}
if (this.tableRightId!=null) {
var tr2, table2=hX_6.getElementById(this.tableRightId);
if (table2) {
table2=(table2.tBodies!=undefined && table2.tBodies.length>0)?table2.tBodies[0]:table2;
if (table2 && (tr.rowIndex < table2.rows.length)) {
tr2=table2.rows[tr.rowIndex];
if (tr2) {
this.tdCellsR=[];
for (i=0; i<tr2.cells.length; i++) {
this.tdCellsR[i]=tr2.cells[i];
}
}
}
}
}
}
var n=0, styleList=(this.selectionClass)?this.getRowColClasses():this.tableComponent.selection.getRowColClasses();
for (i=0; i < this.tdCells.length; i++) {
this.tdCells[i]=[this.tdCells[i],this.tdCells[i].className,styleList[n]];
n++;
n=(n >= styleList.length) ? 0 : n;
}
if (this.tdCellsR) {
for (i=0; i < this.tdCellsR.length; i++) {
this.tdCellsR[i]=[this.tdCellsR[i],this.tdCellsR[i].className,styleList[n]];
n++;
n=(n >= styleList.length) ? 0 : n;
}
}
}
}
if (this.bSelected && this.tableComponent && this.tableComponent.selection.singleSelect) {
this.tableComponent.selection.selectNone();
this.setSelected(true);
}
this.visuallySelect(this.bSelected);
if (this.tableComponent && (this.bSelected != wasSelected)) {
this.tableComponent.selection.UpdateStatistics(this.bSelected);
this.tableComponent.selection.fireListeners(this);
}
}
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.subDispatch=function(evt) {
evt=(evt) ? evt : ((event) ? event: null);
if (evt) {
var b, c=hX_6.evtGetTarget(evt);
if (c!=null) {
while (c && c.tagName) {
if (c.tagName==hX_6._TD || c.tagName==hX_6._TH) break;
c=c.parentNode;
}
if (c && c.tagName && (c.tagName == hX_6._TD || c.tagName == hX_6._TH) && c.id) {
var id=c.id.substr(0,c.id.length-5);
b=hX_6.getBehaviorById(id, hX_6.BHR_rowselect, hX_6._evMC);
if (b!=null && b.DOMobj) return(b.dispatchBehavior (b.DOMobj, evt));
}
}
}
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.dispatchBehavior=function(thisObj, evt) {
if ((this.DOMobj == null) || (evt == null)) return;
var r=false;
if (evt.type==hX_6._evMC) {
} else if (evt.type==hX_6._evMD) {
this.setSelected(!this.isSelected());
hX_6.i.setFocus(this.inputButton,false,true);
if (this.tableComponent) this.tableComponent.selection.fireMouseDown(evt, this.isSelected());
r=true;
} else if (evt.type==hX_6._evKP) {
var nKey=hX_6.getKeyCode(evt);
if (nKey==hX_6.KEY_SPACEBAR) this.setSelected(!this.isSelected());
r=true;
}
return r;
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.setSelected=function (bSelected) {
if(this.bSelected==bSelected) return;
if (bSelected && this.tableComponent && this.tableComponent.selection.singleSelect) this.tableComponent.selection.selectNone();
this.bSelected=bSelected;
this.inputValue.value=bSelected;
this.visuallySelect(bSelected);
if (this.tableComponent) {
this.tableComponent.selection.UpdateStatistics(bSelected);
this.tableComponent.selection.fireListeners(this);
}
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.visuallySelect=function (bSelected) {
if (this.inputButton && this.inputButton.type && this.inputButton.type.toLowerCase()==hX_6._lIMG) {
var img=null, alt=null;
if (bSelected) {
img=(this.selectedImg)?this.selectedImg:(this.tableComponent?this.tableComponent.selectedImg:null);
alt=(this.selectedTitle)?this.selectedTitle:(this.tableComponent?this.tableComponent.selectedTitle:null);
} else {
img=(this.unselectedImg)?this.unselectedImg:(this.tableComponent?this.tableComponent.unselectedImg:null);
alt=(this.unselectedTitle)?this.unselectedTitle:(this.tableComponent?this.tableComponent.unselectedTitle:null);
}
if (img!=null && this.inputButton.src!=img) this.inputButton.src=img;
if (alt!=null) {
if (this.inputButton.alt!=alt) this.inputButton.alt=alt;
if (this.inputButton.title!=alt)this.inputButton.title=alt;
}
}
var c,i;
if (this.tdCells && (this.selectionClass!=null || (this.tableComponent && this.tableComponent.selection.selectionClass!=null))) {
for (i=0; i < this.tdCells.length; i++) {
c=this.tdCells[i][((bSelected)?2:1)];
if (this.tdCells[i][0].className!=c) this.tdCells[i][0].className=c;
}
}
if (this.tdCellsR!=null && (this.selectionClass!=null || (this.tableComponent && this.tableComponent.selection.selectionClass!=null))) {
for (i=0; i < this.tdCellsR.length; i++) {
c=this.tdCellsR[i][((bSelected)?2:1)];
if (this.tdCellsR[i][0].className!=c) this.tdCellsR[i][0].className=c;
}
}
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.isSelected=function () {
return this.bSelected;
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.isInElementBoundary=function(pt)
{
var rect=new hX_6.HxRect(this.inputTD);
var r=rect.hitTest(pt);
delete rect;
return r;
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.getParentOfTypeCell=function(node) {
var p, r=null;
if (node!=null) {
p=node.parentNode;
while (p!=null && p.tagName) {
if(p.tagName==hX_6._TD || p.tagName==hX_6._TH) {
r=p;
break;
}
p=p.parentNode;
}
}
return r;
}
HxG_6.prototype.JSFBehaviorRowSelect.prototype.getRowColClasses=function () {
if (this.selectionClass) {
if (this.selectionColumnClasses==null || this.parsedSelectionClass!=this.selectionClass) {
this.parsedSelectionClass=this.selectionClass;
this.selectionColumnClasses=[];
var subs, i, n=0, str=new String(this.selectionClass);
while(true) {
i=str.indexOf(hX_6._C, n);
if (i<0) {
subs=str.substring(n,str.length);
this.selectionColumnClasses.push(subs);
break;
} else {
subs=str.substring(n,i);
this.selectionColumnClasses.push(subs);
n=i+1;
}
}
}
return this.selectionColumnClasses;
}
return null;
}
