// 21-07-03/00   :2003.09.12 : H.Yasukawa : T4ED2226145 hide External Device to HP
// ----------------------------------------------------------------------------
// RAID500
// History  :Version       :DATE      : Coder       : P#          : Changes
//          :40-00-00/00-00:2003.10.20: H.Yasukawa  : U5002220617 : For RAID500
//          :40-00-03/00-00:2004.02.03: T.Kishimoto : U5002221169 : to forbid to write in STATUS
//          :40-05-01/00-00:2004.03.25: T.Kishimoto : UPOD2220978 : For PortOnDemand
//          :50-03-0X/00-03:2004.10.22  : K.Usami     : UPRM2223552 SLPR
//tabcheck        = new Array(tabno);
//tchange_b2n     = new Array(btnnum);
//tchange_t2n     = new Array(tabno);
//tchange_b2i     = new Array(btnnum);
//tchange_n2b     = new Array(btnnum);
//tchange_n2t     = new Array(tabno);
//tchange_t2i     = new Array(tabno);
//timgonoff       = new Array(2);
//timgonoff[0]    = new Array(tabno);
//timgonoff[1]    = new Array(tabno);
// U5002220617 Change }
// UPRM2223552 SLPR
buttoncheck[15]=1;button_property[15][0]=3;	// 04.11.08
  button_property[15][1]=121;
  button_property[15][2]="124";
  button_property[15][3]="125";
//  button_property[15][4]="125"; // PortOnDemand is not displayed if HP.
for(i=0;i<tabno;i++){                 // U5002220617
  tabcheck[i]=0;
}
// U5002221169 add  to forbid to write in STATUS in case of HP foreign. {
////External Device:13  : T4ED2225856
////buttoncheck[13]=1;button_property[13][0]=1;
////  button_property[13][1]=104;
//buttoncheck[13]=0;button_property[13][0]=0;
//  button_property[13][1]=0;
// U5002221169 add  to forbid to write in STATUS in case of HP foreign.}

// U5002221169 add  to forbid to write in STATUS in case of HP foreign. 
buttoncheck[0]=0;button_property[0][0]=0;
button_property[0][1]=0;

bi=3;
ai=1;
for(i=0;i<btnnum;i++){                // U5002220617
  if(buttoncheck[i] != 0){
     tchange_b2n[ i]=b+bi;
     tchange_n2b[b+bi]= i;
     tchange_b2i[ i]= ai+a;
//     alert(tchange_b2i[ i]);
     for(j=0;j<button_property[ i][0];j++){
//      U5002221690 8*i+j=>tabid2
//        tabcheck[8*i+j]=1;
        tabid2=button_property[ i][j+1];
        tabcheck[tabid2]=1;
        tchange_t2n[tabid2]=b+bi+1;
        tchange_n2t[b+bi+1 ]=tabid2;
        tchange_t2i[tabid2]=a+ai+2;
        bi++;ai=ai+3;
        timgonoff[0][tabid2]="/icon/imgoff.gif" ;
        timgonoff[1][tabid2]="/icon/img.gif" ;
     }
     bi++;ai++;
  }
}
