function formValueEmpty(id, stdValue){
	currValue=document.getElementById(id).value;
	if (currValue==stdValue){
		document.getElementById(id).value="";
	}
}

function formValueFill(id, stdValue){
	currValue=document.getElementById(id).value;
	if (currValue==""){
		document.getElementById(id).value=stdValue;
	}
}

function changeStyle() {
  identity=document.getElementById("siteBody");

  if (identity.className=="groot") {
    identity.className="klein";
    document.cookie = "activestyle=klein;path=/";
  }
  else if (identity.className=="middel") {
    identity.className="groot";
    document.cookie = "activestyle=groot;path=/";
  }
  else {
    identity.className="middel";
    document.cookie = "activestyle=middel;path=/";
  }
}

function readCookie(cookieName) {
  cookie_array = document.cookie.split ("; ");
  for (x=0; x < cookie_array.length; x++) {
      cookieParts_array = cookie_array[x].split("=");
      if (cookieParts_array[0] == cookieName)
        return cookieParts_array[1];
    }
  return null;
} 

function startStyle() {
  identity=document.getElementById("siteBody");

  cook=readCookie("activestyle");
  if(cook=="groot") {
    identity.className="groot";
  }
  else if(cook=="middel") {
    identity.className="middel";
  }
  else {
    identity.className="klein";
  }
}

/*MAX aantal character in TEXTAREA*/

function limitText(limitField, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} 
}


/* showhide divs. Wordt niet meer gebruikt.  
function toggleItems(hideIdArray, showId){

	for (var i=0; i< hideIdArray.length; i++){
		document.getElementById(hideIdArray[i]).style.display = 'none';
		
	}
	document.getElementById(showId).style.display = 'block';
	return false;
}

function addClass(element, value) {
	if(!element.className) {
		element.className = value;
	} else {
		newClassName = element.className;
		newClassName+= " ";
		newClassName+= value;
		element.className = newClassName;
	}
} */