function check_form() {
	var formLength = document.bedrijf.length;
	//alert( formLength );
	var i, emptyField = false;
	for( i=0; i<formLength && emptyField != true; i++ ) {
		currentElement = document.bedrijf.elements[i];
		//alert( currentElement.value );
		if( currentElement.value == '' && currentElement.alt == '1' ) {//
			alert( "- "+currentElement.name +"\nVul alstublieft alle verplichte velden in...\nU heeft nog enkele verplichte velden open staan..." );
			emptyField = true;
			currentElement.focus();
			return false;
		}
	}
	/**/if( emptyField == false ) {
		document.bedrijf.submit();
		return true;
	}
}

var active = 'A';

function fontsizedown() {
  active = getActiveStyleSheet();
  if( active==null ) {
	active = 'A';
  }
  window.status='##'+active;
  switch (active) {
    case 'A++' : 
      setActiveStyleSheet('A+');
      break;
    case 'A+' : 
      setActiveStyleSheet('A');
      break;
	case 'A' :
	  break;
    default :
      setActiveStyleSheet('A');
      break;
  }
}

function fontsizeup() {
  active = getActiveStyleSheet();
  if( active==null ) {
	active = 'A';
  }
  window.status='##'+active;
  switch (active) {
    case 'A' : 
      setActiveStyleSheet('A+');
      break;
    case 'A+' : 
      setActiveStyleSheet('A++');
      break;
    case 'A++' :
      break;
    default :
      setActiveStyleSheet('A');
      break;
  }
  //window.location.href = window.location.href;
}

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title){
		  a.disabled = false;
	  }
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  return ('A');
}

