function setYearList(type) {

 //alert(type);


 stdList=new Array();
 hosList=new Array();
 regList=new Array();
 splList=new Array();


 //use this when new data is ready
  
 stdList[0]="2006"; 
 stdList[1]="2005";
 stdList[2]="2004";
 stdList[3]="2003";      //Standard Atlas years
 stdList[4]="2002";
 stdList[5]="2001";
 stdList[6]="2000";
 stdList[7]="1999";
 stdList[8]="1998";
 stdList[9]="1997";
 stdList[10]="1996";
 stdList[11]="1995";
 stdList[12]="1994";
 
 
 //Hospital Specific
 hosList[0]="2001-2005";      // hospital years
 regList[0]="2001-2005";      // regional years
 
//Workforce
 splList[0]="2006";      // hospital years
 
 
 dList=new Array();      //multi-dimensional array of yearlists 

 dList.std=stdList;
 dList.hos=hosList;
 dList.reg=regList;
 dList.spl=splList;


  var form=document.forms[0];
  
  var selectObj=form.year;              // options year object

  selectObj.length=0;                   // empty list of options


 if (type=="HOS_HOS" ) {
   var yearArray=dList["hos"];    // select appropriate year list array
 }else if (type=="HOS_HRR" || type=="HOS_STA"){
 	var yearArray=dList["reg"]; 
 }else if (type=="SPL_HRR" || type=="SPL_HSA"){
 	var yearArray=dList["spl"]; 
 }else{
  var yearArray=dList["std"];    // select appropriate year list array
  }


  // populate a new list of options

   for(var i= 0; i < yearArray.length; i++ ) {
     selectObj.options[i]= new Option(yearArray[i]);   
   }  

   selectObj.options[0].selected=true;


} // function setYearList(type) 