I am currently re doing a site created buy someone else. I need to keep the same function, but it appears the current way the process is being done has 60 if statements. Now it works, but there are several problems. 1. Thats way too many If statements, and 2. The problems the If statements are handling will soon have to be increased.<BR><BR>The code I am re working goes like this. There is a loop of 4 different possiblities for a site to be based on a 7 day timeframe. Today begins week 1 site that is shown, next monday begins week 2, and so on. When week four occurs it returns back to week 1...repeating til the end of time. The way the previous web developer wrote this is in if statements. He subtracted todays date from a base date and divided that number by 7, then wrote if statements based on his answer. So if his answer was 1 he would show week 1 if it was 6, he would show week 2. This works fine except the loops is basically hard coded and the only way it seems to work is if I would keep adding more if statements to handle the division answer. I need suggestions on how to reduce this the least amount of code and if statements as possible.