var nyhedsvindue

function overfor(){
parent.side.location="main.html";
}

function nytvindue(x){
  //window.open(x,'nyside','top=40,left=60,width=400,height=550,scrollbars=yes,location=no')
  nyhedsvindue = window.open(x,'nyside','top=40,left=60,width=400,height=550,scrollbars=yes,location,resizable')
  nyhedsvindue
}

function nytvindue2(x){

  produktarkvindue = window.open(x,'produktbeskrivelse','top=10,left=60,width=600,height=700,scrollbars=yes,location=no')
  produktarkvindue
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function LukVindue(){
    window.close()
    window.opener.location.reload(true)
  }  
  
function document_onclick()
{
  if (nyhedsvindue)
  {
  nyhedsvindue.close();
  nyhedsvindue == '';
  }
}
  
