And to add to Rad's comments, make sure you sync-up with the document object by adding a while loop before your writes, plus add brackets around your writes:

code:
while $objMSIE.busy and @error = 0 loop
$objMSIE.Document.Write("<HTML><TITLE>Something</TITLE><BODY bgcolor=#FFFFFF>")
$objMSIE.Document.Write("<B>Running: Allow Script Before Logon Script...</B><BR><BR>")
$objMSIE.Document.Write("<B>Exiting.</B><BR><BR>")

Hope this helps

-Shawn

[ 28 May 2002, 02:41: Message edited by: Shawn ]