function kleur2_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_0");
}
function kleur2_1() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_1");
}
function kleur2_2() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_2");
}
function kleur2_3() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_3");
}
function kleur2_4() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_4");
}
function kleur2_5() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_5");
}
function kleur2_6() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=2kleur_6");
}

function kleur1_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_0");
}
function kleur1_1() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_1");
}
function kleur1_2() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_2");
}
function kleur1_3() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_3");
}
function kleur1_4() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_4");
}
function kleur1_5() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_5");
}
function kleur1_6() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=1kleur_6");
}

function accessoires_0() {
  $('#mainContent').load("/dapperstoel.php?destroystoel=Y");
}

function kleur3_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=special_0");
}
function kleur3_1() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?stoel=special_1");
}

function babyset_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?babyset=babyset");
}

function kussenset_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?kussenset=kussenset");
}

function tuigje_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?tuigje=tuigje");
}

function speelblad_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?speelblad=speelblad");
}

function opstap_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?opstap=opstap");
}

function personaliseer_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?personaliseer=personaliseer");
}

function personaliseer_5() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?ikbendapper=ikbenDapper");
  $('#bestel').load("/inc_letters.php?standaardnaam=ikbenDapper");
}
function personaliseer_6() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/dapperstoel.php?geentekst=Geengegraveerdetekst");
}

function personaliseer_1() {
  $('#mainContent').load("/dapperstoel.php?naam=$attributes[1]");
}

function babyset0_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?babyset=babyset");
}

function babyset0_01() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?babyseton=babyseton");
}

function babyset1_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=naturel");
}
function babyset1_1() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=roze");
}
function babyset1_2() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=groen");
}
function babyset1_3() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=rood");
}
function babyset1_4() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=blauw");
}
function babyset1_5() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=donkernaturel");
}
function babyset1_6() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=wit");
}
function babyset1_7() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?set=zwart");
}

function kussenset1_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?kussenset=kussenset");
}

function tuigje1_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?tuigje=tuigje");
}

function personaliseer1_0() {
$("mainContent").empty().html('<img src="../img/loader.gif" />');
  $('#mainContent').load("/accessoires.php?personaliseer=personaliseer");
}

function personaliseer1_1() {
  $('#mainContent').load("/accessoires.php?naam=$attributes[1]");
}


function personaliseer2_0() {
 $('#mainContent').load("/accessoires.php?regel=naturel");
}
function personaliseer2_1() {
 $('#mainContent').load("/accessoires.php?regel=roze");
}
function personaliseer2_2() {
 $('#mainContent').load("/accessoires.php?regel=groen");
}
function personaliseer2_3() {
 $('#mainContent').load("/accessoires.php?regel=rood");
}
function personaliseer2_4() {
 $('#mainContent').load("/accessoires.php?regel=blauw");
}
function personaliseer2_5() {
 $('#mainContent').load("/accessoires.php?regel=donkernaturel");
}
function personaliseer2_6() {
 $('#mainContent').load("/accessoires.php?regel=wit");
}
function personaliseer2_7() {
 $('#mainContent').load("/accessoires.php?regel=zwart");
}
function makeObject(){
var x;
if (window.ActiveXObject) {
x = new ActiveXObject("Microsoft.XMLHTTP");
}else if (window.XMLHttpRequest) {
x = new XMLHttpRequest();
}
return x;
}
var request = makeObject();

var the_content;
function product_1(the_content){
request.open('get', the_content);
request.onreadystatechange = parseCheck_content;
request.send('');
}
function parseCheck_content(){
if(request.readyState == 4){
var answer = request.responseText;
var products = document.getElementById('mainContent_products');
	
	if(products != null){
		products.innerHTML = answer;
	}
	
	// document.getElementById('mainContent_products').innerHTML = answer;
}
} 

function createRequestObject() {
     var ro;     
     ro = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
 
     return ro;
}
 
var http = createRequestObject();
 
function sndReq(action) {
     http.open('get', 'rpc.php?action='+action);
     http.onreadystatechange = handleResponse;
     http.send(null);
}
 
function handleResponse() {
     if(http.readyState == 4){
          var response = http.responseText;
          var update = new Array();
 
          if(response.indexOf('|') != -1) {
               update = response.split('|');
               document.getElementById(update[0]).innerHTML = update[1];
          }
     }
}
