website login

I am trying to make a script that will login to a website automatically and play a radio player
the website is radiotime

This is the code I have so far.

I have tried several variations and none have done the trick
number 1.
property target_url : “http://radiotime.com/Login.aspx
open location target_url
tell application “System Events”
return
end tell
This one opens the page and I have my username and password saved but the return doesn’t work ( basically I want to push the button to login on the page)

Number 2.
tell application “Camino”
activate
tell application “System Events”
keystroke “username” & tab & “password” & return
end tell
end tell
I"m not too sure how to use this one and if it will work. I"m guessing you need to declare the username and password somehow but I don’t know how to do this.
Any tips

ok, I think i’ve figured this one out.
the problem was that the commands tab and return weren’t working because the webpage wasn’t up yet.
I put in a delay of 3 seconds before the tab and now it opens.
Hurray. but now one more problem.
How do I get the webpages to activate the player or some other button on the webpage?

I don’t think Camino supports “do JavaScript” but if you were using Safari, you could do something like:

property target_url : "http://radiotime.com/Login.aspx"
open location target_url
tell application "Safari" to do JavaScript "document.forms[0].submit()" in document 1