function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImgRestore2() { //v3.0
  var i,x,a=document.MM_sr2; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImage2() { //v3.0
  var i,j=0,x,a=MM_swapImage2.arguments; document.MM_sr2=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr2[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



// check for transparent PNG supported browser
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf('msie') != -1 && agt.indexOf('opera') == -1) {
	   // IExplorers (= not supported. IE7 does, but still the old gamma error)
document.write('<style type="text/css">.rrhtitleorange {background-image: url(images/rrh-title-orange.gif);} .rrhtitleblue {background-image: url(images/rrh-title-blue.gif);}</style>');
       tpng = 'false';
}
else { // other Mozilla's (= ok Netscape/Firefox/Opera a.o.)
document.write('<style type="text/css">.rrhtitleorange {background-image: url(images/rrh-title-orange.png);} .rrhtitleblue {background-image: url(images/rrh-title-blue.png);}</style>');
       tpng = 'true';
}
















function clearemailaddress() {document.subscribe.email.value=''}

function openpop(url,popTitle,width,height,xPos,yPos) {
/////// <a href="//" onClick="openpop('URL','popup name (=target)', width, height   ///extra (if not used = centered):///  , x pos, y pos)">...

var scrollbars=	"no";
var centered=	"yes";
if (xPos >= 0 && xPos >= 0) centered="no";

if(centered=="yes"){myXpos=(screen.availWidth-width)/2;myYpos=(screen.availHeight-height)/2} else {myXpos=xPos;myYpos=yPos}

win = window.open(url,popTitle,'left='+myXpos+',top='+myYpos+',width='+width+',height='+height+',toolbar=0,scrollbars='+scrollbars+',resizable=0');
win.focus();
}



function checkNEmail(form) {
	if (isBlank(form.email.value) || isBlank(form.name.value) || !isEmailValid(form.email.value) ) 
	{
if (lang == 'nl') alert("Geef een geldige naam en email adres.\nHet email adres of de naam dat je hebt opgegeven is niet geldig.");
if (lang == 'fr') alert("Donnez un nom et un email address valide.\nL'email address ou le nom que vous avez abandonné est inadmissible.");

		 
		form.email.focus();
		return false;
	}
	}

function checkEmail(form) {
	if (isBlank(form.email.value) || !isEmailValid(form.email.value) )
        {
if (lang == 'nl') alert("Geef een geldig email adres.\nHet email adres dat je hebt opgegeven is niet geldig.");
if (lang == 'fr') alert("Donnez un email address valide.\nL'email address que vous avez abandonné est inadmissible.");
         
		form.email.focus();
		return false;
	}

setTimeout("document.subscribe.email.value=''",100);

return true;


}

function isBlank(fieldValue) {
	var blankSpaces = / /g;
	fieldValue = fieldValue.replace(blankSpaces, "");
	return (fieldValue == "") ? true : false;
}

function isEmailValid(fieldValue) {
	var emailFilter = /^.+@.+\..{2,4}$/;
	var atSignFound = 0;
	for (var i = 0; i <= fieldValue.length; i++)
		if ( fieldValue.charAt(i) == "@" )
			atSignFound++;
	if ( atSignFound > 1 )
		return false;
	else
		return ( emailFilter.test(fieldValue) && !doesEmailHaveInvalidChar(fieldValue) ) ? true : false;
}

function doesEmailHaveInvalidChar(fieldValue) {
	var illegalChars = /[\(\)\<\>\,\;\:\\\/\"\[\] ]/;
	return ( illegalChars.test(fieldValue) ) ? true : false;
}