function opencertificaat()
{
	window.open("../../../enquete/vraag_1_tm_3.php","Enquete","width=580,height=700,left=20,top=20,scrollbars=yes");
}

if (document.getElementById)
{
    document.write('<style type="text/css">\n')
    document.write('.submenu{display: none;}\n')
    document.write('</style>\n')
}

function SwitchMenu(obj)
{
    if(document.getElementById)
    {
        var el = document.getElementById(obj);
        var ar = document.getElementById("masterdiv").getElementsByTagName("span")
        if(el.style.display != "block")
        {
            for (var menulink=0; menulink<ar.length; menulink++)
            {
                if (ar[menulink].className=="submenu")
                ar[menulink].style.display = "none";
            }
            el.style.display = "block";
        }
        else
        {
            el.style.display = "none";
        }
    }
}

function printen()
{
	window.print()
	window.opener = null; 
	window.close();
}

function autoHeight(theIframe)
{
	var theDocument = theIframe.contentWindow.document;
	var theHeight = theDocument.getElementsByTagName('body')[0].scrollHeight;
	
	theIframe.scrolling = 'no';
	theIframe.style.overflow = 'hidden';
	theIframe.frameBorder = 0;
	theIframe.height = theHeight;
}
