//[OPENPIC]

    function openpic(title,url,lo,me,re,sc,st,to,closingtime,w,h,t,l)
    {
      
var h = parseInt(h) + 15;

      if (t < 0 || l < 0)
    {
      l = Math.round((screen.availWidth - w) / 2);
      t = Math.round((screen.availHeight - h) / 2)-25;
    }

        if (navigator.appName == 'Netscape' && navigator.appVersion.substring(0,1) == '4')
        {         
aw=window.open('','','toolbar='+to+',menubar='+me+',scrollbars='+sc+',resizable='+re+',status='+st+',location='+lo+',width='+w+',height='+h+',top='+t+',left='+l);
          aw.document.location=url;
          return false;
        }
        else
        {          
aw=window.open('','','toolbar='+to+',menubar='+me+',scrollbars='+sc+',resizable='+re+',status='+st+',location='+lo+',width='+w+',height='+h+',top='+t+',left='+l);
         temp= '<HTML><head><title>' + title + '<\/title><\/head><body TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">';
         temp= temp +   '<table bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">';
         temp= temp +     '<tr><td width="100%">';
         temp= temp +         '<p align="center"><a href="javascript:window.close();"><img src="' + url + '" border="0"><\/a>';
         
    temp= temp + '<tr><td height="100%"><p align="center" STYLE="font-size: 9px; color: #000000; font-family: Verdana;  "><a href="javascript:window.close();">Lukk vindu</a><\/td><\/tr>';

         temp= temp +     '<\/td><\/tr>';
         temp= temp +   '<\/table>';
         temp= temp + '<\/body><\/HTML>';

         aw.document.write(temp);
        }

     if (closingtime !=0) aw.setTimeout('window.close()',closingtime);
     }

//[END]

