function SelectorFund(id, name, type, fundNo, ISIN, WKN, riskRank, aPrice, cPrice, total, usage, provision, ter, vaRisk, v1b, v1,v3,v5, sr1,sr3,sr5, ir1,ir3,ir5, perf1M ,perf2M, perf3M, perf6M, perf1Y ,perf3Y, perf5Y, perf10Y, perfCY, perfT, documents, bDate, currency, anlageSP, rtgMS, rtgSPS, rtgFeri, rtgNote, rtgSauren, rtgSPM, rtgCW, valDate, rtgLipper, institut_nr, rtgTelos)
{
  this.ID=id;
  this.Currency = currency;
  this.Name=name;
  this.FundNo=fundNo;
  this.Type=type;
  this.ISIN=ISIN;
  this.WKN=WKN;
  this.RiskRank=riskRank;
  this.APrice=aPrice;
  this.CPrice=cPrice;
  this.Total=total;
  this.IntUsage=usage;
  //alert (name + " " +usage);
  this.ASP=anlageSP;
  this.Provision=provision;
  this.TER=ter;
  this.VaR=vaRisk;
  this.Vola1B=v1b;
  this.Vola1=v1;
  this.Vola3=v3;
  this.Vola5=v5;
  this.SharpR1=sr1;
  this.SharpR3=sr3;
  this.SharpR5=sr5;
  this.InfoR1=ir1;
  this.InfoR3=ir3;
  this.InfoR5=ir5;
  this.Perf1M=perf1M;
  this.Perf2M=perf2M;
  this.Perf3M=perf3M;
  this.Perf6M=perf6M;
  this.Perf1Y=perf1Y;
  this.Perf3Y=perf3Y;
  this.Perf5Y=perf5Y;
  this.Perf10Y=perf10Y;
  this.PerfCY=perfCY;
  this.PerfT=perfT;
  this.documents=documents;
  try
  {
  this.BeginDate=new Date(bDate.split("/")[0],(bDate.split("/")[1])-1,bDate.split("/")[2]);
  }
  catch (ex)
  {}
  try
  {
  this.ValuationDate=new Date(valDate.split("/")[0],(valDate.split("/")[1])-1,valDate.split("/")[2]);
  }
  catch(ex)
  {}
  this.RTGMornigStar= rtgMS;
  this.RTGSandPStar=rtgSPS;
  this.RTGFERI=rtgFeri;
  this.RTGNote=rtgNote;
  this.RTGSauren=rtgSauren;
  this.RTGSandPManager= rtgSPM;
  this.RTGCitywire=rtgCW;
  this.RTGLipper=rtgLipper;
//  alert (documents.length);
  this.IsShown = true;
  this.INSTITUT_NR = institut_nr;
  this.RTGTelos = rtgTelos;
}

SelectorFund.prototype.showFund=showFund;
SelectorFund.prototype.isShown=isShown;
//SelectorFund.prototype.getDetailsLink=getDetailsLink;
SelectorFund.prototype.getQueryString = getQueryString;

function showFund(toShow)
{
this.IsShown=true;
}

		
function isShown()
{
// Returns true, if the fund is in the filter
//alert ("ischown called for"+this.Name + " value: " +this.IsShown);
return this.IsShown;			
}

//function getDetailsLink()
//{
// //return "fundDetailspage.aspx?tabID=0&fundid="+this.ID;
// return "Fonds-finder/fondsDetails.aspx?tabID=0&fundid="+this.ID;
//}

function getQueryString() {
    //return "fundDetailspage.aspx?tabID=0&fundid="+this.ID;
    return "?tabID=0&fundid=" + this.ID;
}
