Код:
<script type="text/javascript"> var div = document.getElementById('poll-special'); var id = GroupID; if(!div.getElementsByTagName('form')[0] && id>2){ div.getElementsByTagName('table')[0].style.display = 'none'; } </script>