// verander de font
var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}


// De Cookie opvragen
function getCookie(c_name){
	if (document.cookie.length>0)
	{ 
	c_start=document.cookie.indexOf(c_name + "=")
		if (c_start!=-1){ 
			c_start=c_start + c_name.length+1 
			c_end=document.cookie.indexOf(";",c_start)
			if (c_end==-1) c_end=document.cookie.length
			return unescape(document.cookie.substring(c_start,c_end))
		} 
	}
return ""
}

// De Cookie wegschrijven
function setCookie(VakbondCookie,VakbonsHistorie,expiredays)
{
var exdate=new Date()
	exdate.setDate(exdate.getDate()+expiredays)
	document.cookie=VakbondCookie+ "=" +escape(VakbonsHistorie)+
	((expiredays==null) ? "" : "; expires="+exdate.toGMTString())
}

// waarden in Cookie zetten
/*
function checkCookie()
{
username=getCookie('test')
if (username!=null && username!="")
  {alert('welkom '+username+'!')}
else 
  {
  username=prompt('Please enter your name:',"")
  if (username!=null && username!="")
    {
    setCookie('test',username,365)
    }
  }
}
*/