
		function getCookie(sName){
			var allCookies = document.cookie;
			//alert(allCookies);
			var arCookies = allCookies.split(";");
			var s ="";
			for (var i=0;i<arCookies.length;i++){
				var arNameValue = arCookies[i].split("=")
 
			 	var name= arNameValue[0];//arCookies[i].substring(1,arCookies[i].lastIndexOf("="));
				var regName = new RegExp("\s*"+sName+"\s*","i");
			 	var value = arNameValue[1];//arCookies[i].substring(arCookies[i].lastIndexOf("=")+1);
				if (name.match(regName)) return value;
				//alert("x" + name + "\n" + value);
			}
			return "";
		}

		function showPopupinfo(URL,lastupdate,id){
		  var cookie= 'noshow'+id;
			var noshow = getCookie(cookie);
			//alert(noshow + "\n"  + lastupdate + "\n"  + id);
			if (!noshow || (parseInt(lastupdate) > parseInt(noshow))){
				popup(URL,'toolbar=no,menubar=no,location=yes,status=yes,scrollbars=yes,resizable=no,width=522,height=375,left=5,top=5,screenX=5,screenY=5')
			}
		}
		
		//showURLinPopup is bedoeld om een willekeurige url in een popup (nieuw window) te tonen
		//Indien de parameters popup_width of popup_height leeg is dan wordt de default waarde voor deze optie gebruikt
		function showURLinPopup(URL,popup_width,popup_height)
		{		var popup_features         = ''
				var popup_default_settings = 'toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=no,left=5,top=5,screenX=5,screenY=5'
				var popup_default_width    = '522'
				var popup_default_height   = '375'
				
				popup_features = popup_default_settings 

				if (popup_width=='')
					{	popup_features = popup_features + ',width=' + popup_default_width }
				else
					{	popup_features = popup_features + ',width=' + popup_width }

				if (popup_height=='')
					{	popup_features = popup_features + ',height=' + popup_default_height }
				else
					{	popup_features = popup_features + ',height=' + popup_height }
				
				popup(URL,popup_features)
		}