// JavaScript Document
<!--//

function algemenevoorwaarden(url) {
window.open(url, "algemenevoorwaarden", "width=500, height=400, left=200, top=75, resizable=yes, status=no, toolbar=no, location=no, menubar=no, scrollbars=yes");
}

function screenshot(url) {
window.open(url, "algemenevoorwaarden", "width=550, height=420, left=200, top=75, resizable=yes, status=no, toolbar=no, location=no, menubar=no, scrollbars=yes");
}

function afdrukken(url) {
window.open(url, "afdrukken", "width=760, height=600, left=100, top=50, resizable=yes, status=no, toolbar=no, location=no, menubar=no, scrollbars=yes");
}

function contract(url) {
window.open(url, "contract", "width=680, height=480, left=100, top=60, resizable=yes, status=no, toolbar=no, location=no, menubar=no, scrollbars=yes");
}

var version = "other"
browserName = navigator.appName;          
browserVer = parseInt(navigator.appVersion);
	
	if (browserName == "Netscape" && browserVer >= 3) version = "n3";
	else if (browserName == "Netscape" && browserVer < 3) version = "n2";
	else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
	else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";

		if (version == "n3" || version == "e4") {                

        homeon = new Image;
        homeon.src = "email/images/mbalkhome2.gif" ;
        homeoff = new Image;
        homeoff.src = "email/images/mbalkhome1.gif";
		
		mijnon = new Image;
        mijnon.src = "email/images/mbalkmijn2.gif" ;
        mijnoff = new Image;
        mijnoff.src = "email/images/mbalkmijn1.gif";

        productenon = new Image;
        productenon.src = "email/images/mbalkproducten2.gif" ;
        productenoff = new Image;
        productenoff.src = "email/images/mbalkproducten1.gif";

        reminderon = new Image;
        reminderon.src = "email/images/mbalkreminder2.gif" ;
        reminderoff = new Image;
        reminderoff.src = "email/images/mbalkreminder1.gif";

        webmailon = new Image;
        webmailon.src = "email/images/mbalkwebmail2.gif" ;
        webmailoff = new Image;
        webmailoff.src = "email/images/mbalkwebmail1.gif";

        supporton = new Image;
        supporton.src = "email/images/mbalksupport2.gif" ;
        supportoff = new Image;
        supportoff.src = "email/images/mbalksupport1.gif";

        contacton = new Image;
        contacton.src = "email/images/mbalkcontact2.gif" ;
        contactoff = new Image;
        contactoff.src = "email/images/mbalkcontact1.gif";
		
		uitloggenon = new Image;
        uitloggenon.src = "email/images/mbalkuitloggen2.gif" ;
        uitloggenoff = new Image;
        uitloggenoff.src = "email/images/mbalkuitloggen1.gif";
		  		
		}
        
function img_act(imgName) {
        if ( version == "n3" || version == "e4") {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
        }
}

function img_inact(imgName) {
        if ( version == "n3" || version == "e4") {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
        }
}

function ToggleAll(checked) {
    len = document.overzicht.elements.length;
    var i = 0;
    for(i = 0; i < len; i++) {
        document.overzicht.elements[i].checked = checked;
    }
}

<!-- WEBMAIL -->

function ToggleAll(checked) {
    len = document.messages.elements.length;
    var i = 0;
    for(i = 0; i < len; i++) {
        document.messages.elements[i].checked = checked;
    }
}

function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}

//-->