function popup(strURL, intWidth, intHeight) {
   var top=(screen.availHeight-intHeight)/2;
   var left=(screen.availWidth-intWidth)/2;
   window.open(strURL , "popup", "width=" + (intWidth) + ", height=" + (intHeight) + ", left=" + left + ", top=" + top + ", alwaysRaised, dependent,scrollbars=no");
}

function smiley(smtext) {
   document.comentari.text.value+=smtext;
   document.comentari.text.focus();
}

// window.onload = showapt;

function showapt(id) {
var d = document.getElementById(id);
   for (var i = 1; i <= 20; i++) {
      if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
   }
if (d) {d.style.display='block';}
}
function sw(id) {
   if (document.getElementById(id).style.display == 'block')
      document.getElementById(id).style.display = 'none';
   else
      document.getElementById(id).style.display = 'block';
}