The function uses the window.alert() method to display message boxes to the user.
To run the function from a hyperlink the HREF reference takes the form javascript:functionname where the functionname is replaced by the actual function being called.
Taken from: