use applescript to order pizza online?

i had a funny idea while i was at work of creating some kind of script that would be able to open the website for a pizza company, select my favourite pizza, order it then pay for it all without me having to go through it manually. would this actually be plausible as i didn't think about how it's actually going to navigate the webpage to buy my pizza?

i've got it to open the website so far, but my first hurdle is getting it to type my post code into the search box then run the search. i've looked at the source code and it looks like alot of it is javascript, can AppleScript work with javascript?

EDIT:
i've managed to get past the post code search now, but to in order to choose the right take-away restaurant there's a selection box which i think is in a table, i've found the table in the source code but i'm not sure how i can make the AppleScript select the right option

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.