Although I have not tested your code, but I think, due to unwanted resize, your layout is getting distorted. If that be the case, try to use <TABLE> and put all the outputs in <TD> $field_name </TD> tag.how should I upgrade it in such a way that my newbody doesn't resize.
I appreciate that the suggestion I have placed here is a mere hint, and not the actual script, obviously based on the assumption that you are facing a layout related problem.
Regards,
Sid




