function goConfiguratorStep(nextstep,currentstep){

currentdivelem = document.getElementById('buerostuhl_konfig_page_'+currentstep);
i = 1;
for (var i = 1; i <= 7; i++){
	currentdivelem = document.getElementById('buerostuhl_konfig_page_'+i);
	currentdivelem.style.display = "none";
}

nextdivelem = document.getElementById('buerostuhl_konfig_page_'+nextstep);
nextdivelem.style.display = "block";
bundle.reloadFinishPage();
}




function doRotation(){

	var origpath = "/media/catalog/product/configurator/chair_f";
	var sidepath = "/media/catalog/product/configurator/chair_f";
	valuefield = document.getElementById('configimage');
    if(valuefield){
    	url  = valuefield.src;
    	pos = url.lastIndexOf("/");
    	pathleft = url.substring(0,pos+7); 
    	pathright = url.substring(pos+8);
    	if(url.substring(pos+7,pos+8) == "f"){
    		position = "s";
    	}
    	else{
    		position = "f";
    	}
    	valuefield.src = pathleft + position + pathright;
    	
    }

}
