
function PinkCommonAppNav(rootPath)
{this.rootPath=(undefined==rootPath)?'/common':rootPath;}
PinkCommonAppNav.prototype.openCustomersExport=function(ids)
{window.open('/common/admins/ViewCustomers.csv'+this.toParams('id',ids),'viewCustomers');}
PinkCommonAppNav.prototype.openCustomersSpreadsheet=function(ids)
{window.open('/common/admins/ViewCustomers.xls'+this.toParams('id',ids),'viewCustomers');}
PinkCommonAppNav.prototype.openCustomerUsersExport=function(ids)
{window.open('/common/admins/ViewCustomerUsers.csv'+this.toParams('id',ids),'viewCustomerUsers');}
PinkCommonAppNav.prototype.openCustomerUsersSpreadsheet=function(ids)
{window.open('/common/admins/ViewCustomerUsers.xls'+this.toParams('id',ids),'viewCustomerUsers');}
PinkCommonAppNav.prototype.openHistoryPrice=function(filter)
{window.open(this.rootPath+'/quote/ViewHistoryPrice.xls?'+this.createPostMapData(filter),'viewHistoryPrice');}
PinkCommonAppNav.prototype.openOpenCloseTraderSpreadsheet=function(filter)
{window.open(this.rootPath+'/quote/ViewOpenCloseTrader.xls?'+this.createPostMapData(filter),'viewOpenCloseTrader');}
PinkCommonAppNav.openOtcSecurities=function()
{window.open('/common/ViewOtcSecurities.xls','otcSecurities');}
PinkCommonAppNav.prototype.openOtcSecurities=function()
{window.open(this.rootPath+'/ViewOtcSecurities.xls','otcSecurities');}
PinkCommonAppNav.prototype.openPlink=function(filter)
{window.open(this.rootPath+'/quote/ViewPlink.xls?'+this.createPostMapData(filter),'ViewPlink');}
PinkCommonAppNav.prototype.openPlinkAdMM=function(filter)
{window.open(this.rootPath+'/quote/ViewPlinkAdMM.xls?'+this.createPostMapData(filter),'ViewPlinkAdMM');}
PinkCommonAppNav.prototype.openShoHistoryReport=function(positionDate)
{window.open(this.rootPath+'/ViewShoHistory.xls?'+FIELD_POSITION_DATE+'='+positionDate,'shoHistoryReport');}
PinkCommonAppNav.prototype.openShortInterestReport=function(positionDate)
{window.open(this.rootPath+'/ViewShortInterest.xls?'+FIELD_POSITION_DATE+'='+positionDate,'shortInterestReport');}
PinkCommonAppNav.prototype.createPostMapData=AjaxHelper.prototype.createPostMapData;PinkCommonAppNav.prototype.toParams=function(name,list)
{if((undefined==list)||(0==list.length))
return'';var data='?';for(var i=0;i<list.length;i++)
{if(0<i)
data+='&';data+=name+'='+list[i];}
return data;}