// PAPIERSORTE

function PS_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"papiersorte\" id=\"s3\" onChange="if(this.selectedIndex == 1){divein(5);AUSW(3);}if(this.selectedIndex == 2){divein(5);AUSW(3);}if(this.selectedIndex == 3){divein(5);AUSW(3);}if(this.selectedIndex == 4){divein(5);AUSW(3);SE_e(10);}if(this.selectedIndex == 5){sonst(4,\'papiersorte\');divein(5);AUSW(3);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"Bilderdruck glaenzend\">Bilderdruck gl&auml;nzend</option><option value=\"Bilderdruck matt\">Bilderdruck matt</option><option value=\"Naturpapier\">Naturpapier</option><option value=\"Colorit\">Colorit</option><option value=\"andere\">sonstiges</option></select>';
}

function PS_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"papiersorte\" id=\"s3\" onChange="if(this.selectedIndex == 1){divein(5);AUSW(3);}if(this.selectedIndex == 2){divein(5);AUSW(3);}if(this.selectedIndex == 3){divein(5);AUSW(3);}if(this.selectedIndex == 4){divein(5);CO_c(11);SE_f(10);AUSW(3);}if(this.selectedIndex == 5){divein(5);CO_d(11);SE_f(10);AUSW(3);}if(this.selectedIndex == 6){sonst(4,\'papiersorte\');divein(5);AUSW(3);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"Bilderdruck glaenzend\">Bilderdruck gl&auml;nzend</option><option value=\"Bilderdruck matt\">Bilderdruck matt</option><option value=\"Naturpapier\">Naturpapier</option><option value=\"Colorit\">Colorit</option><option value=\"Tagesleuchtfarben\">Tagesleuchtfarben</option><option value=\"andere\">sonstiges</option></select>';
}

function PS_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"papiersorte\" id=\"s3\" onChange="if(this.selectedIndex == 1){divein(5);AUSW(3);}if(this.selectedIndex == 2){sonst(4,\'papiersorte\');divein(5);AUSW(3);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"Naturpapier\">Naturpapier (Inkjet- u. Lasergeeignet</option><option value=\"andere\">sonstiges</option></select>';
}




// PAPIERGEWICHT

function PG_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"papiergewicht\" id="s5" onChange="if(this.selectedIndex == 1){divein(7);AUSW(5);}if(this.selectedIndex == 2){divein(7);AUSW(5);}if(this.selectedIndex == 3){divein(7);AUSW(5);}if(this.selectedIndex == 4){divein(7);AUSW(5);}if(this.selectedIndex == 5){divein(7);AUSW(5);}if(this.selectedIndex == 6){divein(7);AUSW(5);}if(this.selectedIndex == 7){divein(7);AUSW(5);}if(this.selectedIndex == 8){divein(7);AUSW(5);}if(this.selectedIndex == 9){sonst(6,\'papiergewicht\');divein(7);AUSW(5);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"80\">80 g/qm</option><option value=\"90\">90 g/qm</option><option value=\"115\">115 g/qm</option><option value=\"135\">135 g/qm</option><option value=\"170\">170 g/qm</option><option value=\"200\">200 g/qm</option><option value=\"250\">250 g/qm</option><option value=\"300\">300 g/qm</option><option value=\"andere\">sonstiges</option></select>';
}

function PG_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"papiergewicht\" id=\"s5\" onChange="if(this.selectedIndex == 1){divein(7);AUSW(5);}if(this.selectedIndex == 2){divein(7);AUSW(5);}if(this.selectedIndex == 3){sonst(6,\'papiergewicht\');divein(7);AUSW(5);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"80\">80 g/qm</option><option value=\"90\">90 g/qm</option><option value=\"andere\">sonstiges</option></select>';
}

function PG_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"papiergewicht\" id=\"s5\" onChange="if(this.selectedIndex == 1){divein(7);AUSW(5);}if(this.selectedIndex == 2){divein(7);AUSW(5);}if(this.selectedIndex == 3){divein(7);AUSW(5);}if(this.selectedIndex == 4){sonst(6,\'papiergewicht\');divein(7);AUSW(5);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"115\">115 g/qm</option><option value=\"135\">135 g/qm</option><option value=\"170\">170 g/qm</option><option value=\"andere\">sonstiges</option></select>';
}





// FORMAT

function FO_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"format\" id=\"s7\" onChange="if(this.selectedIndex == 1){divein(10);AUSW(7);}if(this.selectedIndex == 2){divein(10);AUSW(7);}if(this.selectedIndex == 3){divein(10);AUSW(7);}if(this.selectedIndex == 4){sonst(9,\'format\');divein(10);AUSW(7);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"DIN A6\">DIN A6</option><option value=\"DIN A5\">DIN A5</option><option value=\"DIN A4\">DIN A4</option><option value=\"andere\">sonstiges</option></select>';
}

function FO_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"format\" id=\"s7\" onChange="if(this.selectedIndex == 1){divein(10);AUSW(7);}if(this.selectedIndex == 2){divein(10);AUSW(7);}if(this.selectedIndex == 3){divein(10);AUSW(7);}if(this.selectedIndex == 4){divein(10);AUSW(7);}if(this.selectedIndex == 5){sonst(9,\'format\');divein(10);AUSW(7);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"DIN A6\">DIN A6</option><option value=\"DIN A5\">DIN A5</option><option value=\"DIN A4\">DIN A4</option><option value=\"DIN A3\">DIN A3</option><option value=\"andere\">sonstiges</option></select>';
}

function FO_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"format\" id=\"s7\" onChange="if(this.selectedIndex == 1){divein(10);AUSW(7);}if(this.selectedIndex == 2){divein(10);AUSW(7);}if(this.selectedIndex == 3){sonst(9,\'format\');divein(10);AUSW(7);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"DIN A3\">DIN A3</option><option value=\"DIN A2\">DIN A2</option><option value=\"andere\">sonstiges</option></select>';
}

function FO_d(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"format\" id=\"s7\" onChange="if(this.selectedIndex == 1){divein(10);AUSW(7);}if(this.selectedIndex == 2){sonst(9,\'format\');divein(10);AUSW(7);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"DIN A4\">DIN A4</option><option value=\"andere\">sonstiges</option></select>';
}

function FO_e(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"format\" id=\"s7\" onChange="if(this.selectedIndex == 1){divein(10);AUSW(7);}if(this.selectedIndex == 2){divein(10);AUSW(7);}if(this.selectedIndex == 3){divein(10);AUSW(7);}if(this.selectedIndex == 4){divein(10);AUSW(7);}if(this.selectedIndex == 5){divein(10);AUSW(7);}if(this.selectedIndex == 6){sonst(9,\'format\');divein(10);AUSW(7);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"DIN A6\">DIN A6</option><option value=\"DIN A5\">DIN A5</option><option value=\"DIN A4\">DIN A4</option><option value=\"DIN A3\">DIN A3</option><option value=\"DIN A2\">DIN A2</option><option value=\"andere\">sonstiges</option></select>';
}





// HINWEIS

function HIN_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = 'Offenes Format';
}

function HIN_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = 'Geschlossenes Endformat';
}

function HIN_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = 'Format';
}





// Seiten

function SE_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"seiten\" id=\"s10\" onChange="if(this.selectedIndex == 1){divein(11);CO_b(11);AUSW(10);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1-seitig\">1-seitig</option></select>';
}

function SE_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"seiten\" id=\"s10\" onChange="if(this.selectedIndex == 1){divein(11);CO_a(11);AUSW(10);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"2-seitig\">2-seitig</option></select>';
}

function SE_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<input type=\"text\" name=\"seiten\" size=\"10\"><span class=\"klick\" onClick=\"divein(11);\">&raquo; weiter</span>';
}

function SE_d(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"seiten\" id=\"s10\" onChange="if(this.selectedIndex == 1){divein(11);CO_b(11);AUSW(10);}if(this.selectedIndex == 2){divein(11);CO_a(11);AUSW(10);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1-seitig\">1-seitig</option><option value=\"2-seitig\">2-seitig</option></select>';
}

function SE_e(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"seiten\" id=\"s10\" onChange="if(this.selectedIndex == 1){divein(11);CO_d(11);AUSW(10);}if(this.selectedIndex == 2){divein(11);CO_c(11);AUSW(10);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1-seitig\">1-seitig</option><option value=\"2-seitig\">2-seitig</option></select>';
}

function SE_f(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"seiten\" id=\"s10\" onChange="if(this.selectedIndex == 1){divein(11);CO_d(11);AUSW(10);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1-seitig\">1-seitig</option></select>';
}






// FARBEN

function CO_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"farben\" id=\"s11\" onChange="if(this.selectedIndex == 1){divein(13);AUSW(11);}if(this.selectedIndex == 2){divein(13);AUSW(11);}if(this.selectedIndex == 3){divein(13);AUSW(11);}if(this.selectedIndex == 4){divein(13);AUSW(11);}if(this.selectedIndex == 5){divein(13);AUSW(11);}if(this.selectedIndex == 6){sonst(12,\'farben\');divein(13);AUSW(11);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"4/4c\">VS: 4-farbig / RS: 4-farbig (Euroskala)</option><option value=\"4/1c\">VS: 4-farbig / RS: 1-farbig (Euroskala)</option><option value=\"2/2c\">VS: 2-farbig / RS: 2-farbig</option><option value=\"2/1c\">VS: 2-farbig / RS: 1-farbig</option><option value=\"1/1c\">VS: 1-farbig / RS: 1-farbig</option><option value=\"andere\">sonstige</option></select>';
}

function CO_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"farben\" id=\"s11\" onChange="if(this.selectedIndex == 1){divein(13);AUSW(11);}if(this.selectedIndex == 2){divein(13);AUSW(11);}if(this.selectedIndex == 3){divein(13);AUSW(11);}if(this.selectedIndex == 4){sonst(12,\'farben\');divein(13);AUSW(11);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"4c\">4-farbig</option><option value=\"2c\">2-farbig</option><option value=\"1c\">1-farbig</option><option value=\"andere\">sonstige</option></select>';
}

function CO_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"farben\" id=\"s11\" onChange="if(this.selectedIndex == 1){divein(13);AUSW(11);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1/1\">VS: 1-farbig / RS: 1-farbig</option></select>';
}

function CO_d(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"farben\" id=\"s11\" onChange="if(this.selectedIndex == 1){divein(13);AUSW(11);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1\">1-farbig</option></select>';
}






// Verarbeitung

function VE_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"verarbeitung\" id=\"s13\" onChange="if(this.selectedIndex == 1){divein(15);AUSW(13);}if(this.selectedIndex == 2){divein(15);AUSW(13);}if(this.selectedIndex == 3){divein(15);AUSW(13);}if(this.selectedIndex == 4){sonst(14,\'verarbeitung\');divein(15);AUSW(13);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"1-Bruch\">1-Bruch-Falz</option><option value=\"2-Bruch-Wickelfalz\">2-Bruch-Wickelfalz</option><option value=\"2-Bruch-Leporello\">2-Bruch-Leporello-Falz (Zickzack)</option><option value=\"andere\">sonstige</option></select>';
}

function VE_b(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"verarbeitung\" id=\"s13\" onChange="if(this.selectedIndex == 1){divein(15);AUSW(13);}if(this.selectedIndex == 2){divein(15);AUSW(13);}if(this.selectedIndex == 3){divein(15);AUSW(13);}if(this.selectedIndex == 4){sonst(14,\'verarbeitung\');divein(15);AUSW(13);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"Rueckendrahtheftung\">R&uuml;ckendrahtheftung</option><option value=\"Wire-O\">Wire-O-Bindung</option><option value=\"Klebebindung\">Klebebindung</option><option value=\"andere\">sonstige</option></select>';
}

function VE_c(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"verarbeitung\" id=\"s13\" onChange="if(this.selectedIndex == 1){divein(15);AUSW(13);}if(this.selectedIndex == 2){divein(15);AUSW(13);}if(this.selectedIndex == 3){divein(15);AUSW(13);}if(this.selectedIndex == 4){sonst(14,\'verarbeitung\');divein(15);AUSW(13);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"keine\">Keine</option><option value=\"Lochen 2\">Lochen (2 mal)</option><option value=\"Lochen 4\">Lochen (4 mal)</option><option value=\"andere\">sonstige</option></select>';
}

function VE_d(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"verarbeitung\" id=\"s13\" onChange="if(this.selectedIndex == 1){divein(15);AUSW(13);}if(this.selectedIndex == 2){sonst(14,\'verarbeitung\');divein(15);AUSW(13);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"nur schneiden\">Nur schneiden</option><option value=\"andere\">sonstige</option></select>';
}

function VE_e(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"verarbeitung\" id=\"s13\" onChange="if(this.selectedIndex == 1){divein(15);AUSW(13);}if(this.selectedIndex == 2){divein(15);AUSW(13);}if(this.selectedIndex == 3){divein(15);AUSW(13);}if(this.selectedIndex == 4){divein(15);AUSW(13);}if(this.selectedIndex == 5){divein(15);AUSW(13);}if(this.selectedIndex == 6){divein(15);AUSW(13);}if(this.selectedIndex == 7){divein(15);AUSW(13);}if(this.selectedIndex == 8){divein(15);AUSW(13);}if(this.selectedIndex == 9){divein(15);AUSW(13);}if(this.selectedIndex == 10){divein(15);AUSW(13);}if(this.selectedIndex == 11){sonst(14,\'verarbeitung\');divein(15);AUSW(13);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"keine\">Keine</option><option value=\"1-Bruch\">1-Bruch-Falz</option><option value=\"2-Bruch-Wickelfalz\">2-Bruch-Wickelfalz</option><option value=\"2-Bruch-Leporello\">2-Bruch-Leporello-Falz (Zickzack)</option><option value=\"Rueckendrahtheftung\">R&uuml;ckendrahtheftung</option><option value=\"Wire-O\">Wire-O-Bindung</option><option value=\"Klebebindung\">Klebebindung</option><option value=\"Lochen 2\">Lochen (2 mal)</option><option value=\"Lochen 4\">Lochen (4 mal)</option><option value=\"nur schneiden\">Nur schneiden</option><option value=\"andere\">sonstige</option></select>';
}






// Veredelung

function ED_a(x){
	y = document.getElementById('div'+x);
	y.innerHTML = '<select name=\"veredelung\" id=\"s15\" onChange="if(this.selectedIndex == 1){divein(17);AUSW(15);}if(this.selectedIndex == 2){divein(17);AUSW(15);}if(this.selectedIndex == 3){divein(17);AUSW(15);}if(this.selectedIndex == 4){divein(17);AUSW(15);}if(this.selectedIndex == 5){divein(17);AUSW(15);}if(this.selectedIndex == 6){sonst(16,\'veredelung\');divein(17);AUSW(15);}"><option>------------ Bitte w&auml;hlen ------------</option><option value=\"Keine\">Keine</option><option value=\"Stanzen\">Stanzen</option><option value=\"Praegen\">Pr&auml;gen</option><option value=\"Dispersionslack matt\">Dispersionslack matt</option><option value=\"Dispersionslack glanz\">Dispersionslack glanz</option><option value=\"andere\">sonstige</option></select>';
}















function AUSW(a){
y = document.getElementById('s'+a);
dropdownIndex = y.selectedIndex;
dropdownValue = y[dropdownIndex].value;
document.getElementById('div'+a).style.display = 'none';
document.getElementById('div'+a+'b').innerHTML = '<b>'+dropdownValue+'</b>'+' [<span class=\"klick\" onClick=\"AUSW2('+a+');\">&auml;ndern</span>]';
document.getElementById('div'+a+'b').style.display = 'block';
}

function AUSW2(a){
document.getElementById('s'+a).selectedIndex = 0;
y = document.getElementById('div'+a);
y.style.display = 'block';

z = document.getElementById('div'+a+'b');
z.innerHTML = '';

aplus = a + 1;
for(i=aplus; i < 20; i++){
	try{
		document.getElementById('div'+i+'a').style.display = 'none';
	}
	catch(err){}
}

}





function divein(a){
	document.getElementById('div'+a+'a').style.display = 'block';
	try{document.getElementById('div'+a+'b').style.display = 'none';}catch(err){}
	try{document.getElementById('div'+a).style.display = 'block';}catch(err){}
	try{document.getElementById('s'+a).selectedIndex = 0;}catch(err){}
}

function sonst(a,b){
document.getElementById('div'+a).innerHTML = '<input type=\"text\" name=\"'+b+'_sonst\" size=\"25\">';
document.getElementById('div'+a+'a').style.display = 'block';
}


function senden(){
document.anfrageform.submit();
}



