public int getWeek(String week)
    {
         int pos = 0;

         if(week.equals("SUN"))
             pos = 1;
         else if(week.equals("MON"))
             pos = 2;
         else if(week.equals("TUE"))
             pos = 3;
         else if(week.equals("WED"))
             pos = 4;
         else if(week.equals("THU"))
             pos = 5;
         else if(week.equals("FRI"))
             pos = 6;
         else if(week.equals("SAT"))
             pos = 7;

         return pos;
     }