	function openPictureWindow(intFileId)
		{
		scherm = window.open("/index.php?page=picture&intFileId="+intFileId, "foto", 'height=400,width=400,toolbar = 0,scrolling = yes,scrollbars = yes,directories = no,menubar = no,location = no,resizable = yes,personalbar = no,status = no');
		scherm.focus();
		}

	function openadres()
		{
		schermadr = window.open('adres.php', 'adres', 'height = 154,width = 280,toolbar = 0,scrolling = no,scrollbars = no,directories = no,menubar = no,location = no,resizable = yes,personalbar = no,status = no');
		schermadr.focus();
		}

	function findPosX(obj) {
		var curleft = 0;
		if (obj.offsetParent) 	{
			while (obj.offsetParent) {
				curleft += obj.offsetLeft;
				obj = obj.offsetParent;
			}
		} else if (obj.x) {
			curleft += obj.x;
		}
		return curleft +'px';
	}

	function findPosY(obj) {
		var curtop = 0;
		if (obj.offsetParent) 	{
			while (obj.offsetParent) {
				curtop += obj.offsetTop;
				obj = obj.offsetParent;
			}
		} else if (obj.x) {
			curtop += obj.x;
		}
		return curtop+'px';
	}

	var isNS = 0;
	var isNS4 = 0;
	var isIE = 0;
	var isOtherBrowser = 0;

	if (navigator.appName.indexOf('Netscape') != -1) {
		isNS = 1;
	} else {
		if (navigator.appName.indexOf('Microsoft Internet Explorer')!= -1) { 
			isIE =1; 
		} else { 
			isOtherBrowser = 1; 
		}
	}

	var iBrowserVersion = 0;
	iBrowserVersion = parseInt(navigator.appVersion);

	if (isNS && iBrowserVersion == 4) {
		isNS4 = 1;
	}

	var isMac = 0;
	var isWin = 0;
	var isOtherOS = 0;
	if (navigator.appVersion.indexOf('mac') != -1)
	{
		isMac = 1;
	} else {
		if (navigator.appVersion.indexOf('Win') != -1)
		{
			isWin = 1;
		} else {
			isOtherOS = 1;
		}
	}



	function checkEmail(str) {
		return (/^[a-zA-Z0-9_\.-]*@[a-zA-Z0-9_\.-]*(\.\w{2,4})+$/.test(str));
	}

	function HighlightAll(theField) {
		var tempval=eval(theField);
		tempval.focus();
		tempval.select();
		if (document.all){
			therange=tempval.createTextRange();
			therange.execCommand("Copy");
			// alert("De berichttekst wordt nu voor de veiligheid ook gekopieerd naar het klembord.\nToets CTRL-V om het bericht eventueel in een document te plakken.");
			//window.status="Contents highlighted and copied to clipboard!";
			//setTimeout("window.status=''",2400);
		}
	}
	function rnd() {
			rnd.seed = (rnd.seed*9301+49297) % 233280;
			return rnd.seed/(233280.0);
	};

	function rand(number) {
			return Math.ceil(rnd()*number);
	};


	function ss(w){window.status=w;return true;}
	function cs(){window.status='';}

