function WhatBrowser()
{if (document.all) {ThisBrowser = "IE"}
 else if (document.layers) {ThisBrowser = "NS4"}
 else if (!document.all && document.getElementById) {ThisBrowser = "NS6"}
}

function Recital(Muziekstuk)
// Start de .asp die een flash met muziek en beelden geeft
{pars="fullscreen"
window.open(Muziekstuk,"",pars)
}   
function WindowOpen1(url, h, b)
{pars = "toolbar=no, status=no, resizable=yes, scrollbars=yes, "
 if (h == 0) 
 {h = 600; b = 600}
 else 
 {h = h + 120; b = b + 350}
 pars = pars + "height=" + h + ", width=" + b; 
 // alert(pars)
 window.open(url,"",pars)
}
function Toon1Werk(JAZnummer, h, w)
// JAZnummer is een string met het JAZnummer, bv '1900-001';
// h = hoogte van JAZ plaatje in pixels 
// w = breedte van JAZ-collectie plaatje in pixels
{
  
// pars wordt de standaard setting van de windows parameters voor dit window	
// 	pars = "toolbar=no, status=no, resizable=yes, scrollbars=yes, "
	pars = ""
// experimenteel is vastgesteld dat h+100 en w+350 ok is
//  als h (en b) 0 is, dwz onbekend, maken we een 600x600 window
 if (h == 0) 
   {h = 600; w = 600}
 else 
   {h = h + 100; w = w + 350}
   
// voeg h en b toe aan de parameters   
 window.open("Toon1Werk.aspx?JAZnummer=" + JAZnummer,"",pars + "height=" + h + ", width=" + w)
}

function ShowNaarAndereAfdelingen()
  {WhatBrowser()
//   if (ThisBrowser == "IE"){NaarAndereAfdelingen.style.visibility="visible"}
   if (ThisBrowser == "IE"){document.getElementById("menupaneel").style.visibility="visible"} 
   else if (ThisBrowser == "NS6"){document.getElementById("menupaneel").style.visibility="visible"} 
   else if (ThisBrowser == "NS4"){document.menupaneel.visibility="visible"}
}   

function HideNaarAndereAfdelingen()
  {WhatBrowser()
   if (ThisBrowser == "IE") {document.getElementById("menupaneel").style.visibility="hidden"}
   else if (ThisBrowser == "NS6") {document.getElementById("menupaneel").style.visibility="hidden";}
   else if (ThisBrowser == "NS4") {document.menupaneel.visibility="hidden"}
}
function kleurtextbox(thiscontrol) {
    // alert('test')
    // '#FFFF66' is geel
    // '#FFFFFF' is wit
    if (thiscontrol.value == '')
    { thiscontrol.style.setAttribute('BackgroundColor', '#FFFF66', 0) }
    else
    { thiscontrol.style.setAttribute('BackgroundColor', '#FFFFFF', 0) }
}
function kleurdropdownbox(thiscontrol) {
    // alert('test')
    // '#FFFF66' is geel
    // '#FFFFFF' is wit
    tt = thiscontrol.value
    if (thiscontrol.value == 0)
    { thiscontrol.style.setAttribute('BackgroundColor', '#FFFF66', 0) }
    else
    { thiscontrol.style.setAttribute('BackgroundColor', '#FFFFFF', 0) }
}
   
