Thanks to Mark for the great advise. There are plenty of examples and guides on using javascript on this forum. Look here for some other resources...