
function ListFinancialReportSimple(caller,viewer,pageSize,body,statementViewer,pager)
{this.caller=caller;this.viewer=viewer;this.pageSize=pageSize;this.body=body;this.statementViewer=statementViewer;this.pager=pager;}
ListFinancialReportSimple.prototype=new WorklistSimple();ListFinancialReportSimple.prototype.doSearch=function(company,statusId,body)
{this.run(new ListFinancialReportCriteria(company.getId(),statusId),body);}
ListFinancialReportSimple.prototype.doCompany=function(companyId,body)
{this.run(new ListFinancialReportCriteria(companyId,STATUS_ID_ACTIVE),body);}
ListFinancialReportSimple.prototype.doFilings=function(companyId,body)
{this.doFilingsByStatus(companyId,STATUS_ID_ACTIVE,body);}
ListFinancialReportSimple.prototype.doFilingsByStatus=function(companyId,statusId,body)
{var filter=new ListFinancialReportCriteria(companyId,statusId);filter.onlyFilings=true;this.run(filter,body);}
ListFinancialReportSimple.prototype.doResearchReports=function(companyId,body)
{var filter=new ListFinancialReportCriteria(companyId,STATUS_ID_ACTIVE);filter.includeTypes=FIN_REPORT_RESEARCH_REPORT;this.run(filter,body);}
ListFinancialReportSimple.prototype.doLatest=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.doQx=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.isQX=true;criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.doHomePageLatest=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.onlyRecent=true;criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.doHomePageQx=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.onlyRecent=true;criteria.isQX=true;criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.makeCall=function(criteria,dataHandler)
{this.caller.getFinancialReports(criteria,dataHandler);}
ListFinancialReportSimple.prototype.changeStatus=function(ev)
{var me=this.myCallback;var criteria=this.myValue.criteria;criteria.statusId=this.myStatusId;mw.run(criteria);}
ListFinancialReportSimple.prototype.handleOpenContents=function(ev)
{this.myCallback.pager.openFinancialReport(this.myRecord.id);return false;}
ListFinancialReportSimple.prototype.handleSelection=function(ev)
{this.myCallback.pager.gotoFinancialReports(this.myRecord.symbol);return false;}

function ListNewsReleaseSimple(caller,viewer,pageSize,body,pager,isOpenTab)
{this.caller=caller;this.viewer=viewer;this.pageSize=pageSize;this.body=body;this.pager=(undefined!=pager)?pager:appNav;this.isOpenTab=isOpenTab;this.records=new Array();}
ListNewsReleaseSimple.prototype=new WorklistSimple();ListNewsReleaseSimple.prototype.getStoryViewer=function()
{if(undefined==this.storyViewer)
{this.contentWindow=new ContentWindow();this.storyViewer=new NewsReleaseHtml(new NewsContentHtml());}
return this.storyViewer;}
ListNewsReleaseSimple.prototype.doSearch=function(company,statusId,body)
{var criteria=new ListNewsReleaseCriteria(company.getId(),statusId);criteria.company=company;this.run(criteria,body);}
ListNewsReleaseSimple.prototype.doCompany=function(companyId,body)
{this.run(new ListNewsReleaseCriteria(companyId,STATUS_ID_ACTIVE),body);}
ListNewsReleaseSimple.prototype.doStockTransactions=function(companyId,body)
{var filter=new ListNewsReleaseCriteria(companyId,STATUS_ID_ACTIVE);filter.includeTypes=STOCK_TRANSACTIONS;this.run(filter,body);}
ListNewsReleaseSimple.prototype.doLatest=function(body)
{this.run(new ListNewsReleaseCriteria(undefined,STATUS_ID_ACTIVE),body);}
ListNewsReleaseSimple.prototype.doQx=function(body,isHome)
{var criteria=new ListNewsReleaseCriteria(undefined,STATUS_ID_ACTIVE);criteria.isQX=true;criteria.isHomePage=isHome;this.run(criteria,body);}
ListNewsReleaseSimple.prototype.reopen=function(ev)
{var wrapper=this.myCallback;wrapper.callback.run(wrapper.criteria);}
ListNewsReleaseSimple.prototype.makeCall=function(criteria,dataHandler)
{if(undefined!=criteria.companyId)
this.caller.getNewsReleases(criteria,dataHandler);else
this.caller.getLatestNewsReleases(criteria,dataHandler);}
ListNewsReleaseSimple.prototype.handleOpenContents=function(ev)
{var me=this.myCallback;var record=this.myRecord;if(me.isOpenTab)
me.pager.gotoQuote(record.symbol,'1');else
me.showContents(record,this.myValue);return false;}
ListNewsReleaseSimple.prototype.showContents=function(record,value,me)
{if(!me)
me=this;var cached=this.records[record.id];if(undefined!=cached)
record=cached;else
{cached=this.caller.getNewsRelease(record.id);this.records[cached.id]=record=cached;}
var criteria=value.criteria;var wrapper=new AjaxDataHandler(me,criteria);wrapper.reopen=this.reopen;var contents=this.getStoryViewer().generate(record,wrapper);this.contentWindow.runInline(new ContentWindowInfo(record.title,contents,criteria.body));}
ListNewsReleaseSimple.prototype.handleSelection=function(ev)
{this.myCallback.pager.gotoNews(this.myRecord.symbol);return false;}

function ListPinkNewsSimple(caller,viewer,pageSize,body,isOpenTab,applicationId,callback)
{this.caller=caller;this.viewer=viewer;this.pageSize=pageSize;this.body=body;this.isOpenTab=isOpenTab;this.callback=callback;if(!this.isOpenTab)
{this.storyViewer=new NewsReleaseHtml(new NewsContentHtml(false));this.contentWindow=new ContentWindow();}
this.applicationId=applicationId;}
ListPinkNewsSimple.prototype=new WorklistSimple();ListPinkNewsSimple.prototype.doQxHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQX,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestQx=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQX,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doIqHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCIQ,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestIq=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCIQ,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doPsHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_PINKSHEETS,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestPs=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_PINKSHEETS,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doQtHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQUOTE,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestQt=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQUOTE,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doSearch=function(filter,body)
{this.run(filter,body);}
ListPinkNewsSimple.prototype.makeCall=function(criteria,dataHandler)
{this.caller.getPinkNewsReleases(criteria,dataHandler);}
ListPinkNewsSimple.prototype.handleOpenContents=function(ev)
{var me=this.myCallback;var criteria=this.myValue.criteria;var id=this.myRecord.id;me.showContents(me.isOpenTab,id,criteria);return false;}
ListPinkNewsSimple.prototype.showContents=function(isOpenTab,id,criteria){if(isOpenTab){eval(appNav.gotoAllPinkSheetsNews())}else{var me=this;this.caller.getPinkNewsRelease(id,{handleRequestData:function(record)
{if(record.typeId==PINK_SHEETS_COVERAGE_NEWS_TYPE_ID)
{var openUrl=toHttpURLformat(record.contents)
window.open(openUrl);}
else
{var wrapper=new AjaxDataHandler(me,criteria);wrapper.reopen=me.reopen;var contents=me.storyViewer.generate(record,wrapper);me.contentWindow.runInline(new ContentWindowInfo(record.title,contents,criteria.body));}}});}}
ListPinkNewsSimple.prototype.reopen=function(ev)
{var wrapper=this.myCallback;wrapper.callback.run(wrapper.criteria);}
ListPinkNewsSimple.prototype.doNewsDetail=function(ev)
{this.myCallback.callback.doPinkNewsDetail(this.myRecord);}

function TopWombatTradesSimple(caller,viewer,body,callback,pageSize,appId)
{this.caller=caller;this.viewer=viewer;this.body=body;this.callback=callback;this.pageSize=pageSize;this.appId=appId;}
TopWombatTradesSimple.prototype=new TopStatsWorklistSimple();TopWombatTradesSimple.prototype.FOOTNOTES_DELAYED=['Intraday activity delayed 15 minutes.'];TopWombatTradesSimple.prototype.doTrades=function(body,pageSize,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_TRADE,undefined,tierGroupId),body);}
TopWombatTradesSimple.prototype.doVolume=function(body,pageSize,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_VOLUME,undefined,tierGroupId),body);}
TopWombatTradesSimple.prototype.doDollarVolume=function(body,pageSize,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_DOLLAR_VOLUME,undefined,tierGroupId),body);}
TopWombatTradesSimple.prototype.doGainers=function(body,pageSize,priceMin,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_GAIN,priceMin,tierGroupId),body);}
TopWombatTradesSimple.prototype.doLosers=function(body,pageSize,priceMin,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_LOSS,priceMin,tierGroupId),body);}
TopWombatTradesSimple.prototype.doFilter=function(filter,body)
{this.run(filter,body);}
TopWombatTradesSimple.prototype.makeCall=function(criteria,dataHandler)
{this.caller.getTopWombatTrades(criteria,dataHandler);}

function TopQuotedSimple(caller,viewer,body,callback,pageSize,appId)
{this.caller=caller;this.viewer=viewer;this.body=body;this.callback=callback;this.pageSize=pageSize;this.appId=appId;}
TopQuotedSimple.prototype=new TopStatsWorklistSimple();TopQuotedSimple.prototype.FOOTNOTES_DELAYED=['Intraday activity delayed 15 minutes.'];TopQuotedSimple.prototype.doFilter=function(body,pageSize,priceMin,tierGroupId)
{this.run(new QtServTradeStatFilter(this.appId,pageSize,FIELD_GAIN,priceMin,tierGroupId),body);}
TopQuotedSimple.prototype.makeCall=function(criteria,dataHandler)
{criteria.showQuoted=true;this.caller.getTopQuoted(criteria,dataHandler);}

function TopMarketMakersSimple(caller,viewer,body,callback,pageSize,appId)
{this.caller=caller;this.viewer=viewer;this.body=body;this.callback=callback;this.pageSize=pageSize;this.appId=appId;}
TopMarketMakersSimple.prototype=new TopStatsWorklistSimple();TopMarketMakersSimple.prototype.gotoQuote=undefined;TopMarketMakersSimple.prototype.FOOTNOTES_REAL_TIME=['Market Maker data only includes Pink Link transactions.'];TopMarketMakersSimple.prototype.doTrades=function(body,pageSize,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_TRADE,undefined,tierGroupId),body);}
TopMarketMakersSimple.prototype.doVolume=function(body,pageSize,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_VOLUME,undefined,tierGroupId),body);}
TopMarketMakersSimple.prototype.doDollarVolume=function(body,pageSize,tierGroupId)
{this.doFilter(new QtServTradeStatFilter(this.appId,pageSize,FIELD_DOLLAR_VOLUME,undefined,tierGroupId),body);}
TopMarketMakersSimple.prototype.doFilter=function(filter,body)
{this.run(filter,body);}
TopMarketMakersSimple.prototype.makeCall=function(criteria,dataHandler)
{this.caller.getTopMarketMakers(criteria,dataHandler);}

function RTTradeStatsSnapshotDOM(hasPaging)
{this.hasPaging=(undefined==hasPaging)?false:hasPaging;}
RTTradeStatsSnapshotDOM.prototype.CAPTIONS=['Price','Pct Chg','$ Volume','Share Volume','# Trades'];RTTradeStatsSnapshotDOM.prototype.generate=function(value,callback)
{value.latest=undefined;var output=document.createElement('div');output.className='widgetPackage';var records=value.records;if((undefined==records)||(0==records.length))
{var elem=document.createElement('div');elem.className='tabNoData';elem.appendChild(document.createTextNode('No data found.'));output.appendChild(elem);return output;}
var criteria=value.criteria;var itemCaption=(value.bySymbol)?CAPTION_SYMBOL:CAPTION_MARKET_MAKER;var latest=records[0];var container=document.createElement('div');container.className='listingContainer';output.appendChild(container);var table=document.createElement('table');table.className='listing';table.cellSpacing=0;var cellIndex=0;var row=table.insertRow(0);row.className='listingHeader';this.createHeaderCell(row,cellIndex++,itemCaption);if(criteria.showQuoted)
this.toRight(this.createHeaderCell(row,cellIndex++,CAPTION_UPDATES));if(value.bySymbol)
{this.toRight(this.createHeaderCell(row,cellIndex++,this.CAPTIONS[0]));this.toRight(this.createHeaderCell(row,cellIndex++,this.CAPTIONS[1]));}
this.toRight(this.createHeaderCell(row,cellIndex++,this.CAPTIONS[2]));this.toRight(this.createHeaderCell(row,cellIndex++,this.CAPTIONS[3]));this.toRight(this.createHeaderCell(row,cellIndex++,this.CAPTIONS[4]));for(var i=0;i<records.length;i++)
{cellIndex=0;row=table.insertRow(i+1);row.className=alternateCssParentListingClasses(i)+((value.bySymbol)?'':' topMMRealTime');var record=records[i];if(record.calcTime.getTime()>latest.calcTime.getTime())
latest=record;var td=row.insertCell(cellIndex++);td.className=row.className;if(callback.gotoQuote)
{var a=document.createElement('a');a.href='javascript:void(null);';a.appendChild(document.createTextNode(record.item));a.onclick=callback.gotoQuote;a.myRecord=record;a.myCallback=callback;td.appendChild(a);}
else
td.appendChild(document.createTextNode(record.itemDesc));if(criteria.showQuoted)
this.toRight(this.createDetailCell(row,cellIndex++,this.toDisplayable(Formatter.toNumber(record.numOfQuotes))));if(value.bySymbol)
{if(0==record.price)
{this.toRight(this.createDetailCell(row,cellIndex++,CAPTION_NA));this.toRight(this.createDetailCell(row,cellIndex++,CAPTION_NA));}
else
{var isPositive=(0<record.pricePct);var color=isPositive?COLOR_POSITIVE:COLOR_NEGATIVE;var sign=isPositive?'+':'';this.toRight(this.createDetailCell(row,cellIndex++,Formatter.toPrice(record.price)));this.enhancePriceCell(this.createDetailCell(row,cellIndex++,sign+Formatter.toPercent(record.pricePct)),color);}}
this.toRight(this.createDetailCell(row,cellIndex++,Formatter.toVolume(record.dollarVolume)));this.toRight(this.createDetailCell(row,cellIndex++,Formatter.toVolume(record.volume)));this.toRight(this.createDetailCell(row,cellIndex++,this.toDisplayable(Formatter.toNumber(record.numOfTrades))));}
container.appendChild(table);value.latest=latest;if(undefined!=value.footnotes)
{output.appendChild(document.createElement('hr'));var footnote=document.createElement('div');footnote.className='footnote';for(var i=0;i<value.footnotes.length;i++)
{if(0<i)
footnote.appendChild(document.createElement('br'));var sup=document.createElement('sup');sup.appendChild(document.createTextNode((i+1)));footnote.appendChild(sup);footnote.appendChild(document.createTextNode(value.footnotes[i]));}
output.appendChild(footnote);}
if(this.hasPaging&&(PAGE_SIZE_WORKLIST<=criteria.pageSize))
output.appendChild((new PagingLinksDOM()).generate(value,callback));return output;}
RTTradeStatsSnapshotDOM.prototype.toDisplayable=function(value)
{if(undefined==value)
return CAPTION_NA;return value;}
RTTradeStatsSnapshotDOM.prototype.createHeaderCell=function(row,index,caption)
{var output=row.insertCell(index);output.className='listingHeader';output.style.whiteSpace='nowrap';output.appendChild(document.createTextNode(caption));return output;}
RTTradeStatsSnapshotDOM.prototype.createDetailCell=function(row,index,value)
{var output=row.insertCell(index);output.className=row.className;output.innerHTML=value;return output;}
RTTradeStatsSnapshotDOM.prototype.toRight=function(elem)
{elem.style.textAlign='right';return elem;}
RTTradeStatsSnapshotDOM.prototype.enhancePriceCell=function(cell,color)
{this.toRight(cell).style.color=color;}

function RTTradeStatsHandler(body,timeStampBody,pageSize,appid,callback)
{this.body=body;this.timeStampBody=timeStampBody;this.pageSize=(pageSize==undefined)?PAGE_SIZE_WORKLIST:pageSize;var caller=new OtcIQCalls();var viewer=new RTTradeStatsSnapshotDOM();this.mmHandler=new TopMarketMakersSimple(caller,viewer,undefined,this,this.pageSize,appid);this.wombatHandler=new TopWombatTradesSimple(caller,viewer,undefined,this,this.pageSize,appid);this.quotedHandler=new TopQuotedSimple(caller,viewer,undefined,this,this.pageSize,appid);this.anchorList=new FancyAnchorList();this.callback=callback;}
RTTradeStatsHandler.prototype.TAB_CAPTIONS=['Market Makers','Most Active','Advancers','Decliners','Most Updated'];RTTradeStatsHandler.prototype.TAB_CALLS=['doTopMarketMakers','doTopSymbols','doGainers','doLosers','doMostUpdated'];RTTradeStatsHandler.prototype.TOP_TRADE_TITLES=['$ Volume','Share Volume','# Trades'];RTTradeStatsHandler.prototype.TOP_TRADE_CALLS=['doDollarVolume','doVolume','doTrades'];RTTradeStatsHandler.prototype.MOVERS_TITLES=['Over $1','Over $0.05','All'];RTTradeStatsHandler.prototype.GAINERS_CALLS=['doGainersOverDollar','doGainersOver5Cents','doAllGainers'];RTTradeStatsHandler.prototype.LOSERS_CALLS=['doLosersOverDollar','doLosersOver5Cents','doAllLosers'];RTTradeStatsHandler.prototype.TOP_QUOTED_CALLS=['doQuotedOverDollar','doQuotedOver5Cents','doAllQuoted'];RTTradeStatsHandler.prototype.MORE_MARKET_MAKER_STATS='gotoRealTimeMarketMakerStats';RTTradeStatsHandler.prototype.MORE_TRADE_STATS='gotoRealTimeTradeStats';RTTradeStatsHandler.prototype.init=function(uriPrefix){this.tabberOptions={'ids':undefined,'defaultTab':0,'titles':this.TAB_CAPTIONS,'calls':this.TAB_CALLS,'onClick':function(args)
{var call=this.calls[args.index];this.callback.handleTabbed(call);try{this.callback[call](args.tab.body);}
catch(error){window.alert(error);return false;}
args.tab.isEmpty=false;return true;},'onLoad':function(args){this.onClick(args);},'uriPrefix':(undefined==uriPrefix)?'':uriPrefix}
this.tabberOptions.callback=this;this.tabber=new Tabbers(this.tabberOptions);}
RTTradeStatsHandler.prototype.handlePostLoad=function(value)
{if(this.timeStampBody==undefined)
return;var elem=this.timeStampBody;if(undefined==value.latest)
elem.innerHTML='';else
elem.innerHTML=Formatter.toTimestamp(value.latest.calcTime);}
RTTradeStatsHandler.prototype.handleTabbed=function(value)
{if((undefined!=this.callback)&&(undefined!=this.callback.handleTabbed))
this.callback.handleTabbed(value);}
RTTradeStatsHandler.prototype.run=function()
{this.tabber.run(this.body);}
RTTradeStatsHandler.prototype.doLast=function()
{if(undefined==this.lastCallback)
return;this.lastCallback[this.lastAction](this.lastBody);}
RTTradeStatsHandler.prototype.setLast=function(callback,action,body)
{this.lastCallback=callback;this.lastAction=action;this.lastBody=body;}
RTTradeStatsHandler.prototype.doTopMarketMakers=function(body)
{this.createTabBody(this.TOP_TRADE_TITLES,this.TOP_TRADE_CALLS,body,this.mmHandler,this.MORE_MARKET_MAKER_STATS);}
RTTradeStatsHandler.prototype.doTopSymbols=function(body)
{this.createTabBody(this.TOP_TRADE_TITLES,this.TOP_TRADE_CALLS,body,this.wombatHandler,this.MORE_TRADE_STATS);}
RTTradeStatsHandler.prototype.doGainers=function(body)
{this.createTabBody(this.MOVERS_TITLES,this.GAINERS_CALLS,body,this,this.MORE_TRADE_STATS);}
RTTradeStatsHandler.prototype.doLosers=function(body)
{this.createTabBody(this.MOVERS_TITLES,this.LOSERS_CALLS,body,this,this.MORE_TRADE_STATS);}
RTTradeStatsHandler.prototype.doMostUpdated=function(body)
{this.createTabBody(this.MOVERS_TITLES,this.TOP_QUOTED_CALLS,body,this,this.MORE_TRADE_STATS);}
RTTradeStatsHandler.prototype.handleAnchorSelect=function(action,caption,criteria)
{var me=criteria.myCallback;var body=criteria.myBody;me[action](body);this.setLast(me,action,body);}
RTTradeStatsHandler.prototype.doGainersOverDollar=function(body){this.wombatHandler.doGainers(body,undefined,1);}
RTTradeStatsHandler.prototype.doGainersOver5Cents=function(body){this.wombatHandler.doGainers(body,undefined,.05);}
RTTradeStatsHandler.prototype.doAllGainers=function(body){this.wombatHandler.doGainers(body);}
RTTradeStatsHandler.prototype.doLosersOverDollar=function(body){this.wombatHandler.doLosers(body,undefined,1);}
RTTradeStatsHandler.prototype.doLosersOver5Cents=function(body){this.wombatHandler.doLosers(body,undefined,.05);}
RTTradeStatsHandler.prototype.doAllLosers=function(body){this.wombatHandler.doLosers(body);}
RTTradeStatsHandler.prototype.doQuotedOverDollar=function(body){this.quotedHandler.doFilter(body,undefined,1);}
RTTradeStatsHandler.prototype.doQuotedOver5Cents=function(body){this.quotedHandler.doFilter(body,undefined,.05);}
RTTradeStatsHandler.prototype.doAllQuoted=function(body){this.quotedHandler.doFilter(body);}
RTTradeStatsHandler.prototype.gotoQuote=function(symbol,securityId)
{appNav.gotoQuotePage(symbol,securityId);}
RTTradeStatsHandler.prototype.createTabBody=function(captions,actions,body,callback,moreAction)
{body.innerHTML='';var table=document.createElement('table');table.border=0;table.cellSpacing=0;table.cellPadding=0;table.style.width='100%';var row=table.insertRow(0);var cell=row.insertCell(0);var subBody=document.createElement('div');subBody.className='bodyContainer';cell.appendChild(this.createAnchors(captions,actions,subBody,callback));cell=row.insertCell(1);cell.style.textAlign='right';cell.className="fancyAnchorList";var a=document.createElement('a');a.href='javascript:appNav.'+moreAction+'()';a.appendChild(document.createTextNode('More >>'));cell.appendChild(a);row=table.insertRow(1);cell=row.insertCell(0);cell.colSpan=2;cell.appendChild(subBody);body.appendChild(table);callback[actions[0]](subBody);this.setLast(callback,actions[0],subBody);}
RTTradeStatsHandler.prototype.createAnchors=function(captions,actions,body,callback)
{var listItems={ids:actions,values:captions};var anchorCriteria=new AnchorListCriteria(listItems,actions[0],this);anchorCriteria.myCallback=callback;anchorCriteria.myBody=body;var output=document.createElement('div');output.className='anchorContainer';this.anchorList.run(anchorCriteria,output);return output;}
