function ShowInfoBox(strUrl, blnNoModal)
{
  if (!blnNoModal && window.showModalDialog)
  {
    var strFeatures = "center: yes; dialogWidth: 400px; dialogHeight: 350px; help: no; status: no; scroll: no";
    var objUser = window.showModalDialog(strUrl, window, strFeatures);
  }
  else
  {
    var intWidth = 400;
    var intHeight = 350;

    // Sjekker om vinduet er større enn skjermen (20 -> ie vindufeil)
    if (intWidth + 20 > screen.availWidth) intWidth = screen.availWidth - 20;
    if (intHeight + 20 > screen.availHeight) intHeight = screen.availHeight - 20;

    // Beregn hjelpevinduets optimale posisjon
    var intX = top.document.body.offsetWidth / 2 - intWidth / 2;
    var intY = top.document.body.offsetHeight / 2 - intHeight / 2;

    // Sjekk at vinduet ikke plasseres utenfor skjermen
    if (intX + intWidth + 20 > screen.availWidth) intX = screen.availWidth - intWidth - 20;
    if (intY + intHeight + 20 > screen.availHeight) intY = screen.availHeight - intHeight - 20;
    if (intX < 0) intX = 0;
    if (intY < 0) intY = 0;

    //Oppretter vindu, setter plassering og størrelse og riktig adresse
    var strSettings = "width=" + intWidth + ", height=" + intHeight + ", left=" + intX + ", top=" + intY + ", toolbar=no, fullscreen=no, location=no, status=no, menubar=no, resizable=yes, scrollbars=no";
    windowInfo = window.open(strUrl, "infoWin", strSettings);
  }
}

function Search()
{
  var strSearch = document.getElementById("txtSearch").value;
  document.location.href = ("http:/934/0/801-0.html?Search=" + strSearch);
}
