i just noticed some of you having probs with this if the server is slow it redirects to the wrong place i noticed its been fixed but this is how i have doe it anyway... if it helps anyone i'm pleased
change this
{window.location = "$url";}
to this
{window.location = "showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";}
well i hope it helps a bit
have a very nice new year all the best
rimmer