I'm trying to direct visitors to a given page according to business hours. I'm a total newbie at js, so I'm probably making lots of syntax errors. Here's what I have. The schedule is 7:30am to 3:30pm, Monday through Friday:

Code:
todaydate = new Date();
timeis=todaydate.getTime();
todaydate.setTime(timeis);
houris = todaydate.getHours();
mins = todaydate.getMinutes();
dayis = todaydate.getDay();
if(dayis>0 && dayis>1 && (((houris*60) + mins)<=930) && (((houris*60) + mins)>=450)) {
location.href='http://www.website.com/main/businesshours.htm';
}

else{location.href='http://www.website.com/main/afterhours.htm';
}
I seem to be having a problem with the value that 'dayis' is returning...