function showImg(url, width, height) {
  var width = width ? width : 450;
  var height = height ? height : 550;
  var left = (screen.width - width) / 2;
  var top = (screen.height - height) / 2;
  var wnd = window.open("about:blank", "screenWnd",  'top=' + top + ',left=' + left + ',location=no,scrollbars=no,toolbar=no,menubar=no,statusbar=no,resizable=yes,width=' + width  + ',height=' + height);
  wnd.document.write('<html><body style="margin: 0px 0px 0px 0px"><img src="http://widecap.ru/' + url + '" border="0" width="' + width+ '" height="' + height + '"></body></body>');
};


function get_by_id(id) {
  return document.getElementById ? document.getElementById(id) :
        document.all ? document.all[id] : 0;
};


function togglePanel() {
  var el = get_by_id("bugPanel");
  if (el) {
    if (el.style.display == 'none') {
      el.style.display="block"; 
    } else {
      el.style.display="none"; 
    }
  }
}
	      
