
var pageHandler;function paintPage()
{pageHandler=new ShortInterestPage();}
function ShortInterestPage()
{var commonCaller=new PinkCommonCalls();this.commonNav=new PinkCommonAppNav();this.handler=new ShortInterestWorklistSimple(commonCaller,new ShortInterestWorklistByDateDOM(),document.getElementById('pageContent'),this,PAGE_SIZE_WORKLIST);commonCaller.getShortInterestDatesAsListItems(undefined,this);}
ShortInterestPage.prototype.gotoQuote=function(symbol)
{appNav.gotoShortInterestBySymbol(symbol);}
ShortInterestPage.prototype.handleRequestData=function(dates)
{this.selectList=(new SelectListDOM()).generate('positionDates',dates,undefined,undefined,this.handleDateChange);this.selectList.myCallback=this;document.getElementById('pageContentFilter').appendChild(this.selectList);this.selectList.selectedIndex=0;this.handler.doPositionDate(new Date(parseInt(this.selectList.value)));}
ShortInterestPage.prototype.handleDateChange=function(ev)
{var option=this.options[this.selectedIndex];restartPageServices('/marketactivity/shortInterest?'+option.value);this.myCallback.handler.doPositionDate(new Date(parseInt(option.value)));}
ShortInterestPage.prototype.download=function()
{var option=this.selectList.options[this.selectList.selectedIndex];restartPageServices('/marketactivity/shortInterest/download?'+option.value);this.commonNav.openShortInterestReport(option.value);}