Scripting Safari

Does anyone have a script that can check a web site to see if loads within a specific amount of time in Safari or any other browser? And if it does not, send an email to alert that there may be a problem.

Try this for part one of your request:

tell application “Safari” to open location “http://bbs.applescript.net/” --subsitute your Web page URL

subWait1()

on subWait1() --an automatic waiting routine that allows browser to completely load web page while the 1 second counter ticks
set i to 1
tell application “Safari” to set testText to text of front document as string
repeat while testText = “”
delay 1 --one second delay
set i to i + 1 --as loop cycles once per second, variable i increments
beep
set testText to text of front document as string
end repeat
get i
end subWait1