var sBrowser = navigator.userAgent;  
if ((sBrowser.indexOf("IE")>-1) && (navigator.platform=="Win32"))
{sBrowser="IE";}else{sBrowser = "nonIE";}
function XMPHtmlDecode(str){
var strOut=str.replace(/&lt;/g, '<'); strOut=strOut.replace(/&gt;/g, '>');strOut=strOut.replace(/&amp;/g, '&');
strOut=strOut.replace(/&quot;/g, '\"');strOut=strOut.replace(/&#39;/g, '\'');
return strOut;}
function popupWindow(url,name,w,h){
l=(screen.width-w)/2;t=(screen.height-h)/2;
window.open(url,name,'width='+w+',height='+h+',left='+l+',top='+t+',location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=yes');}
function SendNewsletter(url){
popupWindow('/scripts/MailNieuwsbrief.aspx?url='+url,'TestNieuwsbrief',300,200);}
function checkcategory(nr,val){
if(val=="A"){
document.getElementById("_divRepresentive"+nr).style.display = "block";
document.getElementById("_divPeriod"+nr).style.display = "block";
document.getElementById("_divFunction"+nr).style.display = "none";}
if(val=="B"){
document.getElementById("_divRepresentive"+nr).style.display = 'block';
document.getElementById("_divPeriod"+nr).style.display = "none";
document.getElementById("_divFunction"+nr).style.display = "block";}
if(val=="C"){
document.getElementById("_divRepresentive"+nr).style.display = "none";
document.getElementById("_divPeriod"+nr).style.display = "none";
document.getElementById("_divFunction"+nr).style.display = "none";}
if(val=="D"){
document.getElementById("_divRepresentive"+nr).style.display = "none";
document.getElementById("_divPeriod"+nr).style.display = "none";
document.getElementById("_divFunction"+nr).style.display = "block";}}