in reply to (OT) Use javascript? ahhh!!!

This is totally not Perl but it might be possible to put a hidden field (called,say windowidth) in your form and then do:
form.windowidth = window.width;
in your forms OnSubmit event or somewhere else suitable. This will then be available to your CGI program. I can't think of a way of doing this with Perl unfortunately.
/J\