﻿// Pop-Ups

// ##  TOOLBAR  ##
function WindowToolbar(url) {
  popup=open(url,"x","resizable,scrollbars,width=508,height=370,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}
  
function NavWin(url) {
  popup=open(url,"navigate","toolbar,scrollbars,resizable,width=600,height=400,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

function popupnavi (url) { // This is same as above sans toolbar and resizable
	popup=open(url,"x", "scrollbars, width=600, height=400, top=100, left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

function NewWin(url) {
  popup=open(url,"x","scrollbars,resizable=0,width=572,height=345,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

function Helpwin(url) {
  popup=open(url,"colour","scrollbars,width=645,height=420,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

function Windowstop(url) {
  popup=open(url,"x","width=396,height=200,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

function WindowAvtaler(url) {
  popup=open(url,"x","scrollbars,resizable,width=462,height=400,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// Kampanje Pop-Up  620*532
function winHjelp(url) {
  popup=open(url,"x","width=620,height=532,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// ##  LIGHT-TJENESTER  ##

// Beregn ditt billån ; Søk Billån  464*400
function WindowBillaan(url) {
  popup=open(url,"x","scrollbars,resizable,width=464,height=400,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// C + D area (long): Bil&Skatt; Fondsinfo; Fondskalk; Reg.Skjema;   660*495 (?)
function WinCogDlang(url) {
  popup=open(url,"x","scrollbars,resizable,width=660,height=495,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// C + D area (short): Lånekalkulator; Valuta  660*396
function WinCogDkort(url) {
  popup=open(url,"x","scrollbars,resizable,width=660,height=396,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// Mer info bil ; Kontakt rådgiver ; Boliglån  464*350
function WindowInfo(url) {
  popup=open(url,"x","scrollbars,resizable,width=464,height=350,top=100,left=100");  if (popup.focus != null) {
    popup.focus()
  }
}

// Jalmar Innmelding 430*384
function WindowJalmar(url) {
  popup=open(url,"x","width=430,height=384,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// Jalmar Fargelegg 492*400
function WinFargeJalmar(url) {
  popup=open(url, 'flash', 'resizable,width=492,height=400,');
  if (popup.focus != null) {
    popup.focus()
  }
}

// Tips boks 420*150
function WindowTipsBox(url) {
  popup=open(url,"x","width=420,height=150,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// IBAN
function ibanWin(url) {
  popup=open(url, "x", "scrollbars,resizable,width=484,height=420,top=100,left=100");
  if (popup.focus != null) {
    popup.focus();
  }
}

// Standard Pop-Up
function popupLarge(url) {
  popup=open(url, "x", "width=492,height=370,top=100,left=100");
  if (popup.focus != null) {
    popup.focus();
  }
}

//   Micro-sites  550*500
function MicroSiteA(url) {
	popup=open(url,"x", "width=550,height=500,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

// C + D area (long) 660*495 med toolbar (back,forward,refresh, home, etc.)
function WithToolbar(url) {
  popup=open(url,"x","scrollbars,toolbar,resizable,width=660,height=495,top=100,left=100");
  if (popup.focus != null) {
    popup.focus()
  }
}

//-->
