  function openWin(page, b, h)
  {
    var bredd = screen.width - 30;
    var hojd = screen.height - 70;
    var x = (bredd - b)/2;
    var y = ((hojd - h)/2) - 20;
    var scroll = "no";



   if (h > hojd){
      scroll = "yes";
      h = hojd; 
    }

   if (b > bredd){
      scroll = "yes";
      b = bredd;
    }


    var zuu = window.open(page,'popupwin','width='+b+',height='+h+',scrollbars='+scroll+',status=no,directories=no,location=no,menubar=no,resizeble=yes,titlebar=no,toolbar=no')

    if (y<0){
     y=2;
    }

    if (x<0){
     x=2;
    }
    
    zuu.moveTo(x,y);
  }

  function openWinScroll(page,b,h)
  {
    var bredd = screen.width - 20;
    var hojd = screen.height - 20;
    var x = (bredd - b)/2;
    var y = ((hojd - h)/2) - 20;
    var scroll = "no";

   if (h>hojd){
      scroll = "yes";
    }

   if (b>bredd){
      scroll = "yes";
    }


    var zuu = window.open(page,'popupwin','width='+b+',height='+h+',scrollbars='+scroll+',status=no,directories=no,location=no,menubar=no,resizeble=yes,titlebar=no,toolbar=no')
    zuu.moveTo(x,y);
  }



  //Disable right mouse click Script
  //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
  //For full source code, visit http://www.dynamicdrive.com

  var message="Private";

  ///////////////////////////////////
  function clickIE4(){
    if (event.button==2){
      alert(message);
    return false;
    }
  }


  function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
      if (e.which==2||e.which==3){
        alert(message);
        return false;
      }
    }
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
  }
  else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
  }

  document.oncontextmenu=new Function("alert(message);return false")
  function stop(){
    alert("Private!");
  }



