var da = (document.all||document.getElementById) ? 1 : 0
function StartPrint() {
if(da)
{ print(); }
else { window.print(); }
}

var bookmarkurl=document.location
var bookmarktitle=document.title

function addbookmark(){
if (document.all||document.getElementById)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function fjernStipletLinie()
{
for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}
if (document.all||document.getElementById)
{
document.onmousedown = fjernStipletLinie;
}

function init() {
  var oForm = document.forms["limit"];
  if (oForm) {
   var oFelt = oForm.elements["limitedinput"];
   if (oFelt) {
    oFelt.onkeypress = function() {
     return (this.value.length<250);
    }
   }
  }
}
window.onload = init;

function init() {
  var oForm = document.forms["pesan"];
  if (oForm) {
   var oFelt = oForm.elements["fcomment"];
   if (oFelt) {
    oFelt.onkeypress = function() {
     return (this.value.length<250);
    }
   }
  }
}
window.onload = init;

