var I=document.images;
function W(s){document.write(s)}
function WL(s){document.writeln(s)}
function TabPanel( parentElement, flagNextPrev, flagTab, UrlPrefix)
{this.UrlPrefix= UrlPrefix;this.variableTabLength= false;this.tabIcons= new Array();this.height="500";this.width="900"; 
this.initialPanelId= null; 
this.selectedTab= 1;this.selectedTabID= 0;this.containerDiv= parentElement;this.flagNextPrev= flagNextPrev; 
this.flagTabButtons= flagTab; 
this.Panes= new Array();this.Panes[0]="myTab";this.ButtonArray= new Array();this.ButtonArray[0]="myButton";this.OriginPanes= new Array();this.disableCancelButtonArray= null;this.disableFinishButtonArray= null;this.enableFinishButtonArray= null;this.onFinish= null;this.onCancel= null;this.styleClass="tabbedPanel"; 
this.enableFinish= false; 
this.tabSize= null;this.tabHeight= -1;this.tabWidth= 1;this.startIndex= 1;this.maxTabWidth= -1;this.jsfFinishButton= null;this.jsfCancelButton= null;this.slantActiveLeft= 2;this.slantActiveRight= 2;this.slantInactiveLeft=2;this.slantInactiveRight= 2;this.loaded= false;this.scrollable= false;this.scrollableV= false;this.scrollableH= false;this.handlers= new Array(); 
var isodctpIE5= false;var browser= detectBrowser();if(browser.substring(browser.indexOf("MSIE")+5)<6){isodctpIE5= true;}
 
this.type="TabPanel";this.pageId="tabpanel1";this.getDefaultSystemIcon= function(UrlPrefix)
{this.tabIcons["previous"]= UrlPrefix+"jsl/tab/icons/previous.gif"; 
this.tabIcons["disprevious"]= UrlPrefix+"jsl/tab/icons/previous_disabled.gif"; 
this.tabIcons["next"]= UrlPrefix+"jsl/tab/icons/next.gif"; 
this.tabIcons["disnext"]= UrlPrefix+"jsl/tab/icons/next_disabled.gif"; 
}
this.getDefaultSystemIcon(UrlPrefix);this.getType= function(){return this.type;}
this.getId= function(){return this.pageId;}
this.setNipAndTuckStyle= function(al, ar, ial, iar)
{this.slantActiveLeft=(al&&al>0)?al:0;this.slantActiveRight=(ar&&ar>0)?ar:0;this.slantInactiveLeft=(ial&&ial>0)?ial:0;this.slantInactiveRight=(iar&&iar>0)?iar:0;}
this.addHandler= function(action, funcName)
{this.handlers[this.handlers.length]= new Array(action, funcName);}
this.addFinishCancelButton= function(enableArray)
{if(enableArray!=null&&enableArray.length>0){this.enableCancel= true;this.enableFinish= true;this.enableFinishButtonArray= enableArray;}
}
this.disableCancelButton= function(disableArray){if(disableArray!= null&& disableArray.length> 0){this.disableCancelButtonArray= disableArray;}
}
this.disableFinishButton= function(disableArray){if(disableArray!= null&& disableArray.length> 0){this.disableFinishButtonArray= disableArray;}
}
this.setFinishButtonId= function(finishId)
{this.jsfFinishButton= document.getElementById(finishId);}
this.setCancelButtonId= function(cancelId)
{this.jsfCancelButton=document.getElementById(cancelId);}
this.setBackButtonId= function(backId)
{this.jsfBackButton=document.getElementById(backId);}
this.setNextButtonId= function(nextId)
{this.jsfNextButton=document.getElementById(nextId);}
this.setStyleClass= function(prefix)
{this.styleClass= prefix;this.containerDiv.className= this.styleClass+"-classForTabSysIcons";var icons= new iconLibrary(this.containerDiv,"list-style-image");for(var key in icons){if(icons[key].indexOf("http")>-1){this.tabIcons[key]= icons[key];}else{this.tabIcons[key]= this.UrlPrefix+ icons[key];}
}
}
this.displayPanel= function(panelId)
{panelId= this.getClientId(panelId); 
for(var i=1; i< this.Panes.length; i++)
{if( this.Panes[i].divObj.DIVID== panelId)
{this.paneSelected(panelId, null,true);break;}
}
}
this.OnFinishButtonClick= function(e) 
{var finishButton=(isIE())?window.event.srcElement:e.target;var tabobj= finishButton.tabobj;var tabpanelForm= findForm(finishButton);for(var i=0; i<tabobj.handlers.length;i++)
{if(tabobj.handlers[i][0].toUpperCase()=="ONFINISH"){var handler= tabobj.handlers[i][1];var e= new ODCEvent("onFinish");e.tabpanelForm=tabpanelForm;if(eval(handler+".call(this,this, e);")== false)
{return false;}
break;}
}
}
this.OnCancelButtonClick= function(e) 
{var cancelButton=(isIE())?window.event.srcElement:e.target;var tabobj= cancelButton.tabobj;var tabpanelForm= findForm(cancelButton);for(var i=0; i<tabobj.handlers.length;i++)
{if(tabobj.handlers[i][0].toUpperCase()=="ONCANCEL"){var handler= tabobj.handlers[i][1];var e= new ODCEvent("onCancel");e.tabpanelForm=tabpanelForm;if(eval(handler+".call(this,this, e);")== false)
{return false;}
break;}
}
return true;}
this.restoreUIState= function(stateString)
{this.selectedTabID= stateString;if(stateString!= null&&stateString!="")
this.showPane(stateString, null,true);}
this.generateUIStateString= function()
{return this.selectedTabID;}
this.PreviousTab= function()
{if(this.startIndex==1){document.getElementById(this.containerDiv.id+this.styleClass+"tabnexticon").focus();return;}
this.startIndex--;var tabTable= document.getElementById(this.containerDiv.id+this.styleClass+"tabtable");this.showHideTab(tabTable);try{document.getElementById(this.containerDiv.id+this.styleClass+"tabprevicon").focus();}catch(e){}
}
this.NextTab= function()
{if(this.startIndex+this.tabSize> this.Panes.length-1){document.getElementById(this.containerDiv.id+this.styleClass+"tabprevicon").focus();return;}
this.startIndex++;var tabTable= document.getElementById(this.containerDiv.id+this.styleClass+"tabtable");this.showHideTab(tabTable);try{document.getElementById(this.containerDiv.id+this.styleClass+"tabnexticon").focus();}catch(e){}
}
this.addCaseFromDIV= function(ID, name, DIVID, NXTID, PRVID, OnEnter, OnExit){var ID= ID; 
var name= name; 
var DIVID= DIVID; 
var NXTID= NXTID; 
var PRVID= PRVID; 
var divObj;try{divObj= document.getElementById(DIVID);} catch(e){divObj= null;}
this.processDivObject(ID, name, divObj, NXTID, PRVID, OnEnter, OnExit)
}
this.processDivObject= function(ID, name, divObj, NXTID, PRVID, OnEnter, OnExit){var tabNo= this.Panes.length;var pane= new Pane();divObj.style.visibility="visible";divObj.ID= ID; 
divObj.name= name; 
divObj.DIVID= divObj.getAttribute("id"); 
if(NXTID== null){divObj.NXTID="undefined";} else{divObj.NXTID= NXTID; 
}
if(PRVID== null){divObj.PRVID="undefined";} else{divObj.PRVID= PRVID; 
}
divObj.handlers= new Array;if(OnEnter!=null&& OnEnter!='undefined')
{divObj.handlers["onEnter"]= OnEnter;}
if(OnExit!=null&&OnExit!='undefined')
{divObj.handlers["onExit"]= OnExit;}
var sWidth= this.width+"";var sHeight= this.height+"";if(sWidth.indexOf("%")>= 0){divObj.style.width="100%";} else{divObj.style.width="10px";divObj.style.overflow="auto";this.scrollableH= true;}
if(sHeight.indexOf("%")>= 0){divObj.style.height="100%";} else{divObj.style.height="10px";divObj.style.overflow="auto";this.scrollableV= true;}
pane.divObj= divObj;pane.Name= name;this.Panes[tabNo]= pane;this.OriginPanes[this.OriginPanes.length]= pane;}
this.redraw= function()
{while(this.containerDiv.hasChildNodes())
this.containerDiv.removeChild(this.containerDiv.lastChild);this.updateControl(true);}
this.setHeight= function(height)
{this.height= height;}
this.setVariableTabLength= function(variableTabLength)
{this.variableTabLength= variableTabLength;}
this.setWidth= function(width)
{this.width= width;}
this.getClientId= function(serverId)
{return this.containerDiv.id+":"+serverId;}
this.show= function()
{this.updateControl();}
this.updateControl= function(ifredraw)
{if(this.OriginPanes.length<= this.tabSize) this.tabSize= -1; 
if(!ifredraw){var newinitalId= null;for(var i=0; i<this.handlers.length;i++)
{if(this.handlers[i][0].toUpperCase()=="ONINITIALPANELSHOW"){var handler= this.handlers[i][1];var e= new ODCEvent("onInitialPanelShow");e.initialPanelId= this.initialPanelId;try{newinitalId= eval(handler+".call(this,this, e);");if(newinitalId== false)
this.initialPanelId= null;}catch(ex){return;}
}
}
if(newinitalId&&!isBoolean(newinitalId)) this.initialPanelId= this.getClientId(newinitalId);if(this.initialPanelId){for(var i=1; i<this.Panes.length; i++)
{if(this.Panes[i].divObj.DIVID== this.initialPanelId){this.selectedTabID= this.initialPanelId;this.selectedTab= i;if(this.selectedTab-this.tabSize+1>0)
this.startIndex= this.selectedTab-this.tabSize+1;else
this.startIndex= 1;break;}
}
}
}
var outDivTable= document.createElement("table");outDivTable.className= this.styleClass;outDivTable.border="0";outDivTable.cellSpacing="0";outDivTable.cellPadding="0";outDivTable.width= this.width;outDivTable.height= this.height;var tr1= outDivTable.insertRow(0);var td1= tr1.insertCell(0);var tr2= outDivTable.insertRow(1);var td2= tr2.insertCell(0);td2.width="100%";td2.height="100%";td2.vAlign="top";td2.className= this.styleClass+"-Body";var tr3= outDivTable.insertRow(2);var td3= tr3.insertCell(0);if(this.flagNextPrev||this.enableFinish){td3.width="100%";td3.vAlign="top";td3.className= this.styleClass+"-Footer";} else{tr3.style.display="none";}
this.containerDiv.appendChild(outDivTable);var tabwidth= buttonwidth=0;if(!this.flagTabButtons){tr1.style.display="none";} else{tr1.style.display="";td1.vAlign="top";td1.className= this.styleClass+"-Header";var tempTable= document.createElement("table");td1.appendChild(tempTable);this.createTab(tempTable);this.showHideTab(tempTable);var maxWidth= 0;if(!isNaN(this.width)){maxWidth= Math.max(this.width, td1.offsetWidth);}
}
if(this.flagNextPrev||this.enableFinish){this.createButton(td3);if(!isNaN(this.width))
maxWidth= Math.max(this.width, td3.offsetWidth)
}
this.createBody(td1, td2, td3);if(!isNaN(this.width)&&maxWidth>this.width){this.width= maxWidth;this.adjustbody();}
if(isIE())
{var tabcontrol= this;window.attachEvent('onload',function(){tabcontrol.redraw();});}
}
this.adjustbody= function()
{for(var i=1; i< this.Panes.length; i++){var divObj= this.Panes[i].divObj;divObj.style.width= this.width-10;}
}
this.createButton= function(td3)
{var divObj= this.Panes[this.selectedTab].divObj;var tabTable= document.createElement("table");tabTable.border= 0;tabTable.cellpadding= 0;tabTable.align="right";var tabRow= tabTable.insertRow(0);var backButton= nextButton= finishButton= cancelButton= null;if(this.jsfBackButton!=null&& this.jsfNextButton!=null){backButton= this.jsfBackButton;nextButton= this.jsfNextButton;var backVal= backButton.value;if(backVal==null||backVal=="")
backVal= NlsFormatMsg(label_tab_previous,null);var nextVal= nextButton.value;if(nextVal==null||nextVal=="")
nextVal= NlsFormatMsg(label_tab_next,null);if(backVal.indexOf("&lt;")!=-1)
{backVal= backVal.replace("&lt;","<");}
if(nextVal.indexOf("&gt;")!=-1)
{nextVal= nextVal.replace("&gt;",">");}
backButton.value= backVal;nextButton.value= nextVal;if(this.flagNextPrev){nextButton.style.display="inline";backButton.style.display="inline";}
}else{backButton= document.createElement("INPUT");backButton.type='submit';backButton.value= NlsFormatMsg(label_tab_previous,null);nextButton= document.createElement("INPUT");nextButton.type='submit';nextButton.value= NlsFormatMsg(label_tab_next,null);}
var tabCell= tabRow.insertCell(0);backButton.controlName= this.Name;backButton.id= this.containerDiv.id+this.cssPrefix+"tabprevbutton";backButton.onclick= this.onTabSelected;this.previousButton= backButton;tabCell.appendChild(backButton);tabCell= tabRow.insertCell(1);nextButton.controlName= this.Name;nextButton.id= this.containerDiv.id+this.cssPrefix+"tabnextbutton";nextButton.onclick= this.onTabSelected;this.nextButton= nextButton;tabCell.appendChild(nextButton);tabCell= tabRow.insertCell(2);var cancelButton= finishButton= null;if(this.enableFinish){if(this.jsfCancelButton!=null&& this.jsfFinishButton!=null){cancelButton= this.jsfCancelButton;finishButton= this.jsfFinishButton;if(cancelButton.value==null||cancelButton.value=="")
cancelButton.value= NlsFormatMsg(label_tab_cancel,null);if(finishButton.value==null||finishButton.value=="")
finishButton.value= NlsFormatMsg(label_tab_finish,null);cancelButton.style.display="inline";finishButton.style.display="inline";}else{cancelButton= document.createElement("INPUT");cancelButton.type='submit';cancelButton.value= NlsFormatMsg(label_tab_cancel,null);finishButton= document.createElement("INPUT");finishButton.type='submit';finishButton.value= NlsFormatMsg(label_tab_finish,null);}
cancelButton.controlName= this.Name;cancelButton.id= this.containerDiv.id+this.cssPrefix+"tabcancelbutton";cancelButton.onCancel= this.onCancel;cancelButton.tabobj= this;cancelButton.onclick= this.OnCancelButtonClick;this.cancelButton= cancelButton;finishButton.controlName= this.Name;finishButton.id= this.containerDiv.id+this.cssPrefix+"tabfinishbutton";finishButton.onFinish= this.onFinish;finishButton.tabobj= this;finishButton.onclick= this.OnFinishButtonClick;this.finishButton= finishButton;tabCell.appendChild(finishButton);tabCell= tabRow.insertCell(3);tabCell.appendChild(cancelButton);}
this.setButtonIds();td3.appendChild(tabTable);}
this.createBody= function(td1,td2,td3){for(var i=1; i< this.Panes.length; i++){td2.appendChild(this.Panes[i].divObj);if( i== this.selectedTab){this.Panes[i].divObj.style.display="";this.selectedTabID= this.Panes[i].divObj.DIVID;} else{this.Panes[i].divObj.style.display="none";}
}
if(this.scrollableV|| this.scrollableH){var availableWidth= this.width;var availableHeight= this.height;if(this.flagTabButtons)
availableHeight= availableHeight - td1.offsetHeight;if(this.flagNextPrev||this.enableFinish)
availableHeight= availableHeight - td3.offsetHeight;var offsetV= this.Panes[this.selectedTab].divObj.offsetTop;var offsetH= this.Panes[this.selectedTab].divObj.offsetLeft;if(document.documentElement.dir!="rtl"){availableWidth -=(2*offsetH);}
availableHeight -=(2*offsetV);availableWidth= Math.max(1,availableWidth);availableHeight= Math.max(1,availableHeight);for(var i=1; i< this.Panes.length; i++){if(this.scrollableH)
this.Panes[i].divObj.style.width= availableWidth+"px";if(this.scrollableV)
this.Panes[i].divObj.style.height= availableHeight+"px";}
}
}
this.showHideTab= function(tabTable)
{if(!this.flagTabButtons)
return;var tr= tabTable.rows[0];if(this.tabSize>0){start= this.startIndex;end=(this.startIndex+this.tabSize<this.Panes.length)?this.startIndex+this.tabSize:this.Panes.length;}else{start= 1;end= this.Panes.length;}
var activestyle= this.styleClass+"-TabActive";var inactivestyle= this.styleClass+"-TabInactive";var linkactivestyle= this.styleClass+"-HyperActive";var linkinactivestyle= this.styleClass+"-HyperInactive";var i=1;for(i; i<this.Panes.length; i++)
{var tempCell= tr.cells[i-1].firstChild.rows[0].cells[0];var td= tr.cells[i-1];if(td&&tempCell){if(i>=start&&i<=end-1)
{td.style.display="";if(i==this.selectedTab){if(tempCell.className!=this.styleClass+"-TabActive")
this.styleTabHTML(this.Panes[i].divObj, td, false, activestyle, linkactivestyle, this.slantActiveLeft, this.slantActiveRight, true, i);}else{if(tempCell.className!=this.styleClass+"-TabInactive")
this.styleTabHTML(this.Panes[i].divObj, td, false, inactivestyle, linkinactivestyle, this.slantInactiveLeft, this.slantInactiveRight, true, i);}
}else{td.style.display="none";}
}
}
var previcon= document.getElementById(this.containerDiv.id+this.styleClass+"previcon");if(previcon){previcon.border= 0;if(this.startIndex== 1){previcon.setAttribute("src", this.tabIcons["disprevious"]);if(previcon.parentNode.type)
{var td= previcon.parentNode.parentNode;td.removeChild(td.firstChild);td.appendChild(previcon);}
}else{previcon.setAttribute("src", this.tabIcons["previous"]);var a1= document.createElement("a");a1.type="hlink";a1.id= this.containerDiv.id+this.styleClass+"tabprevicon";var tableid= this.containerDiv.id+this.styleClass+"tabtable";var code="window.document.getElementById('"+ tableid+"').tabControl.PreviousTab()";a1.setAttribute("href","javascript:"+ code);a1.appendChild(previcon);tr.cells[i-1].appendChild(a1);}
}
var nexticon= document.getElementById(this.containerDiv.id+this.styleClass+"nexticon");if(nexticon)
{nexticon.border= 0;if(this.startIndex+this.tabSize> this.Panes.length-1){nexticon.setAttribute("src", this.tabIcons["disnext"]);if(nexticon.parentNode.type)
{var td= nexticon.parentNode.parentNode;td.removeChild(td.firstChild);td.appendChild(nexticon);}
}else{nexticon.setAttribute("src", this.tabIcons["next"]);nexticon.setAttribute("border", 0);var a2= document.createElement("a");a2.type="hlink";a2.id= this.containerDiv.id+this.styleClass+"tabnexticon";var tableid= this.containerDiv.id+this.styleClass+"tabtable";var code="window.document.getElementById('"+ tableid+"').tabControl.NextTab()";a2.setAttribute("href","javascript:"+ code);a2.appendChild(nexticon);tr.cells[i].appendChild(a2);}
}
}
this.createTab= function(tabTable)
{tabTable.id= this.containerDiv.id+this.styleClass+"tabtable";tabTable.tabControl= this;tabTable.border= 0;tabTable.cellSpacing= 0;tabTable.cellPadding= 0;var tabRow= tabTable.insertRow(0);var i=1;for(i; i< this.Panes.length; i++){if(this.Panes[i].divObj!=null)
{var tabsetCell= tabRow.insertCell(i-1);var select=(this.selectedTab==i)?true:false;var tabclass= this.styleClass+"-TabActive";var linkactivestyle= this.styleClass+"-HyperActive";this.emitTabHTML(tabsetCell,this.Panes[i].divObj,i);firstTab=(i==1)?true:false;var width= this.styleTabHTML(this.Panes[i].divObj, tabsetCell, firstTab, tabclass, linkactivestyle,this.slantActiveLeft, this.slantActiveRight, true,i);this.maxTabWidth= Math.max(this.maxTabWidth, width);}
}
if(this.tabSize>0){var tabsetCell= tabRow.insertCell(i-1);var imgprevious= document.createElement("img");imgprevious.style.marginLeft="6px";imgprevious.id= this.containerDiv.id+this.styleClass+"previcon";imgprevious.setAttribute("src", this.tabIcons["disprevious"]);tabsetCell.appendChild(imgprevious);tabsetCell= tabRow.insertCell(i);var imgnext= document.createElement("img");imgnext.id= this.containerDiv.id+this.styleClass+"nexticon";imgnext.setAttribute("src", this.tabIcons["disnext"]);tabsetCell.appendChild(imgnext);}
if(this.variableTabLength=="false")
{for(var j=1; j<this.Panes.length;j++){if(this.maxTabWidth>0)
tabRow.cells[j-1].firstChild.width= this.maxTabWidth;}
}
}
this.onTabSelected= function(evt){evt=(evt)? evt:((event)? event: null);if(evt&& evt.type=="click"||(evt.type=="keydown"&&(evt.keyCode==32|| evt.keyCode==13))){var src=(evt.target)? evt.target:((evt.srcElement)? evt.srcElement: null);if(src){while(!src.name){src= src.parentNode;}
var reqTab= src.name;var ctrlName= src.controlName;var reqType= src.type;var obj= eval(ctrlName);if(obj!=null)
obj.paneSelected(reqTab, obj.selectedTabID, reqType);try{var objfocus= document.getElementById(src.id);if(objfocus&& objfocus.nodeType== 1)
{if(objfocus.nodeName=="LABEL"){objfocus= objfocus.parentNode;}else if(objfocus.nodeName=="TD"){objfocus= objfocus.firstChild;}
objfocus.focus();}
}catch(e)
{}
}
return false;}
return;}
this.paneSelected= function(show, hide, type){var previousSelectPanel= this.selectedTabID;var divObj= null;var nextId= null;if(show== previousSelectPanel) return;for(var k=1; k< this.Panes.length; k++){if(this.Panes[k].divObj.DIVID== previousSelectPanel)
{divObj= this.Panes[k].divObj;if(divObj.handlers["onExit"]!=null){var e= new ODCEvent("onExit");e.tobeExitPanel=previousSelectPanel;e.defaultTobeEnterPanel= show;try{nextId= eval(divObj.handlers["onExit"]+".call(this,this, e);");if(nextId&&!isBoolean(nextId)) nextId= this.getClientId(nextId);if(nextId== false)
return; 
}catch(ex){return;}
}
}
}
for(var i=0; i<this.handlers.length;i++)
{if(this.handlers[i][0].toUpperCase()=="ONPANELEXIT"){var handler= this.handlers[i][1];var e= new ODCEvent("onPanelExit");e.tobeExitPanel=previousSelectPanel;e.defaultTobeEnterPanel= show;try{if(eval(handler+".call(this,this, e);")== false)
return; 
}catch(ex){return;}
break;}
}
if(isBoolean(nextId)||nextId==null||type!="submit") nextId= show;var bNextTabExit= false;for(var k=1; k< this.Panes.length; k++){if( this.Panes[k].divObj.DIVID== nextId)
{divObj= this.Panes[k].divObj;bNextTabExit= true;if(divObj.handlers["onEnter"]!=null){var e= new ODCEvent("onEnter");e.tobeEnterPanel= nextId;try{if(eval(divObj.handlers["onEnter"]+".call(this,this, e);")== false)
return; 
}catch(ex){return;}
}
}
}
for(var i=0; i<this.handlers.length;i++)
{if(this.handlers[i][0].toUpperCase()=="ONPANELENTER"){var handler= this.handlers[i][1];var e= new ODCEvent("onPanelEnter");e.tobeEnterPanel= nextId;try{if(eval(handler+".call(this,this, e);")== false)
return; 
}catch(ex){return;}
break;}
}
if(!bNextTabExit) return; 
if(show!=nextId)
this.showPane(nextId, hide, true);else
this.showPane(nextId, hide, false);}
this.hideTab= function(hideID)
{if(hideID==null||hideID=='undefined') return;var foundId= -1;for(var i=1; i<this.Panes.length; i++)
{if(hideID==this.Panes[i].divObj.DIVID){if(hideID== this.selectedTabID)
this.selectedTab=(i==1)?1:i-1;else if(this.selectedTab>i)
this.selectedTab--;if(this.startIndex>i)
this.startIndex--;foundId= i;break;}
}
if(foundId!=-1){for(foundId; foundId<this.Panes.length; foundId++){this.Panes[foundId]= this.Panes[foundId+ 1];}
this.Panes.length=this.Panes.length-1;this.redraw();}
}
this.showTab= function(showID)
{if(showID==null||showID=='undefined') return;var finalArr= new Array();finalArr[0]="myTab";var found= false;for(var i=0; i<this.OriginPanes.length; i++)
{var divid= this.OriginPanes[i].divObj.DIVID;if(showID== divid){finalArr[finalArr.length]= this.OriginPanes[i];if(this.selectedTab>=finalArr.length-1)
this.selectedTab++;if(this.startIndex>=finalArr.length-1){this.startIndex++;}
found= true;}else{for(var j=1; j<this.Panes.length; j++)
{if(divid== this.Panes[j].divObj.DIVID)
{finalArr[finalArr.length]= this.Panes[j];break;}
}
}
}
if(found){this.Panes= finalArr;this.redraw();}
}
this.showPane= function(showID, hideID,jump)
{var redrawPaneContents= false;var navDirection="next";for(var i=1; i< this.Panes.length; i++)
{if( this.Panes[i].divObj.DIVID== showID)
{this.Panes[i].divObj.style.display="";currentDiv= this.Panes[i].divObj;this.selectedTab= i;redrawPaneContents= true;}
else
{this.Panes[i].divObj.style.display="none";}
}
if(jump){this.startIndex= this.selectedTab-this.tabSize+1;}else if(this.selectedTab>(this.startIndex+this.tabSize-1)){this.startIndex++;}else if(this.selectedTab<this.startIndex)
{this.startIndex=((this.selectedTab-this.tabSize+1)>=1)?(this.selectedTab-this.tabSize+1):1;}
if(this.startIndex<=0) this.startIndex= 1;var tabTable= document.getElementById(this.containerDiv.id+this.styleClass+"tabtable");this.showHideTab(tabTable);this.setButtonIds();if(redrawPaneContents){try{if(typeof(hX_3)!="undefined"&& hX_3!=null){hX_3.redraw();}
if(!isIE())
{odcGraphTimeObj= window.setTimeout(odcGraphRedraw, 1);}
}catch(e){}
}
this.selectedTabID= showID;}
this.setButtonIds= function(){if(this.previousButton== null)
return
if(this.selectedTab==1){this.previousButton.disabled= true;}else{this.previousButton.disabled= false;this.previousButton.name= this.Panes[this.selectedTab-1].divObj.DIVID;}
if(this.selectedTab== this.Panes.length-1)
{this.nextButton.disabled= true;}else{this.nextButton.disabled= false;this.nextButton.name= this.Panes[this.selectedTab+1].divObj.DIVID;}
if(this.enableFinish){if(null!= this.enableFinishButtonArray){for(var i= 0; i< this.enableFinishButtonArray.length; i++){if(this.Panes[this.selectedTab].divObj.DIVID== this.enableFinishButtonArray[i]){this.cancelButton.disabled= false;if(this.disableCancelButtonArray!= null){var length= this.disableCancelButtonArray.length;for(var x= 0; x< length; x++){if(this.disableCancelButtonArray[x]== this.enableFinishButtonArray[i]){this.cancelButton.disabled= true;break;} 
}
}
this.finishButton.disabled= false;if(this.disableFinishButtonArray!= null){var length= this.disableFinishButtonArray.length;for(var x= 0; x< length; x++){if(this.disableFinishButtonArray[x]== this.enableFinishButtonArray[i]){this.finishButton.disabled= true;break;} 
}
}
break;}else{this.cancelButton.disabled= true;this.finishButton.disabled= true;}
}
}
}
}
this.styleTabHTML= function(tabobj, td, bFirst, tabclass,linkclass, nipLeft, nipRight, bottomline, index){if(td.style.display=="none") return -1;var table= this.getFirstChild(td);var tr= table.rows[0];var tdZ= tr.cells[0];var tdL= tr.cells[1];var tdM= tr.cells[2];var tdR= tr.cells[3];tdM.style.borderLeftWidth= tdM.style.borderRightWidth="";tdM.className= tabclass;tdM.name= tabobj.DIVID;tdM.id= this.containerDiv.id+this.styleClass+"tabTdM_"+index;tdM.controlName= this.Name;var tablabel= document.createElement("label");tablabel.id= this.containerDiv.id+this.styleClass+"tablable_"+index;tablabel.innerHTML= tabobj.name;while(tdM.hasChildNodes())
tdM.removeChild(tdM.lastChild);var a= document.createElement("a");a.id= this.containerDiv.id+this.styleClass+"hyperlink_"+index;a.className= linkclass;a.setAttribute("href","javascript:;");a.appendChild(tablabel);tdM.appendChild(a);var borderT= getBorderSize(tdM,"top", 1);var borderB= getBorderSize(tdM,"bottom", 1);var borderL= getBorderSize(tdM,"left", 1);var borderR= getBorderSize(tdM,"right", 1);var backColor= getEffectiveStyle(tdM,"background-color");var borderTopStyle= getEffectiveStyle(tdM,"border-top-style");var borderTopColor= getEffectiveStyle(tdM,"border-top-color");var borderRightColor= getEffectiveStyle(tdM,"border-right-color");var borderLeftColor= getEffectiveStyle(tdM,"border-left-color");var borderBottomColor= getEffectiveStyle(tdM,"border-bottom-color");tdM.style.borderLeftWidth= tdM.style.borderRightWidth="0px";if(bFirst)
this.tabHeight=(tdM.offsetHeight>0)?tdM.offsetHeight:1;if(tdL.height!= this.tabHeight){tdL.height= this.tabHeight;tdM.height= this.tabHeight;tdR.height= this.tabHeight;}
var cssVOffset= 0;var cssHOffset= 0;if(!isIE()){cssVOffset= borderT+((borderT> 1)? 1: 0);cssHOffset= 2; 
}
var color, sdiv, div, nip, xtra;div= this.getFirstChild(tdL);if(!div) div= this.createDiv(tdL,0);if(tdL.className!= tdM.className) tdL.className= tdM.className;if(tdL.style.textAlign!="left") tdL.style.textAlign="left";sdiv= this.getFirstChild(div);if(nipLeft== 0){if(tdL.width!="1"){tdL.setAttribute("width","1");tdL.style.borderLeftWidth="";tdL.style.borderTopWidth="";tdL.style.backgroundColor="";}
} else{nip= nipLeft+ borderL;xtra=(borderT> 1)? 1: 0;nip=(nip> this.tabHeight - borderB+ xtra)? this.tabHeight - borderB+ xtra - cssVOffset: nip;if(tdL.width!= nip+""){tdL.setAttribute("width", nip+"");tdL.style.borderLeftWidth="0px";tdL.style.borderTopWidth="0px";tdL.style.backgroundColor="transparent";}
for(var k= 1; k<= nip; k++){if(!sdiv) sdiv= this.createDiv(div,1);color=(k<= borderL)? borderLeftColor: backColor;if(document.documentElement.dir!="rtl"){this.vertLine(sdiv, color, k-1,(nip-k+1-xtra), this.tabHeight - borderB -(nip-k+1)+ xtra - cssVOffset, borderT+xtra, borderTopStyle, borderTopColor);}
else{if(isIE()){this.vertLine(sdiv, color, nip-k-1,(nip-k+1-xtra), this.tabHeight - borderB -(nip-k+1)+ xtra - cssVOffset, borderT+xtra, borderTopStyle, borderTopColor);}
else{this.vertLine(sdiv, color, nip-k-5,(nip-k+1-xtra), this.tabHeight - borderB -(nip-k+1)+ xtra - cssVOffset, borderT+xtra, borderTopStyle, borderTopColor);}
}
sdiv= sdiv.nextSibling;}
}
while(sdiv){sdiv.style.display="none";sdiv= sdiv.nextSibling;}
div= this.getFirstChild(tdR);if(!div) div= this.createDiv(tdR,0);if(tdR.className!= tdM.className) tdR.className= tdM.className;if(tdR.style.textAlign!="left") tdR.style.textAlign="left";sdiv= this.getFirstChild(div);if(nipRight== 0){if(tdR.width!="1"){tdR.setAttribute("width","1");tdR.style.borderRightWidth="";tdR.style.borderTopWidth="";tdR.style.backgroundColor="";}
} else{nip= nipRight+ borderR;xtra=(borderT> 1)? 1: 0;nip=(nip> this.tabHeight - borderB+ xtra)?(this.tabHeight - borderB+ xtra - cssVOffset): nip;if(tdR.width!= nip+""){tdR.setAttribute("width", nip+"");tdR.style.borderRightWidth="0px";tdR.style.borderTopWidth="0px";tdR.style.backgroundColor="transparent";}
for(var k= 1; k<= nip; k++){if(!sdiv) sdiv= this.createDiv(div,1);color=(k> nip-borderR)? borderRightColor: backColor;if(document.documentElement.dir!="rtl"){this.vertLine(sdiv, color, k-1, k-xtra, this.tabHeight - borderB - k+ xtra - cssVOffset, borderT+xtra, borderTopStyle, borderTopColor);} 
else{if(isIE()){this.vertLine(sdiv, color, nip-k, k-xtra, this.tabHeight - borderB - k+ xtra - cssVOffset, borderT+xtra, borderTopStyle, borderTopColor);}
else{this.vertLine(sdiv, color, nip-k-4, k-xtra, this.tabHeight - borderB - k+ xtra - cssVOffset, borderT+xtra, borderTopStyle, borderTopColor);}
}
sdiv= sdiv.nextSibling;}
}
while(sdiv){sdiv.style.display="none";sdiv= sdiv.nextSibling;}
div= this.getFirstChild(tdZ);if(!div) div= this.createDiv(tdZ,1);sdiv= this.getFirstChild(div);if(!sdiv) sdiv= this.createDiv(div,1);if(div.style.display!="none") div.style.display="none";if(bottomline){if(borderBottomColor== backColor&& borderB== 0){var wn=(tr.offsetWidth) -(borderR+borderL);var w= wn+"px";var h=(getBorderSize(td,"bottom", 1))+"px";if(div.style.display!="block") div.style.display="block";if(div.style.overflow!="visible") div.style.overflow="visible";if(div.style.zIndex!="100000") div.style.zIndex="100000";if(sdiv.style.display!="block") sdiv.style.display="block";if(sdiv.style.overflow!="hidden") sdiv.style.overflow="hidden";if((sdiv.style.left!= borderL+"px")&&(document.documentElement.dir!="rtl")) sdiv.style.left= borderL+"px";if(sdiv.style.top!= this.tabHeight+"px") sdiv.style.top= this.tabHeight+"px";if(sdiv.style.width!= w&&wn>0) sdiv.style.width= w;if(sdiv.style.height!= h) sdiv.style.height= h;sdiv.style.backgroundColor= backColor;}
}
return(tr.offsetWidth+(borderL+borderR)+ cssHOffset);}
this.createDiv= function(p, t){var d= document.createElement("div");if(t==0){d.style.position="relative";d.style.top="0px";d.style.left="0px";} else{d.style.position="absolute";d.style.overflow="hidden";}
d.style.backgroundColor="transparent";d.style.fontSize="0px";d.style.width="1px"; d.style.height="1px";d.style.borderWidth="0px";d.style.padding="0px";d.style.margin="0px";p.appendChild(d);return d;}
this.vertLine= function(sdiv, color, hOffset, vOffset, height, borderT, borderTopStyle, borderTopColor){var h=((height<= 1)? 1: height)+"px";sdiv.style.backgroundColor= color;sdiv.style.borderTopStyle= borderTopStyle;sdiv.style.borderTopColor= borderTopColor;sdiv.style.borderTopWidth= borderT;if(sdiv.style.display!="block") sdiv.style.display="block";if(sdiv.style.height!= h) sdiv.style.height= h;if(sdiv.style.width!="1px") sdiv.style.width="1px";if(sdiv.style.top!= vOffset+"px") sdiv.style.top= vOffset+"px";if(sdiv.style.left!= hOffset+"px") sdiv.style.left= hOffset+"px";}
this.emitTabHTML= function(td, tabobj, index){td.valign="top";var table= document.createElement("table");table.border="0";table.cellSpacing="0";table.cellPadding="0";table.onclick= this.onTabSelected;table.onkeydown= this.onTabSelected;table.name= tabobj.DIVID;table.id= this.containerDiv.id+this.stylClass+"hyperlink_"+index;table.controlName= this.Name;if(!isodctpIE5)
table.style.cursor="pointer";td.appendChild(table);var tr= table.insertRow(0);var td= tr.insertCell(0);td.setAttribute("width","0");td.vAlign="top";td.noWrap="true";td.style.padding="0px";td.style.margin="0px";td.style.borderWidth="0px";td= tr.insertCell(1);td.vAlign="top";td.noWrap="true";td.style.padding="0px";td.style.margin="0px";td.style.borderRightWidth="0px";td= tr.insertCell(2);td.vAlign="top";td.noWrap="true";td.style.margin="0px";td= tr.insertCell(3);td.vAlign="top";td.noWrap="true";td.style.padding="0px";td.style.margin="0px";td.style.borderLeftWidth="0px";return table;}
this.getFirstChild= function(cell){r=(cell)? cell.firstChild: null;while(r&& r.nodeType!= 1) r= r.nextSibling;return r;}
}
function Pane(){var divObj= null;var Name= null;}

