I am trying to use the date and time from the server to display an alert box during specific times of the day and on specific days of the week. I have a page that is not always available and I need to use the server date and time instead of the client date and time.<BR><BR>The code I&#039m trying is below (keep in mind that I&#039m a novice)<BR><BR><BR>&#060;%<BR>varday = Weekday(date)<BR>varhour = hour(time)<BR>vardate = now<BR>%&#062;<BR><BR><BR>&#060;script language="JavaScript"&#062;<BR><BR> function warn_on_submit()<BR><BR> if ((varday &#062; 0) & (varday &#060; 6) & (varhour &#062; 6) & (varhour &#060; 18)) then <BR> <BR> <BR> alert("Equipment can only be viewed within 30 days prior to Auction,
" +<BR> "at the following times:
" +<BR> "
Mon - Thurs evenings from 6pm-6am CDT and
" +<BR> "Fri 6pm through Mon 6am CDT on weekends
" +<BR> "_____________________________________________
" +<BR> " it is currently " + vardate + " CDT ") <BR>else<BR> location.href="http://www.my.website.com"<BR> <BR> <BR> ;<BR> }<BR> &#060;/script&#062;<BR><BR><BR>