document.write('<BODY bgcolor=\"#FFCC2B\"><DIV class=\"background\" width="100%" height="100%">');

function SymError()
{
  return true;
}

window.onerror = SymError;

var aankleur_menu  = "#E7E7E7";      
var uitkleur_menu  = "#FFFFFF";    

function aan(m) { 
 if(document.all) {
  m.filters[0].Apply();
  m.style.backgroundColor=aankleur_menu;
  m.filters[0].Play();
  m.style.color=aankleur_text; 
 }
}

function uit(m) {
 if(document.all) {
  m.filters[0].Apply();
  m.style.backgroundColor=uitkleur_menu;
  m.filters[0].Play();
  m.style.color=uitkleur_text;
 }
}

function openWin(url, w, h) {
 var win = window.open(url,'questdesign','width='+w+',height='+h+',resizable=no,status=no,toolbar=no,menubar=no, scrollbars=auto');

}

function checkForm(form) {
 var aantal = form.elements.length;
 var string = 'U heeft de volgende verplichte veld(en) niet ingevuld: \n';
 string += '_______________________________________________________\n';
 var returnbool = true;
 for (var i=0;i<aantal;i++) {
  if (!form.elements[i].options) { 
   if (form.elements[i].value.length == 0 && form.elements[i].title.length > 0) {
    string += form.elements[i].title+'\n';
    returnbool = false;
   }
  }
  else {
   if (form.elements[i].title.length > 0) {
    var tempe = form.elements[i].options.selectedIndex;
    if (form.elements[i].options[tempe].value == "") {
     string += form.elements[i].title+'\n';
     returnbool = false;
    }
   }
  }
 }
 if (returnbool) {
  return true;
 }
 else {
  string += '______________________________________________________\n';
  string += 'Vul deze velden in om de actie te voltooien';
  alert(string);
  return false;
 }
}


function showPf(which) {
 for (var i=0;i<100;i++) {
  try {
	document.getElementById('pf'+i).style.display = 'none';
  }
  catch(e) {
  }
 }
 document.getElementById('pf'+which).style.display = 'block';
}

function clearPf() {
 var pf = document.getElementsByName("pf");
 for (var i=0;i<10;i++) {
  alert(i);
  pf.item(i).style.display = 'none';
 }
}

function portUp() {
 for (var i=0;i<100;i++) {
  try {
	document.getElementById('pfimage'+i).style.display = 'none';
  }
  catch(e) {
  }
 }
 active1++;
 active1 = (active1 < totaal)?active1:0;
 active2++;
 active2 = (active2 < totaal)?active2:0;
 document.getElementById('pfimage'+active1).style.display = 'block';
 document.getElementById('pfimage'+active2).style.display = 'block';
}
 

function portDown() {
 for (var i=0;i<100;i++) {
  try {
	document.getElementById('pfimage'+i).style.display = 'none';
  }
  catch(e) {
  }
 }
 active1--;
 active1 = (active1 <= 0)?totaal-1:active1;
 active2--;
 active2 = (active2 <= 0)?totaal-1:active2;
 document.getElementById('pfimage'+active1).style.display = 'block';
 document.getElementById('pfimage'+active2).style.display = 'block';
}
 


