hi everyone and thanks for your input.
vbkris, yes, that is the error I'm talking about when I say it crashes in IE, but it works in Netscape.
sleipnir214, I don't consider it a javascript problem, because as javascript it works perfectly in any browser, but when I try to put it into php...