//scriptcode

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function menubalk_DoFSCommand(command, args) 
{
	if (command == "zetstatus")
  		window.status = args;
}

function categorie(c)
{
	var menubalkObj
	if (isInternetExplorer)
	{
		menubalkObj = document.all.menubalk;
	}
	else if (document.embeds)
	{
		menubalkObj = document.embeds['menubalk'];
	}
	else
	{
		menubalkObj = document.getElementById('menubalk');
	}
	menubalkObj.SetVariable("categorie",c);
}

// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub menubalk_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call menubalk_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
////

function mailflits(flitscode)
{
	//open window voor mailen van flits
	//aangeroepen vanuit overal waar een nieuwsflits staat
	
	mailWindow = window.open("/mailartikel/mailflits.shtml?" + flitscode,"mailwind","WIDTH=400,HEIGHT=450");
	mailWindow.focus();
};

function mailvisnet(brievenbus)
{
	//open window voor mailen van een bericht
	
	mailWindow = window.open("/mailartikel/mailvisinhetnet.shtml?" + brievenbus,"mailwind","WIDTH=600,HEIGHT=450");
	mailWindow.focus();
};


function downloadpopup()
{
	//open window voor een download popup
	//aangeroepen vanuit de rechterbalk
	
	downWindow = window.open("/onderdelen/download.shtml", "downwnd","WIDTH=400,HEIGHT=400");
	downWindow.focus();
};

function checkLeeg(form, veldnaam, veldomschrijving)
{
	//return false en klaag als een veld niet is ingevuld dat wel ingevuld moet worden
	if (form[veldnaam].value.length == 0)
	{
		window.alert("Het veld '" + veldomschrijving + "' moet ingevuld worden!");
		return false;
	}
	return true;
};

function checkRadioLeeg(form, radiogroep, veldomschrijving)
{
	//return false en klaag als geen radio is aangeklikt in de radiogroep dat wel ingevuld moet worden
	groep = form[radiogroep];
	for (i = 0; i < groep.length; i++)
	{
		if (groep[i].checked)
			return true;
	}
	window.alert("Je hebt niets aangeklikt bij " + veldomschrijving + "!");
	return false;
}