


function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function showHideLayers() {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function linkselect (url) {
strlen = url.length
targ = url.substring(0,0)
jumpto = url.substring(0, strlen)
if (url == "njet") {
}
else if (targ.charAt(0) != 's') {
window.top.location = jumpto
}
else parent.stor.location = jumpto
}

  /**
  * ADDED BY BG 20020909
  */
  function noLinkFocus(){
   for (a in document.links) document.links[a].onfocus = document.links[a].blur;
  }
  if (document.all){
   document.onmousedown = noLinkFocus;
  }

  /**
  * ADDED BY BG 20021002
  */
  function writeComment(aID){
  	window.open('/kommentera/index.asp?aID='+aID,'writecomment','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=550,width=420')
  }

  /**
  * ADDED BY BG 20021002
  */
  function readComment(aID){
  	window.open('/kommentera/list.asp?aID='+aID,'readcomment','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=550,width=420')
  }

  /**
  * ADDED BY BG 20021003
  */
  function passItOn(aID){
  	window.open('/tipsakompis/index.asp?aID='+aID,'tipsa','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=420,width=420')
  }
