JSP - Printer Friendly - JavaScript Not working - need Help

Hi Frnds,

I am working on JSF and JSP when I am using printer friendly skin(Web Sphere Portal) to one particular JSP it's not working properly.

To be more precise, I have a JSP with 3 tabs in it, when I open one Tab and click on printer friendly link(JavaScript Invoked) it shows ok, when I am on second tab and do the same again it shows the content from 1st tab only, but it should supposed to show contents of second tab. I am also posting the JavaScript(Printer Friendly) and the particular JSP please do help me guys...

NOTE: By default, automatic reloading of theme and skin JSP files is turned off.
To see the changes you make to this file without stopping and restarting
the server, follow the instructions for enabling automatic JSP reloading
in the InfoCenter.

Do not enable automatic JSP reloading in a production environment
because performance will decrease.

Do you honestly think anyone is going to work through that lot?
Shrink it down into the smallest possible code that shows your problem (3 tabs with not much on them would be a start, removing anything not to do with printer-friendly stuff). In doing so you might also figure out what the cause is.