Edit in JSFiddle

<!-- всплывающее окно с виджетом чата chatemplate -->
<a href="javascript:void(0)" class="chatemplate" onclick="this.nextElementSibling.style.display='block';"></a>
<div id="parent_popup_click1" class="parent_popup_click">
<div class="popup_click"> 
<!-- начало HTML-кода для вставки чата на сайт -->
<div id="chatovod244750"></div><p><a href="http://chatovod.ru/">Создать чат бесплатно!</a></p><script type="text/javascript">(function() {var po = document.createElement('script');po.type = 'text/javascript'; po.charset = "UTF-8"; po.async = true;po.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//ch-001.chatovod.ru/widget.js?height=450&divId=chatovod244750';var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po, s);})();</script> 
<!-- конец HTML-кода для вставки чата на сайт -->  
<a class="close" title="Закрыть" onclick="document.getElementById('parent_popup_click1').style.display='none';">
</a>
</div>
</div><!--/ всплывающее окно с виджетом чата chatemplate -->