Hi,
I have an ASCX control with a calendar. In the ASCX markup page I tried this and it didn't work. The calendar is still scrunched up to the left when there is no datat in the clendar AND I use FireFox.
In my case, I used "CalendarCtr1" in the getelement
<script type="text/javascript">
var c = document.getElementById('<%=CalendarCtr1%>');
if(c!=null)
{
c.style.display = null;
}
</script>