If, and only if, you really, really as in REALLY, have to do this on the client side, use an event based script; no onclick, or onsubmit (that is soooo 1997).
Remember to have the script on a separate file, not on the html itself, and, sorry, AND, try to have the server side proccess the "compare" option by default (making the compare a real submit button and the other a javascript based) and, when it presents the comparison, show them the "send a friend option" (in case they had clicked "send to a friend" but the script failed/was not available/no javascript enabled) Or... I know some guys who could "convince" the person responsible for not letting the server deal with form the way it should. A mere hundred dollars would do. Just so you know... ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
