Hi ...

I've noticed that I just couldn't get a Coolite Panel with a Javascript Function. The reason is that, in OnLoad, I want to resize a Coolite Panel, according to the screen size of the client.

For example: the javascript code below:

var paneltree = document.getElementById('CoolPanelPrincipal');
paneltree.style.height = screen.height;
doesn't work, because the var "paneltree" is always null.

If, instead, I use the code below:
var paneltree = document.getElementById('ctl00_CoolPanelPrincipal_Content');
paneltree.style.height = screen.height;
I can get the CoolPanel and change its height.

My question is:
Is there's a way to get a Coolite element with javascript, without specify the "clientid" directly ?

I just dont' want to use .getElementById('ctl00_CoolPanelPrincipal_Content' );

It doesn't seem to be the right way to do it ... Am I right ?

Thanks and best regards. You really do an excellent work with Coolite.
Alfonso Penunuri.