<head>
)strategy: search for "<HEAD>" in Upper(string) with AT(). After the "<HEAD>" stuff(c) your javascript code at that position+6, so after the ">". There even may be attributes defined within the head, so don't be sure to find "<HEAD>", you may find "<HEAD ...attributes... >" or even no "<HEAD>" at all. Then add the "<HEAD>" section before "<BODY". Well, and I'd say there must be some call to that javascript, eg. <Body onload="...call...">, but that depends...Bye, Olaf.