<stat>INSERT INTO p26603011_language SET id = '4381',id_language = '60',id_question = '1753',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4382',id_language = '60',id_question = '1758',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte machen Sie in JEDER Zeile eine Markierung!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4383',id_language = '60',id_question = '1759',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte machen Sie in JEDER Zeile eine Markierung!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4384',id_language = '60',id_question = '1760',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4385',id_language = '60',id_question = '1761',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4386',id_language = '60',id_question = '1762',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4387',id_language = '60',id_question = '1763',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4388',id_language = '60',id_question = '1764',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte Anzahl eintragen!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4389',id_language = '60',id_question = '1765',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte Anzahl eintragen!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4390',id_language = '60',id_question = '1766',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4391',id_language = '60',id_question = '1767',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4392',id_language = '60',id_question = '1769',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4393',id_language = '60',id_question = '1768',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte Anzahl eintragen!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4394',id_language = '60',id_question = '1770',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4395',id_language = '60',id_question = '1771',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4396',id_language = '60',id_question = '1772',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4397',id_language = '60',id_question = '1773',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4398',id_language = '60',id_question = '1774',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4399',id_language = '60',id_question = '1775',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte machen Sie in JEDER Zeile eine Markierung!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4400',id_language = '60',id_question = '1776',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Bitte machen Sie in JEDER Zeile eine Markierung!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4638',id_language = '60',id_question = '1858',id_text_type = '2',lngText = 'Waren während des Interviews weitere Personen anwesend?';
<stat>INSERT INTO p26603011_language SET id = '4639',id_language = '60',id_question = '1858',id_text_type = '3',lngText = '1 Ja, immer oder die meiste Zeit /2 Ja, etwa die Hälfte der Zeit/3 Ja, weniger als die Hälfte der Zeit/4 Nein (außer Kleinkinder)';
<stat>INSERT INTO p26603011_language SET id = '4640',id_language = '60',id_question = '1859',id_text_type = '2',lngText = 'Welche Personen waren anwesend?';
<stat>INSERT INTO p26603011_language SET id = '4641',id_language = '60',id_question = '1859',id_text_type = '3',lngText = '1 (Ehe)Partner ⁄ in der Zielperson /2 Vater oder Mutter der Zielperson/3 Kind ⁄ er der Zielperson/4 Andere Haushaltsmitglieder/5 Andere Person, die nicht zum Haushalt gehört/6 Weiß ich nicht';
<stat>INSERT INTO p26603011_language SET id = '4642',id_language = '60',id_question = '1859',id_text_type = '8',lngText = '0,0,0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4643',id_language = '60',id_question = '1860',id_text_type = '2',lngText = 'Wurde die Gesprächsatmosphäre durch die Anwesenden positiv oder negativ beeinflusst?';
<stat>INSERT INTO p26603011_language SET id = '4644',id_language = '60',id_question = '1860',id_text_type = '3',lngText = '1 Nein, weder noch/2 Ja (positiv oder negativ)';
<stat>INSERT INTO p26603011_language SET id = '4645',id_language = '60',id_question = '1861',id_text_type = '2',lngText = 'Wie wurde die Gesprächsatmosphäre durch die Anwesenden beeinflusst?';
<stat>INSERT INTO p26603011_language SET id = '4646',id_language = '60',id_question = '1861',id_text_type = '3',lngText = '1';
<stat>INSERT INTO p26603011_language SET id = '4647',id_language = '60',id_question = '1861',id_text_type = '4',lngText = '1 Sehr positiv<br>0/2 1/3 2/4 3/5 4/6 teils ⁄ teils<br>5/7 6/8 7/9 8/10 9/11 sehr negativ<br>10';
<stat>INSERT INTO p26603011_language SET id = '4648',id_language = '60',id_question = '1750',id_text_type = '4',lngText = '1 Überhaupt kein Vertrauen<br>0/2 1/3 2/4 3/5 4/6 5/7 6/8 7/9 8/10 9/11 Vollkommenes Vertrauen<br>10/99 Kann ich nicht sagen';
<stat>INSERT INTO p26603011_language SET id = '4649',id_language = '60',id_question = '1821',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: KARTE</span>';
<stat>INSERT INTO p26603011_language SET id = '4650',id_language = '60',id_question = '1819',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: KARTE</span>';
<stat>INSERT INTO p26603011_language SET id = '4651',id_language = '60',id_question = '1815',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Falls Rückfrage: Das bezieht sich auf die leiblichen Eltern</span>';
<stat>INSERT INTO p26603011_language SET id = '4653',id_language = '60',id_question = '1862',id_text_type = '3',lngText = '1 Ja, häufig /2 Ja, manchmal (zumindest einmal)/3 Nein';
<stat>INSERT INTO p26603011_language SET id = '4654',id_language = '60',id_question = '1863',id_text_type = '2',lngText = 'Ihrem Eindruck nach: Wie hat der Zielperson das Interview gefallen?';
<stat>INSERT INTO p26603011_language SET id = '4655',id_language = '60',id_question = '1863',id_text_type = '3',lngText = '1 sehr gut /2 eher gut/3 mittelmäßig/4 eher schlecht/5 sehr schlecht/6 weiß ich nicht';
<stat>INSERT INTO p26603011_language SET id = '4656',id_language = '60',id_question = '1864',id_text_type = '2',lngText = 'Wie leicht fiel es Ihnen, die Zielperson dazu zu bewegen, am Interview teilzunehmen?';
<stat>INSERT INTO p26603011_language SET id = '4657',id_language = '60',id_question = '1864',id_text_type = '3',lngText = '1 Sehr leicht /2 Eher leicht/3 Weniger leicht/4 Überhaupt nicht leicht';
<stat>INSERT INTO p26603011_language SET id = '4658',id_language = '60',id_question = '1865',id_text_type = '2',lngText = 'Wurden von der Zielperson wegen der aktuellen Corona-Situation anfangs Bedenken geäußert?';
<stat>INSERT INTO p26603011_language SET id = '4659',id_language = '60',id_question = '1865',id_text_type = '3',lngText = '1 Ja, große Bedenken /2 Ja, leichte Bedenken/3 Nein, keine Bedenken';
<stat>INSERT INTO p26603011_language SET id = '4660',id_language = '60',id_question = '1866',id_text_type = '2',lngText = 'Hat die Zielperson während des Interviews eine MNS-Schutzmaske getragen?';
<stat>INSERT INTO p26603011_language SET id = '4661',id_language = '60',id_question = '1866',id_text_type = '3',lngText = '1 immer oder die meiste Zeit /2 etwa die Hälfte der Zeit/3 weniger als die Hälfte der Zeit/4 gar nicht';
<stat>INSERT INTO p26603011_language SET id = '4664',id_language = '60',id_question = '1868',id_text_type = '2',lngText = 'Beeinflusste die aktuelle Corona-Situation aus Ihrer Sicht die Interviewführung?';
<stat>INSERT INTO p26603011_language SET id = '4665',id_language = '60',id_question = '1868',id_text_type = '3',lngText = '1 ja, sehr/2 eher schon/3 eher nicht/4 gar nicht';
<stat>INSERT INTO p26603011_language SET id = '4666',id_language = '60',id_question = '1867',id_text_type = '2',lngText = 'Wurde die Abstandsregel (zumindest 1m) von der Zielperson während des Interviews eingehalten?';
<stat>INSERT INTO p26603011_language SET id = '4667',id_language = '60',id_question = '1867',id_text_type = '3',lngText = '1 immer oder die meiste Zeit /2 etwa die Hälfte der Zeit/3 weniger als die Hälfte der Zeit/4 gar nicht';
<stat>INSERT INTO p26603011_language SET id = '4668',id_language = '60',id_question = '1869',id_text_type = '2',lngText = 'Könnten Sie die Einflüsse auf das Interview kurz näher beschreiben?';
<stat>INSERT INTO p26603011_language SET id = '4669',id_language = '60',id_question = '1870',id_text_type = '2',lngText = 'Wie ist im Verlauf des Interviews die Bereitschaft der Zielperson gewesen, die Fragen zu beantworten? (Jede Zeile beantworten)';
<stat>INSERT INTO p26603011_language SET id = '4670',id_language = '60',id_question = '1870',id_text_type = '3',lngText = '1 Zu Beginn des Interviews (Politik, Ungleichheit)/2 In der Mitte des Interviews (Umwelt)/3 Gegen Ende (Statistik, Soziodemographie)';
<stat>INSERT INTO p26603011_language SET id = '4671',id_language = '60',id_question = '1870',id_text_type = '4',lngText = '1 hoch bzw. gut/2 mittelmäßig/3 gering bzw. schlecht';
<stat>INSERT INTO p26603011_language SET id = '4672',id_language = '60',id_question = '1871',id_text_type = '2',lngText = 'Wie würden Sie die Angaben der Zielperson beim Interview einstufen?';
<stat>INSERT INTO p26603011_language SET id = '4673',id_language = '60',id_question = '1871',id_text_type = '3',lngText = '1 Insgesamt sehr zuverlässig /2 Insgesamt zuverlässig /3 Insgesamt weniger zuverlässig/4 Insgesamt nicht zuverlässig';
<stat>INSERT INTO p26603011_language SET id = '4674',id_language = '60',id_question = '1876',id_text_type = '2',lngText = 'Wird gesetzt, wenn IV E18 schon einmal beantwortet hat';
<stat>INSERT INTO p26603011_language SET id = '4675',id_language = '60',id_question = '1876',id_text_type = '3',lngText = '1';
<stat>INSERT INTO p26603011_language SET id = '4676',id_language = '60',id_question = '1872',id_text_type = '2',lngText = 'Wie häufig hat die Zielperson bei den Fragen um Erklärung oder Hilfe gebeten?';
<stat>INSERT INTO p26603011_language SET id = '4677',id_language = '60',id_question = '1872',id_text_type = '3',lngText = '1 Nie/2 Fast nie (ein- bis zwei Mal)/3 Hin und wieder/4 Häufig/5 Sehr häufig bzw. fast immer';
<stat>INSERT INTO p26603011_language SET id = '4678',id_language = '60',id_question = '1873',id_text_type = '2',lngText = 'Haben Sie das Interview bei der Zielperson zu Hause geführt?';
<stat>INSERT INTO p26603011_language SET id = '4679',id_language = '60',id_question = '1873',id_text_type = '3',lngText = '1 Ja/2 Nein, an anderem Ort (Notieren):';
<stat>INSERT INTO p26603011_language SET id = '4680',id_language = '60',id_question = '1873',id_text_type = '8',lngText = '0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4681',id_language = '60',id_question = '1874',id_text_type = '2',lngText = 'Haben Sie noch weitere Anmerkungen zum Interviewverlauf, zu einer bestimmten Frage oder zum Verhalten der Zielperson? (Notieren)';
<stat>INSERT INTO p26603011_language SET id = '4682',id_language = '60',id_question = '1796',id_text_type = '3',lngText = '1 /2 Ausfüllen (Schlagworte):<br>/7 [keine Angabe]​/8 Suchtyp (1 o. 2):<br>';
<stat>INSERT INTO p26603011_language SET id = '4683',id_language = '60',id_question = '1796',id_text_type = '8',lngText = '0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4684',id_language = '60',id_question = '1796',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: KARTE ISCO-08</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4685',id_language = '60',id_question = '1802',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: KARTE ISCO-08</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4686',id_language = '60',id_question = '1804',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: KARTE ISCO-08</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4687',id_language = '60',id_question = '1802',id_text_type = '3',lngText = '1 /2 Ausfüllen (Schlagworte):<br>/7 [keine Angabe]​/8 Suchtyp (1 o. 2):<br>';
<stat>INSERT INTO p26603011_language SET id = '4688',id_language = '60',id_question = '1804',id_text_type = '3',lngText = '1 /2 Ausfüllen (Schlagworte):<br>/7 [keine Angabe]​/8 Suchtyp (1 o. 2):<br>';
<stat>INSERT INTO p26603011_language SET id = '4690',id_language = '60',id_question = '1803',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: NUR, WENN NICHT ZUORDENBAR: GENAU BESCHREIBEN: </span></i>';
<stat>INSERT INTO p26603011_language SET id = '4691',id_language = '60',id_question = '1805',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: NUR, WENN NICHT ZUORDENBAR: GENAU BESCHREIBEN: </span></i>';
<stat>INSERT INTO p26603011_language SET id = '4693',id_language = '60',id_question = '1804',id_text_type = '8',lngText = '0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4694',id_language = '60',id_question = '1785',id_text_type = '3',lngText = '1 /2 Ausfüllen (Schlagworte):<br>/7 [keine Angabe]​/8 Suchtyp (1 o. 2):<br>';
<stat>INSERT INTO p26603011_language SET id = '4695',id_language = '60',id_question = '1785',id_text_type = '8',lngText = '0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4696',id_language = '60',id_question = '1875',id_text_type = '2',lngText = 'Wie groß ist Ihr persönliches Interesse an den folgenden Themen?';
<stat>INSERT INTO p26603011_language SET id = '4697',id_language = '60',id_question = '1875',id_text_type = '3',lngText = '1 Politik/2 Umwelt/3 Ungleichheit';
<stat>INSERT INTO p26603011_language SET id = '4698',id_language = '60',id_question = '1875',id_text_type = '4',lngText = '1 sehr groß/2 eher groß/3 mittelmäßig/4 eher gering/5 sehr gering bzw. kein Interesse/6 kann ich nicht sagen';
<stat>INSERT INTO p26603011_language SET id = '4702',id_language = '60',id_question = '1801',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Nur EINE Markierung möglich!</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4703',id_language = '60',id_question = '69',id_text_type = '8',lngText = '0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4704',id_language = '60',id_question = '1837',id_text_type = '8',lngText = '0,0,0,0,0,0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4705',id_language = '60',id_question = '1840',id_text_type = '8',lngText = '0,0,0,0,0,0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4709',id_language = '60',id_question = '1893',id_text_type = '3',lngText = '1';
<stat>INSERT INTO p26603011_language SET id = '4710',id_language = '60',id_question = '1894',id_text_type = '2',lngText = '<style> ul { list-style-type: none; margin: 0; padding: 0; } </style>


$image[IchWarDaFormular\\covid_sticker.PNG;width:2000px]
<br><br>
<p style=\"font-family:calibri;color:rgb(0, 38, 165);font-size:30px\">
Bitte kontrollieren Sie Ihre eingeblendeten Kontaktdaten und bestätigen Sie die angeführten Angaben mit Ihrer Unterschrift.</p>
<p style=\"font-family:calibri;color:rgb(0, 38, 165);font-size:24px\"><br>
Ihre Daten - Angaben zur befragten Person</p><p style=\"font-family:calibri;font-size:18px\">HINWEIS: Wird ausschließlich für das für Contact Tracing verwendet. 
</p><p></p><br><table style=\"margin-right:auto;margin-left:0px\">
<tbody><tr><td>Name (Vor- Zuname)</td><td><input size=\"65\" type=\"text\" name=\"resp_name\" id=\"resp_name\"></td></tr>
<tr><td>Adresse</td><td><input size=\"65\" type=\"text\" name=\"resp_adresse\" id=\"resp_adresse\"><br></td></tr>
<tr><td>Telefonnummer</td><td><input size=\"65\" type=\"text\" name=\"resp_telnr\" id=\"resp_telnr\"><br></td></tr>
</tbody></table>
<br>
<p style=\"font-family:calibri;color:rgb(0, 38, 165);font-size:24px\">
Allgemeine Informationen</p><br>
<table style=\"font-family:calibri;font-size:18px\">
<tr><td style=\"vertical-align:top\">&#9745;</td><td>Ja, ich habe das IFES-Schreiben \"Vielen herzlichen Dank für Ihre Unterstützung\" mit den Kontaktdaten des IFES (Adresse, Telefonnummer und E-Mail-Adresse) erhalten.</td></tr>
<tr><td style=\"vertical-align:top\">&#9745;</td><td>Ja, ich bestätige hiermit, dass während der Befragung durch IFES alle gesetzlichen Vorgaben im Rahmen der COVID-19-Sicherheitsmaßnahmen eingehalten wurden.</td></tr>
<tr><td style=\"vertical-align:top\">&#9745;</td><td>Ja, ich habe den Namen und die Interviewer-Nummer der IFES Feld Interviewerin/des IFES Feld Interviewers erhalten.</td></tr>
</table>
<table width=\"100%\">
<tbody><tr><td><div id=\"wrapper1\"><canvas style=\"border: 1px inset grey;\" name=\"canvas1\" id=\"canvas1\" width=\"500\" height=\"160\"></canvas></div></td> <td><br><br><br><br><br><br><br><div vertical-align=\"middle\"><input id=\"datum1\" name=\"datum1\" type=\"text\" input=\"\"></div></td></tr>
<tr><td><p style=\"font-family:calibri;font-size:18px\">Unterschrift der befragten Person </p></td><td><p style=\"font-family:calibri;font-size:18px\">Datum</p></td>
</tr></tbody></table><br>

 <button id=\"clear1\" type=\"button\">Unterschrift löschen</button>
 <button id=\"signpopup\" type=\"button\">Unterschriftfeld öffnen</button>
<br><br>
  
 <input id=\"structureid\" value=\"$structureid_1 \" type=\"hidden\"><br>
 <div id=\'wrapper2\'><canvas style=\"border: 1px inset grey; display:none\" name=\"canvas2\" id=\"canvas2\" width=\"500\" height=\"160\"></canvas></div>';
<stat>INSERT INTO p26603011_language SET id = '4711',id_language = '60',id_question = '1895',id_text_type = '3',lngText = '1 Projekname/2 structure_id/3 NICHT VERWENDET/4 intnr';
<stat>INSERT INTO p26603011_language SET id = '4712',id_language = '60',id_question = '1896',id_text_type = '3',lngText = '1 Vorname/2 Zuname/3 Adresse/4 Telnr/5 Datum';
<stat>INSERT INTO p26603011_language SET id = '4713',id_language = '60',id_question = '1897',id_text_type = '3',lngText = '1 IV_Nr/2 Vorname/3 Zuname';
<stat>INSERT INTO p26603011_language SET id = '4714',id_language = '60',id_question = '1899',id_text_type = '2',lngText = 'Frage bleibt hidden';
<stat>INSERT INTO p26603011_language SET id = '4715',id_language = '60',id_question = '1899',id_text_type = '3',lngText = '1 Unterschrift ok/2 Unterschrift nicht vorhanden';
<stat>INSERT INTO p26603011_language SET id = '4716',id_language = '60',id_question = '1900',id_text_type = '3',lngText = '1 Das Formular wurde korrekt ausgefüllt und unterschrieben/2 Respondent  ⁄  Respondentin hat die Unterschrift verweigert/3 Das Ausfüllen des Formulars war aus technischen Gründen nicht möglich';
<stat>INSERT INTO p26603011_language SET id = '4718',id_language = '60',id_question = '326',id_text_type = '2',lngText = 'Geschlecht';
<stat>INSERT INTO p26603011_language SET id = '4721',id_language = '60',id_question = '1903',id_text_type = '2',lngText = 'Besitzen Sie oder besaßen Sie früher einmal Bitcoins oder andere Kryptowährungen?';
<stat>INSERT INTO p26603011_language SET id = '4722',id_language = '60',id_question = '1903',id_text_type = '3',lngText = '1 Ich besitze derzeit Bitcoins/2 Ich besitze eine andere Kryptowährung/3 Nein, aber ich habe früher einmal Bitcoins oder eine andere Kryptowährung gehalten/4 Nein, weder noch';
<stat>INSERT INTO p26603011_language SET id = '4723',id_language = '60',id_question = '1903',id_text_type = '8',lngText = '0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4724',id_language = '60',id_question = '1904',id_text_type = '2',lngText = 'Wären Sie bereit, in den nächsten Wochen einmal an einer Online-Umfrage zu diesem Thema  teilzunehmen? Sie bekommen dafür Gutscheine im Wert von 20 Euro zugeschickt.';
<stat>INSERT INTO p26603011_language SET id = '4720',id_language = '60',id_question = '1900',id_text_type = '1',lngText = '<i><span style=\"background-color: rgb(0, 180,125);\">INT: Zuordnen</span></i>';
<stat>INSERT INTO p26603011_language SET id = '4725',id_language = '60',id_question = '1904',id_text_type = '3',lngText = '1 Ja/2 Eventuell/3 Nein, sicher nicht';
<stat>INSERT INTO p26603011_language SET id = '4726',id_language = '60',id_question = '1905',id_text_type = '3',lngText = '1 Ja/2 Eventuell/3 Nein, sicher nicht';
<stat>INSERT INTO p26603011_language SET id = '4727',id_language = '60',id_question = '1905',id_text_type = '2',lngText = 'Das IFES führt in Zusammenarbeit mit der Medizinischen Universität Graz bei Personen ab 70 Jahren eine mehrmalige Befragung zum Gesundheitszustand durch. Das persönliche Interview dauert rund 30 Minuten, danach folgen in zweiwöchigem Abstand sechs kurze Telefoninterviews. Dafür bekommen Sie zum Abschluss Sodexo-Gutscheine im Wert von 30 Euro zugeschickt. In rund einem Jahr wird diese Befragung dann nochmals wiederholt. Würden Sie daran teilnehmen bzw. gibt es jemanden in Ihrem Haushalt, der daran teilnehmen würde?';
<stat>INSERT INTO p26603011_language SET id = '4728',id_language = '60',id_question = '1906',id_text_type = '2',lngText = '<span style=\"background-color: rgb(255, 255, 0);\"><i>Kontaktdaten notieren</i></span>';
<stat>INSERT INTO p26603011_language SET id = '4729',id_language = '60',id_question = '1906',id_text_type = '3',lngText = '1 Telefon-Nummer Handy:/2 Telefon-Nummer Festnetz:/3 E-Mail:';
<stat>INSERT INTO p26603011_language SET id = '4730',id_language = '60',id_question = '1906',id_text_type = '8',lngText = '0,0,0,0<|><|>';
<stat>INSERT INTO p26603011_language SET id = '4731',id_language = '60',id_question = '1907',id_text_type = '3',lngText = '1 ausgezeichnet/2 sehr gut/3 gut/4 mittelmäßig/5 schlecht/6 [weiß nicht  ⁄ keine Angabe]';
<stat>INSERT INTO p26603011_language SET id = '4733',id_language = '60',id_question = '1908',id_text_type = '3',lngText = '1 gesundheitliche Probleme/2 möchte grundsätzlich kein Interview/3 geben/4 andere Gründe/5 [weiß nicht  ⁄ keine Angabe]';
<stat>INSERT INTO p26603011_language SET id = '4734',id_language = '60',id_question = '1908',id_text_type = '2',lngText = 'Und zuletzt noch: was ist der Grund für die Nicht-Teilnahme?';
<stat>INSERT INTO p26603011_script SET id_question = '71',id_event = '1',script = '    $txtchck = sprintf(\'TVFUNCxTV1_9,TVFUNCxTV1_10,TVFUNCxTV1_11,TVFUNCxTV1_12,TVFUNCxTV1_13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    saveVar(sprintf(\'tRCINTxTV1_9=NULL\'));
    saveVar(sprintf(\'tRCINTxTV1_10=NULL\'));
    saveVar(sprintf(\'tRCINTxTV1_11=NULL\'));
    saveVar(sprintf(\'tRCINTxTV1_12=NULL\'));
    saveVar(sprintf(\'tRCINTxTV1_13=NULL\'));
    saveVar(sprintf(\'tRCINTxTV1_1=NULL\'));
    
    
        if ($TVFUNCxTV1_9 == 9) {            
            saveVar(sprintf(\'tRCINTxTV1_9=9\'));
            saveVar(sprintf(\'tRCINTxTV1_1=1\'));
        }
        if ($TVFUNCxTV1_10 == 10) {            
            saveVar(sprintf(\'tRCINTxTV1_10=10\'));
            saveVar(sprintf(\'tRCINTxTV1_1=1\'));
        }
        if ($TVFUNCxTV1_11 == 11) {            
            saveVar(sprintf(\'tRCINTxTV1_11=11\'));
            saveVar(sprintf(\'tRCINTxTV1_1=1\'));
        }
        if ($TVFUNCxTV1_12 == 12) {            
            saveVar(sprintf(\'tRCINTxTV1_12=12\'));
            saveVar(sprintf(\'tRCINTxTV1_1=1\'));
        }
        if ($TVFUNCxTV1_13 == 13) {            
            saveVar(sprintf(\'tRCINTxTV1_13=13\'));
            saveVar(sprintf(\'tRCINTxTV1_1=1\'));
        }

';
<stat>INSERT INTO p26603011_script SET id_question = '59',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP1_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP1_1 < 10) {   
        saveVar(sprintf(\'STANDxP1=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '55',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP1 == 12) {  
        saveVar(sprintf(\'BERUFxP1=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '56',id_event = '1',script = '    $txtchck = sprintf(\'ANZTV_1,ANZGRP_1,ANZGRP_2,ANZGRP_3,ANZGRP_4,Projektdaten_24\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    
    $countp = 0;
    if ($ANZGRP_1 != 99)  { $grp1 = $ANZGRP_1; } else { $grp1 = 0; }
    if ($ANZGRP_2 != 99)  { $grp2 = $ANZGRP_2; } else { $grp2 = 0; }
    if ($ANZGRP_3 != 99)  { $grp3 = $ANZGRP_3; } else { $grp3 = 0; }
    if ($ANZGRP_4 != 99)  { $grp4 = $ANZGRP_4; } else { $grp4 = 0; }

$countp = $grp1 + $grp2 + $grp3 + $grp4;
//if ($ANZGRP_3 == 9) {$countp = \'\"\'.$countp.\'+\"\';}
//echo $countp;
    saveVar(\"ANZGES_1=$countp\");

// Anzahl für Statistik
    // ANZSTAT_1 - Anzahl Alter und Geschlecht
    // ANZSTAT_2 - Anzahl Rest
// Altersbeschränkungen setzen
    // Befragungsalter
    // Alter ab dem Statistik ausgefüllt wird

    if ( $ANZTV_1 == 0 && $Projektdaten_24 == 3 ) saveVar(\"Projektdaten_24 = 4\"); // Von MTU ohne EInschaltung auf mit Einschaltung ändern
    if ( $ANZTV_1 > 0 && $Projektdaten_24 == 4 ) {
        saveVar(\"Projektdaten_24 = 3\"); // Von MTU ohne EInschaltung auf mit Einschaltung ändern
        $Projektdaten_24 = 4;
    }
      if ($Projektdaten_24 == 1 || $Projektdaten_24 == 4) { 
            saveVar(\"ANZSTAT_1=$countp\"); //TTM Alle
            saveVar(\"ANZSTAT_2=$countp\"); //TTM Alle
            saveVar(sprintf(\'MINAGE_1=15\')); // derzeit bei allen Studien gleich
            saveVar(sprintf(\'MINAGE_2=0\')); // TTM für ALLE
        } else {
            saveVar(\"ANZSTAT_1=$ANZGRP_1\"); //AKI/MTU ab 15
            saveVar(\"ANZSTAT_2=1\"); //AKI/MTU max 2, wird nach Frage zum HHV geändert
            saveVar(sprintf(\'MINAGE_1=15\')); // derzeit bei allen Studien gleich
            saveVar(sprintf(\'MINAGE_2=15\')); // AKI/MTU ab 15
        }

// Text für Alter mal Geschlecht setzen
    for($i_tmp=1;$i_tmp<=9;$i_tmp++) {
      $txt_agesex = \"\";  
      if ($countp >= $i_tmp) {
         $txt_agesex2 = \" (IM ALTER UNTER 2 JAHRE)\";
         $i_min = 0;
         $i_max = 1; 
         if ( $i_tmp <= $grp1+$grp2+$grp3) {
         $txt_agesex2 = \" (IM ALTER VON 2 BIS 5 JAHRE)\";
         $i_min = 2;
         $i_max = 5; 
         }
         if ( $i_tmp <= $grp1+$grp2) {
         $txt_agesex2 = \" (IM ALTER VON 6 BIS 14 JAHRE)\";
         $i_min = 6;
         $i_max = 14; 
         }
         if ( $i_tmp <= $ANZGRP_1) {
         $txt_agesex2 = \" (IM ALTER 15+)\";
         $i_min = 15;
         $i_max = 99; 
         }    
         $txt_agesex = $i_tmp.\". Person\".$txt_agesex2;   
      }  
      saveVar(sprintf(\'BEZxAxS_%d=\"%s\"\',$i_tmp,$txt_agesex));  
      saveVar(sprintf(\'MINxAGE_%d=\"%d\"\',$i_tmp,$i_min)); 
      saveVar(sprintf(\'MAXxAGE_%d=\"%d\"\',$i_tmp,$i_max));         
    }    


';
<stat>INSERT INTO p26603011_script SET id_question = '60',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP1_1 == 12) {   
        saveVar(sprintf(\'EDUCxP1=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '132',id_event = '1',script = 'for($i=1;$i<=9;$i++) {
            
    $txtchck = sprintf(\'AGExP%d_1,SEXxP%d,ANZGES_1\',$i,$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
//        printf(\"%s=%s<br>\", $itemvar, $checkvar[$itemvar]);
    }
       
    $txtliste = \"\";
       
    if ($i<= $checkvar[\'ANZGES_1\']) {
        $age = sprintf(\'AGExP%d_1\',$i);
        $sex = sprintf(\'SEXxP%d\',$i);
            if ($checkvar[$sex] == 1) {
              $sextxt = \"männlich\";
            } else {
              $sextxt = \"weiblich\"; 
            }      
        $txtliste = sprintf(\"%d, %s\",$checkvar[$age],$sextxt);
//        echo $txtliste.\"<br>\";
    }
    saveVar(sprintf(\"LISTEPERS_opn%d = \'%s\'\",$i,$txtliste));
//    echo \"<hr>\";
}

';
<stat>INSERT INTO p26603011_script SET id_question = '134',id_event = '1',script = '
$i_userid = reset(getVar(\"user_id\"));
$i_info = getVarFromTable(\"_Interviewer\", \"username\", \"WHERE id = $i_userid\");

if (count($i_info) == 1)
    saveVar(\"intnr_1=\'\" . $i_info[0][\"username\"] . \"\'\");';
<stat>INSERT INTO p26603011_script SET id_question = '142',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP2 <> 12) {  
        saveVar(sprintf(\'BERUFxP2=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '143',id_event = '1',script = '    $txtchck = sprintf(\'AGExP2_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($AGExP2_1 < 10) {   
        saveVar(sprintf(\'STANDxP2=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '144',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP2_1 = 12) {   
        saveVar(sprintf(\'EDUCxP2=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '153',id_event = '1',script = '    $txtchck = sprintf(\'TVFUNCxTV2_9,TVFUNCxTV2_10,TVFUNCxTV2_11,TVFUNCxTV2_12,TVFUNCxTV2_13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    saveVar(sprintf(\'tRCINTxTV2_9=NULL\'));
    saveVar(sprintf(\'tRCINTxTV2_10=NULL\'));
    saveVar(sprintf(\'tRCINTxTV2_11=NULL\'));
    saveVar(sprintf(\'tRCINTxTV2_12=NULL\'));
    saveVar(sprintf(\'tRCINTxTV2_13=NULL\'));
    saveVar(sprintf(\'tRCINTxTV2_1=NULL\'));
    
    
        if ($TVFUNCxTV2_9 == 9) {            
            saveVar(sprintf(\'tRCINTxTV2_9=9\'));
            saveVar(sprintf(\'tRCINTxTV2_1=1\'));
        }
        if ($TVFUNCxTV2_10 == 10) {            
            saveVar(sprintf(\'tRCINTxTV2_10=10\'));
            saveVar(sprintf(\'tRCINTxTV2_1=1\'));
        }
        if ($TVFUNCxTV2_11 == 11) {            
            saveVar(sprintf(\'tRCINTxTV2_11=11\'));
            saveVar(sprintf(\'tRCINTxTV2_1=1\'));
        }
        if ($TVFUNCxTV2_12 == 12) {            
            saveVar(sprintf(\'tRCINTxTV2_12=12\'));
            saveVar(sprintf(\'tRCINTxTV2_1=1\'));
        }
        if ($TVFUNCxTV2_13 == 13) {            
            saveVar(sprintf(\'tRCINTxTV2_13=13\'));
            saveVar(sprintf(\'tRCINTxTV2_1=1\'));
        }

';
<stat>INSERT INTO p26603011_script SET id_question = '7',id_event = '4',script = 'saveVar(\"ANZTV_1=\" . rand(1,6));';
<stat>INSERT INTO p26603011_script SET id_question = '5',id_event = '4',script = 'saveVar(\"HHV=1\");';
<stat>INSERT INTO p26603011_script SET id_question = '6',id_event = '4',script = '$i_tmp = rand(1, 2);
     if($i_tmp == 1) {
        saveVar(\"HHFERN=1\");
     }
     if($i_tmp == 2) {
        saveVar(\"HHFERN=3\");
     }';
<stat>INSERT INTO p26603011_script SET id_question = '192',id_event = '1',script = '// FRAGEBOGEN ART
    $FRABO_ART = reset(getVar(\"Projektdaten_24\"));
// Zielperson setzen
    $j = reset(getVar(\"NRRESP\"));
    saveVar(sprintf(\"LPERS2_opn1 = \'%s\'\",$j));

// HEB Setzen
    $k = reset(getVar(\"NRHHV\"));
    if($j<>$k) { //ZP ist nicht HRHHV
        saveVar(sprintf(\"LPERS2_opn2 = \'%s\'\",$k));
     // Anzahl für Statistik
        // Anzahl Rest
        $ANZSTAT_tmp = reset(getVar(\"ANZSTAT_2\"));
        if ($ANZSTAT_tmp == 1 && ($FRABO_ART == 2 || $FRABO_ART == 3)) {
            saveVar(\"ANZSTAT_2=2\"); //AKI/MTU max 2, wird nach Frage zum HHV geändert 
        }    
    }

// Restlichen Personen anfügen
for($i=1;$i<=9;$i++) {
            
    $txtchck = sprintf(\'AGExP%d_1,SEXxP%d,ANZGES_1\',$i,$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
//        printf(\"%s=%s<br>\", $itemvar, $checkvar[$itemvar]);
    }
       
    $txtliste = \"\";
       
    if ($i<= $checkvar[\'ANZGES_1\']) {
        $age = sprintf(\'AGExP%d_1\',$i);
        $sex = sprintf(\'SEXxP%d\',$i);
            if ($checkvar[$sex] == 1) {
              $sextxt = \"männlich\";
            } else {
              $sextxt = \"weiblich\";
            }      
        $txtliste = sprintf(\"%d, %s\",$checkvar[$age],$sextxt);
//        echo $txtliste.\"<br>\";
    }
    if ($j<>$k) {
        $i_korr = 2;
        if ($i>$j) { $i_korr -= 1;}
        if ($i>$k) { $i_korr -= 1;}
        $l = $i+$i_korr;
        if ($i == $k) {
            $l = 2;
            $txtliste .= \"(Haupteinkommensbezieher)\";
        }
    } else {
        $i_korr = 1;
        if ($i>$j) { $i_korr -= 1;}
        $l = $i+$i_korr; 
    }
    if ($i == $j) {
        $l = 1;
        $txtliste .= \"(befragte Person)\";
    }
    if ($l <= 9) { 
    saveVar(sprintf(\"ALTERxP%d_1 = \'%s\'\",$l,$checkvar[$age]));
    saveVar(sprintf(\"GESCHLxP%d = \'%s\'\",$l,$checkvar[$sex]));
    saveVar(sprintf(\"BEZxP%d_1 = \'%s\'\",$l,$txtliste));
    saveVar(sprintf(\"LPERS2_opn%d = %d\",$l,$i));        
//    saveVar(sprintf(\"LISTEPERS_opn%d = \'%s\'\",$i,$txtliste));
//    echo \"<hr>\";
    }
}
    

';
<stat>INSERT INTO p26603011_script SET id_question = '200',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP2 == 12) {  
        saveVar(sprintf(\'BERUFxP2=15\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '201',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP2_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP2_1 < 10) {   
        saveVar(sprintf(\'STANDxP2=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '202',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP2_1 == 12) {   
        saveVar(sprintf(\'EDUCxP2=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '23',id_event = '4',script = 'saveVar(\"ANZRECxTV1_1=\" . rand(1,5));';
<stat>INSERT INTO p26603011_script SET id_question = '162',id_event = '4',script = 'saveVar(\"ANZRECxTV2_1=\" . rand(1,5));';
<stat>INSERT INTO p26603011_script SET id_question = '104',id_event = '4',script = 'saveVar(\"ANZGRP_1=\" . rand(1,4));';
<stat>INSERT INTO p26603011_script SET id_question = '308',id_event = '1',script = 'for ($i=1;$i<=5;$i++) {      // Schleife für Empfangsarten
            saveVar(sprintf(\'HHEMPF_%d=NULL\',$i));
            saveVar(sprintf(\'HHEMPFxNr_%d=0\',$i));

  for ($j=1;$j<=6;$j++) {    // Schleife für Fernseher, 5 wenn fertig derzeit auf 1 gesetzt
    $txtchck = sprintf(\'TVEMPFxTV%d_%d,HHEMPF_%d,HHEMPFxNr_%d\',$j,$i,$i,$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
       }
 $result = eval(sprintf(\'return ($TVEMPFxTV%d_%d == %d and HHEMPF_%d <> %d);\', $j, $i, $i, $i, $i));
      if ($result) {            
            saveVar(sprintf(\'HHEMPF_%d=%d\',$i,$i));
        }
 $result2 = eval(sprintf(\'return ($TVEMPFxTV%d_%d == %d);\', $j, $i, $i));
        if ($result) {
            $EMPF = sprintf(\'HHEMPFxNr_%d\',$i);
            $anzEMPF = $$EMPF;
            $anzEMPF ++;
            //echo $anzEMPF.\"<br>\";
            saveVar(sprintf(\'HHEMPFxNr_%d=%d\',$i,$anzEMPF));
        }
   }

}

    
    
';
<stat>INSERT INTO p26603011_script SET id_question = '306',id_event = '1',script = '$checkvar = getVar(\"HHEMPFxNr_1,HHEMPFxNr_2,HHEMPFxNr_3,HHEMPFxNr_4,HHEMPFxNr_5\");
$allvars = \"HHEMPFxNr_1,HHEMPFxNr_2,HHEMPFxNr_3,HHEMPFxNr_4,HHEMPFxNr_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }
  $StartSendePlatzGruppe = 1; //1 = die esten 10 oder 20; 2 = die zweiten 10 oder 20
  $txtfs1 = \'DAS IM HAUSHALT HAUPTSÄCHLICH GENUTZT WIRD\'; 
  $txtfs2 = \'0\';
  $txtsp1 = \'HAUPTFERNSEHGERÄT\';
  $txtfs3 = \'Die Programme der Sendeplätze 1 bis 20 angeben\';

    if ($HHEMPFxNr_3 >= 1) {
        if ($HHEMPFxNr_3 >= 2) $haupt = \"HAUPTSÄCHLICH GENUTZTE \";
  $txtsp1 = $haupt.\'FERNSEHGERÄT MIT KABELEMPFANG\';
  $txtfs1 = $haupt.\'FERNSEHGERÄT DAS ÜBER KABEL EMPFÄNGT\';
  $txtfs2 = \'10\';
    }
    if ($HHEMPFxNr_2 >= 1) {
        if ($HHEMPFxNr_2 >= 2) $haupt = \"HAUPTSÄCHLICH GENUTZTE \";
  $txtsp1 = $haupt.\'FERNSEHGERÄT MIT DVB-T/T2 EMPFANG\';
  $txtfs1 = $haupt.\'FERNSEHGERÄT DAS MIT DEM DVB-T/T2 RECEIVER VERBUNDEN IST\';
  $txtfs2 = \'10\' ;
     }
    if ($HHEMPFxNr_4 >= 1) {
        if ($HHEMPFxNr_4 >= 2) $haupt = \"HAUPTSÄCHLICH GENUTZTE \";
  $txtsp1 = $haupt.\'FERNSEHGERÄT MIT DVB-C EMPFANG\';
  $txtfs1 = $haupt.\'FERNSEHGERÄT DAS MIT DEM DVB-C RECEIVER VERBUNDEN IST\';
  $txtfs2 = \'10\';
     }
    if ($HHEMPFxNr_5 >= 1) {
        if ($HHEMPFxNr_5 >= 2) $haupt = \"HAUPTSÄCHLICH GENUTZTE \";
  $txtsp1 = $haupt.\'FERNSEHGERÄT MIT IPTV EMPFANG\';
  $txtfs1 = $haupt.\'FERNSEHGERÄT DAS MIT DEM IPTV RECEIVER VERBUNDEN IST\';
  $txtfs2 = \'10\';
    }
    if ($HHEMPFxNr_1 == 1) {
        if ($HHEMPFxNr_1 >= 2) $haupt = \"HAUPTSÄCHLICH GENUTZTE \";
  $txtsp1 = $haupt.\'FERNSEHGERÄT MIT DVB-S EMPFANG\';
  $txtfs1 = $haupt.\'FERNSEHGERÄT DAS MIT DEM DVB-S RECEIVER VERBUNDEN IST\';
  $txtfs2 = \'20\';
    }
  $startSendePl = 1;
  $endeSendePl = $txtfs2;
  $addSendePL = 0;
  if ($StartSendePlatzGruppe == 2) { 
      $startSendePl += $txtfs2;
      $endeSendePl += $txtfs2;
      $addSendePL = $txtfs2;
    }
$txtfs3 = \'Die Programme der Sendeplätze \'.$startSendePl.\' bis \'.$endeSendePl.\' angeben\';

for ($i_count = 1;$i_count <= $txtfs2;$i_count++) {
    $txtsendpl = \'\'.($i_count+$addSendePL).\'.Sendeplatz\';
//    echo $txtsendpl;
    saveVar(sprintf(\'DUMSENPL_%d=\"%s\"\',$i_count,$txtsendpl));
    }


           saveVar(sprintf(\'DUMSENPL_22=%d\',$txtfs2));
           saveVar(sprintf(\'DUMSENPL_21=\"%s\"\',$txtfs1));
           saveVar(sprintf(\'DUMSENPL_23=\"%s\"\',$txtfs3));

';
<stat>INSERT INTO p26603011_script SET id_question = '27',id_event = '2',script = '$i_txtrcint = \"Was trifft auf den <1>.Receiver am <1>. Fernsehgerät zu? (KONTROLLCHECK) (INT: VORLESEN)\";

    $txtchck = sprintf(\'RCINTxTV1,ZSRECxTV1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV1 == 1 and $ZSRECxTV1 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV1 == 1 and ($ZSRECxTV1 == 1 or $ZSRECxTV1 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV1 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \"
    am <1>. Fernsehgerät zu? (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";      }

setQuestion($i_txtrcint);
';
<stat>INSERT INTO p26603011_script SET id_question = '27',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    if ($RCINTxTV1 == 1 and ($ZSRECxTV1 == 1 or $ZSRECxTV1 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV1 == 1) {        //Sobald int rec vorhanden
    for ($i=1;$i<=19;$i++) {      // Schleife für Empfangsarten
    //            saveVar(sprintf(\'TVFUNC_%d=NULL\',$i));
    
        $txtchck = sprintf(\'TVFUNCxTV1_%d\',$i);
        $checkvar = getVar($txtchck);
        $allvars = $txtchck;
            foreach (explode(\",\",$allvars) as $itemvar) {
                   $$itemvar = $checkvar[$itemvar] ;
            }
     $result = eval(sprintf(\'return ($TVFUNCxTV1_%d == %d);\', $i,$i));
            if ($result) {            
                saveVar(sprintf(\'RCFUNCxTV1x1_%d=%d\',$i,$i));
            }
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '174',id_event = '2',script = '$i_txtrcint = \"Was trifft auf den <1>.Receiver am <2>. Fernsehgerät zu? (KONTROLLCHECK) (INT: VORLESEN)\";

    $txtchck = sprintf(\'RCINTxTV2,ZSRECxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV2 == 1 and $ZSRECxTV2 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \"
    am <2>. Fernsehgerät zu? (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '72',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '32',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '959',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP1_11\"),
        tbLabel = $(\"#op_STAATSBxP1_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '26',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV1,ZSRECxTV1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

//    if ($RCINTxTV1 == 1 and ($ZSRECxTV1 == 1 or $ZSRECxTV1 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV1 == 1) {        //Sobald int rec vorhanden
        for ($i=1;$i<=6;$i++) {      // Schleife für Empfangsarten
            $txtchck = sprintf(\'TVRECxTV1_%d\',$i);
            $checkvar = getVar($txtchck);
            $allvars = $txtchck;
                foreach (explode(\",\",$allvars) as $itemvar) {
                   $i_chktvrec = $checkvar[$itemvar] ;
                }
            saveVar(sprintf(\'RCARTxTV1x1_%d=%d\',$i,$i_chktvrec));
        }
   }

';
<stat>INSERT INTO p26603011_script SET id_question = '26',id_event = '2',script = '
$i_txtrcint = \"Was trifft auf den Receiver <1> zu? (KONTROLLCHECK)
    (RECEIVER KANN MEHRERE EMPFANGSARTEN UNTERSTÜTZEN) (MEHRFACHNENNUNG MÖGLICH)\";


    $txtchck = sprintf(\'RCINTxTV1,ZSRECxTV1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV1 == 1 and $ZSRECxTV1 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV1 == 1 and ($ZSRECxTV1 == 1 or $ZSRECxTV1 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV1 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \" zu?
    (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";        
    }

setQuestion($i_txtrcint);
 ';
<stat>INSERT INTO p26603011_script SET id_question = '171',id_event = '2',script = '
$i_txtrcint = \"Was trifft auf den Receiver <1> zu? (KONTROLLCHECK)
    (RECEIVER KANN MEHRERE EMPFANGSARTEN UNTERSTÜTZEN) (MEHRFACHNENNUNG MÖGLICH)\";


    $txtchck = sprintf(\'RCINTxTV2,ZSRECxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV2 == 1 and $ZSRECxTV2 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \" zu?
    (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";        
    }

setQuestion($i_txtrcint);
 ';
<stat>INSERT INTO p26603011_script SET id_question = '171',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV2,ZSRECxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
        for ($i=1;$i<=6;$i++) {      // Schleife für Empfangsarten
            $txtchck = sprintf(\'TVRECxTV2_%d\',$i);
            $checkvar = getVar($txtchck);
            $allvars = $txtchck;
                foreach (explode(\",\",$allvars) as $itemvar) {
                   $i_chktvrec = $checkvar[$itemvar] ;
                }
            saveVar(sprintf(\'RCARTxTV2x1_%d=%d\',$i,$i_chktvrec));
        }
   }

';
<stat>INSERT INTO p26603011_script SET id_question = '315',id_event = '1',script = '$i_userid = reset(getVar(\"user_id\"));

//1 Projektname
            saveVar(\'Projektdaten_1=\"ISSP 2021\"\');
            //saveVar(\"Projektdaten_1=\'\". $i_address[0][\"capi_hhid\"] . \"\'\");
//3 Verrechnungsnummer
            saveVar(\'Projektdaten_3=\"26603011\"\');
            //saveVar(\"Projektdaten_3=\'\". $i_address[0][\"capi_hhidf2\"] . \"\'\");
//24 Fragebogen ART
     //Fragebogenart(1 = TTM ohne Einschaltung, 2 = AKI ohne Einschaltung, 3 = MTU, 4 = mit Einschaltung
            saveVar(\'Projektdaten_24=\"3\"\');
//15 Version
    saveVar(\'Projektdaten_15=\"0.1.0\"\'); // Nur Teil B aktualisiert

if ($i_userid != 0)
 {
$i_table_id = reset(getVar(\"id_capi_table\"));
$i_address_id = reset(getVar(\"id_capi_address\"));
$i_sample_id = reset(getVar(\"id_capi_sample\"));

// Interviewernummer eintragen
$i_userid = reset(getVar(\"user_id\"));
$i_info = getVarFromTable(\"_Interviewer\", \"username\", \"WHERE id = $i_userid\");

if (count($i_info) == 1)
    saveVar(\"intnr_1=\'\" . $i_info[0][\"username\"] . \"\'\");

if ($i_table_id != null)
{
    $i_table_name = getVarFromTable(\"_CapiTables\", \"name\", \"WHERE id = \".$i_table_id);
    if (count($i_table_name) == 1)
    {    
        $i_sample_table = \"capi___\" . $i_table_name[0][\"name\"];
    
//        $i_address = getVarFromTable($i_sample_table, \"id_municipality, municipality, id_settlement, capi_BL, capi_PB, capi_OG, name, street, zip, town, capi_vorwahl, capi_telnr\", \"WHERE id = \".$i_address_id);
        $i_address = getVarFromTable($i_sample_table, \"id, id_municipality, municipality, id_settlement, id_street, capi_BL, capi_PB, capi_OG, capi_ID_POST, name, street, addon_address, zip, town\", \"WHERE id = \".$i_address_id);
        if (count($i_address) == 1)
        {
//2 Welle
            //saveVar(\'Projektdaten_2=\"1\"\');
            saveVar(\"Projektdaten_2=\'\". $i_address[0][\"id_municipality\"] . \"\'\");
//4 Listennummer
            saveVar(\"Projektdaten_4=\'\". $i_address[0][\"municipality\"] . \"\'\");
//5 Lfd Nummer
            saveVar(\"Projektdaten_5=\'\". $i_address[0][\"id_settlement\"] . \"\'\");
//6 Bundesland
            saveVar(\"Projektdaten_6=\'\". $i_address[0][\"capi_BL\"]. \"\'\");
//7 Politischer Bezirk
            saveVar(\"Projektdaten_7=\'\". $i_address[0][\"capi_PB\"]. \"\'\");            
//8 Größenklasse
            saveVar(\"Projektdaten_8=\'\". $i_address[0][\"capi_OG\"]. \"\'\");            
//9 Name
            saveVar(\"Projektdaten_9=\'\". $i_address[0][\"name\"]. \"\'\");            
//10 Vorname
            //saveVar(\"Projektdaten_10=\'\". $i_address[0][\"capi_hhnrb2\"]. \"\'\");        
//11 Adresse
            saveVar(\"Projektdaten_11=\'\". $i_address[0][\"street\"]. \"\'\");
//12 PLZ
            saveVar(\"Projektdaten_12=\'\". $i_address[0][\"zip\"]. \"\'\");            
//13 Ort
            saveVar(\"Projektdaten_13=\'\". $i_address[0][\"town\"]. \"\'\");            
//14 Telefonnummer
            saveVar(\"Projektdaten_14=\'\". $i_address[0][\"capi_vorwahl\"]. $i_address[0][\"capi_telnr\"]. \"\'\");            
//16 Kontrollvariable
            //saveVar(\"Projektdaten_16=\'ver\'\");  wir für die Kontaktdaten gesetzt
//17 Adresstyp
           saveVar(\"Projektdaten_17=\'\". $i_address[0][\"id_street\"] . \"\'\");      
//18 ID_POST
            saveVar(\"Projektdaten_18=\'\". $i_address[0][\"capi_ID_POST\"]. \"\'\");            
//19 Straße Zusatz (Hausnummer etc.)
           saveVar(\"Projektdaten_19=\'\". $i_address[0][\"addon_address\"] . \"\'\");      
        }}}     
 }
//20 RESERVIERT FÜR ABGLEICHDATUM
//21 RESERVIERT FÜR STATUS INKL KONTAKTBLATT
//22 RESERVIERT FÜR QS DATEN
//23 RESERVIERT FÜR LIVE UPDATE VERSION
//24 RESERVIERT FÜR Fragebogen ART - Wird am Skriptanfang gesetzt
//25 FREI

$i_bld = reset(getVar(\"Projektdaten_6\"));    
if ($i_bld == \"\") {saveVar(\"Projektdaten_6=\'9\'\");};
$i_linr = reset(getVar(\"Projektdaten_4\"));    
if ($i_linr == \"\") {
    saveVar(\"Projektdaten_4=\'099999\'\");
    saveVar(\"Projektdaten_2=2\");
};
$i_id = reset(getVar(\"id\"));
$i_lfdnr = reset(getVar(\"Projektdaten_5\"));  
if ($i_lfdnr == \"\") {saveVar(\"Projektdaten_5=\".$i_id);};

            







';
<stat>INSERT INTO p26603011_script SET id_question = '1634',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1330',id_event = '3',script = '//var questnum = $(\"Af13_1_9\")
document.getElementById(\"td_Af13_1_9\").innerHTML=\"altmodisch\";
document.getElementById(\"td_Af13_2_9\").innerHTML=\"unsympathisch\";
document.getElementById(\"td_Af13_3_9\").innerHTML=\"langsam, träge\";
document.getElementById(\"td_Af13_4_9\").innerHTML=\"gewöhnlich\";
document.getElementById(\"td_Af13_5_9\").innerHTML=\"machtlos\";
document.getElementById(\"td_Af13_6_9\").innerHTML=\"abhängig von der Politik\";
document.getElementById(\"td_Af13_7_9\").innerHTML=\"nicht vertrauenswürdig\";
document.getElementById(\"td_Af13_8_9\").innerHTML=\"ineffizient\";
document.getElementById(\"td_Af13_9_9\").innerHTML=\"korrupt\";
document.getElementById(\"td_Af13_10_9\").innerHTML=\"nicht verantwortungsbewusst\";
document.getElementById(\"td_Af13_11_9\").innerHTML=\"inkompetent\";
document.getElementById(\"td_Af13_12_9\").innerHTML=\"kein hohes Ansehen\";

document.getElementById(\"td_Af13_1_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_2_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_3_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_4_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_5_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_6_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_7_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_8_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_9_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_10_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_11_1\").previousSibling.style.textAlign = \"center\";
document.getElementById(\"td_Af13_12_1\").previousSibling.style.textAlign = \"center\";


';
<stat>INSERT INTO p26603011_script SET id_question = '1114',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP2_11\"),
        tbLabel = $(\"#op_STAATSBxP2_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '101',id_event = '4',script = 'saveVar(\"AGExP1_1=\" . rand(15, 99));';
<stat>INSERT INTO p26603011_script SET id_question = '160',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV2_1,TVRECxTV2_2,TVRECxTV2_3,TVRECxTV2_4,TVRECxTV2_5,TVEMPFxTV2_1,TVEMPFxTV2_2,TVEMPFxTV2_3,TVEMPFxTV2_4,TVEMPFxTV2_5\");
$allvars = \"TVRECxTV2_1,TVRECxTV2_2,TVRECxTV2_3,TVRECxTV2_4,TVRECxTV2_5,TVEMPFxTV2_1,TVEMPFxTV2_2,TVEMPFxTV2_3,TVEMPFxTV2_4,TVEMPFxTV2_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
    $i_TV = \"\";   

if (($TVRECxTV2_2 == 2 or $TVRECxTV2_5 == 5)   and  $TVEMPFxTV2_1 == 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV .= \"- DVB-S -\";
    }
    
if  (($TVRECxTV2_1 == 1 or $TVRECxTV2_5 == 5)   and  $TVEMPFxTV2_2 == 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV .= \"- DVB-T, DVB-T2/ SimpliTV -\";
    }
if  (($TVRECxTV2_3 == 3 or $TVRECxTV2_5 == 5)   and  $TVEMPFxTV2_4 == 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV .= \"- DVB-C -\";
    }
if  ($TVRECxTV2_4 == 4   and  $TVEMPFxTV2_5 == 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV .= \"- Fernsehen über Telefonleitung (IPTV) -\";
    }
if ($TVRECxTV2_5 == 5) {
    $i_rec .= \"- Tripletuner -\";    
}
 $textzs = sprintf(\'Benutzen Sie den eingebauten Receiver (%s)
     oder einen externen Receiver für den Empfang von %s an diesem Fernsehgerät?\',$i_rec,$i_TV);
 setQuestion($textzs);';
<stat>INSERT INTO p26603011_script SET id_question = '531',id_event = '1',script = '$txtchck = sprintf(\'Projektdaten_6,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_16,Projektdaten_19,kondata_5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_16 <> \'ver\' && ($Projektdaten_17 == 1 || $Projektdaten_17 == 0)) {
    saveVar(sprintf(\'kondata_1=\"%s\"\',$Projektdaten_9));
    saveVar(sprintf(\'kondata_2=\"%s\"\',$Projektdaten_12));
    saveVar(sprintf(\'kondata_3=\"%s\"\',$Projektdaten_11));
    saveVar(sprintf(\'kondata_4=\"%s\"\',$Projektdaten_19));
    saveVar(sprintf(\'kondata_5=\"%s\"\',$Projektdaten_13));
    saveVar(sprintf(\'kondata_6=\"%s\"\',$Projektdaten_14));
}

saveVar(\"Projektdaten_16=\'ver\'\");

$bld = $Projektdaten_6;
$bldstat = array(\"ges\",8,7,5,4,2,6,1,3,9);
/*
if ($Projektdaten_6 != \"\" and $Projektdaten_11 != \"\" and $Projektdaten_12 != \"\") {
    $plz = $Projektdaten_12;
    $table = \"strassen_ges\";
    $filter = \"WHERE `Straßenname` = \'\".$Projektdaten_11.\"\' and Postleitzahl = \".$plz.\" and bld = \".$bldstat[$bld];
    
    $Variable = getVarFromTable( $table , \"id\", $filter);

    if (isset($Variable[0][\"id\"])) {
        $id_street = $Variable[0][\"id\"];
    } else {
         $id_street = 0;
    }
}
*/
if ($Projektdaten_17 == 1 || $Projektdaten_17 == 0) {
    $id_street = 0;
}
if ($Projektdaten_11== \"Blumenweg\" and $Projektdaten_12 == 1811) {
     $id_street = 999999;
    }
/*
if ($kontakt[\"kondata_5\"] == null) {
    saveVar(\"kondata_3=\".$Projektdaten_12); //PLZ
    saveVar(\"kondata_4=\'\".$Projektdaten_11.\"\'\"); // Straße
    saveVar(\"kondata_5=\'\".$Projektdaten_19.\"\'\"); // Straße_Zusatz
    saveVar(\"kondata_6=\'\".$Projektdaten_13.\"\'\"); // Ort
    saveVar(\"kondata_9=\".$id_street); // idStreet
}
*/
$projname = $_SESSION[\"projname\"];
$questname = \"strasse\";
//echo \'<input id=plzID type=\"hidden\" name=\"forStreet\" value=\"\'.$plz.\'\">\';
echo \'<input id=bldID type=\"hidden\" name=\"forStreet\" value=\"\'.$bld.\'\">\';
echo \'<input id=frageID type=\"hidden\" name=\"forStreet\" value=\"\'.$questname.\'\">\';

';
<stat>INSERT INTO p26603011_script SET id_question = '361',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV3_1,TVRECxTV3_2,TVRECxTV3_3,TVRECxTV3_4,TVRECxTV3_5,TVEMPFxTV3_1,TVEMPFxTV3_2,TVEMPFxTV3_3,TVEMPFxTV3_4,TVEMPFxTV3_5\");
$allvars = \"TVRECxTV3_1,TVRECxTV3_2,TVRECxTV3_3,TVRECxTV3_4,TVRECxTV3_5,TVEMPFxTV3_1,TVEMPFxTV3_2,TVEMPFxTV3_3,TVEMPFxTV3_4,TVEMPFxTV3_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
    $i_TV = \"\";   

if (($TVRECxTV3_2 == 2 or $TVRECxTV3_5 == 5)   and  $TVEMPFxTV3_1 == 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV .= \"- DVB-S -\";
    }
    
if  (($TVRECxTV3_1 == 1 or $TVRECxTV3_5 == 5)   and  $TVEMPFxTV3_2 == 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV .= \"- DVB-T, DVB-T2/ SimpliTV -\";
    }
if  (($TVRECxTV3_3 == 3 or $TVRECxTV3_5 == 5)   and  $TVEMPFxTV3_4 == 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV .= \"- DVB-C -\";
    }
if  ($TVRECxTV3_4 == 4   and  $TVEMPFxTV3_5 == 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV .= \"- Fernsehen über Telefonleitung (IPTV) -\";
    }
if ($TVRECxTV3_5 == 5) {
    $i_rec .= \"- Tripletuner -\";    
}
 $textzs = sprintf(\'Benutzen Sie den eingebauten Receiver (%s)
     oder einen externen Receiver für den Empfang von %s an diesem Fernsehgerät?\',$i_rec,$i_TV);
 setQuestion($textzs);';
<stat>INSERT INTO p26603011_script SET id_question = '382',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV4_1,TVRECxTV4_2,TVRECxTV4_3,TVRECxTV4_4,TVRECxTV4_5,TVEMPFxTV4_1,TVEMPFxTV4_2,TVEMPFxTV4_3,TVEMPFxTV4_4,TVEMPFxTV4_5\");
$allvars = \"TVRECxTV4_1,TVRECxTV4_2,TVRECxTV4_3,TVRECxTV4_4,TVRECxTV4_5,TVEMPFxTV4_1,TVEMPFxTV4_2,TVEMPFxTV4_3,TVEMPFxTV4_4,TVEMPFxTV4_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
    $i_TV = \"\";   

if (($TVRECxTV4_2 == 2 or $TVRECxTV4_5 == 5)   and  $TVEMPFxTV4_1 == 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV .= \"- DVB-S -\";
    }
    
if  (($TVRECxTV4_1 == 1 or $TVRECxTV4_5 == 5)   and  $TVEMPFxTV4_2 == 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV .= \"- DVB-T, DVB-T2/ SimpliTV -\";
    }
if  (($TVRECxTV4_3 == 3 or $TVRECxTV4_5 == 5)   and  $TVEMPFxTV4_4 == 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV .= \"- DVB-C -\";
    }
if  ($TVRECxTV4_4 == 4   and  $TVEMPFxTV4_5 == 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV .= \"- Fernsehen über Telefonleitung (IPTV) -\";
    }
if ($TVRECxTV4_5 == 5) {
    $i_rec .= \"- Tripletuner -\";    
}
 $textzs = sprintf(\'Benutzen Sie den eingebauten Receiver (%s)
     oder einen externen Receiver für den Empfang von %s an diesem Fernsehgerät?\',$i_rec,$i_TV);
 setQuestion($textzs);';
<stat>INSERT INTO p26603011_script SET id_question = '403',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV5_1,TVRECxTV5_2,TVRECxTV5_3,TVRECxTV5_4,TVRECxTV5_5,TVEMPFxTV5_1,TVEMPFxTV5_2,TVEMPFxTV5_3,TVEMPFxTV5_4,TVEMPFxTV5_5\");
$allvars = \"TVRECxTV5_1,TVRECxTV5_2,TVRECxTV5_3,TVRECxTV5_4,TVRECxTV5_5,TVEMPFxTV5_1,TVEMPFxTV5_2,TVEMPFxTV5_3,TVEMPFxTV5_4,TVEMPFxTV5_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
    $i_TV = \"\";   

if (($TVRECxTV5_2 == 2 or $TVRECxTV5_5 == 5)   and  $TVEMPFxTV5_1 == 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV .= \"- DVB-S -\";
    }
    
if  (($TVRECxTV5_1 == 1 or $TVRECxTV5_5 == 5)   and  $TVEMPFxTV5_2 == 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV .= \"- DVB-T, DVB-T2/ SimpliTV -\";
    }
if  (($TVRECxTV5_3 == 3 or $TVRECxTV5_5 == 5)   and  $TVEMPFxTV5_4 == 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV .= \"- DVB-C -\";
    }
if  ($TVRECxTV5_4 == 4   and  $TVEMPFxTV5_5 == 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV .= \"- Fernsehen über Telefonleitung (IPTV) -\";
    }
if ($TVRECxTV5_5 == 5) {
    $i_rec .= \"- Tripletuner -\";    
}
 $textzs = sprintf(\'Benutzen Sie den eingebauten Receiver (%s)
     oder einen externen Receiver für den Empfang von %s an diesem Fernsehgerät?\',$i_rec,$i_TV);
 setQuestion($textzs);';
<stat>INSERT INTO p26603011_script SET id_question = '429',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV6_1,TVRECxTV6_2,TVRECxTV6_3,TVRECxTV6_4,TVRECxTV6_5,TVEMPFxTV6_1,TVEMPFxTV6_2,TVEMPFxTV6_3,TVEMPFxTV6_4,TVEMPFxTV6_5\");
$allvars = \"TVRECxTV6_1,TVRECxTV6_2,TVRECxTV6_3,TVRECxTV6_4,TVRECxTV6_5,TVEMPFxTV6_1,TVEMPFxTV6_2,TVEMPFxTV6_3,TVEMPFxTV6_4,TVEMPFxTV6_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
    $i_TV = \"\";   

if (($TVRECxTV6_2 == 2 or $TVRECxTV6_5 == 5)   and  $TVEMPFxTV6_1 == 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV .= \"- DVB-S -\";
    }
    
if  (($TVRECxTV6_1 == 1 or $TVRECxTV6_5 == 5)   and  $TVEMPFxTV6_2 == 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV .= \"- DVB-T, DVB-T2/ SimpliTV -\";
    }
if  (($TVRECxTV6_3 == 3 or $TVRECxTV6_5 == 5)   and  $TVEMPFxTV6_4 == 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV .= \"- DVB-C -\";
    }
if  ($TVRECxTV6_4 == 4   and  $TVEMPFxTV6_5 == 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV .= \"- Fernsehen über Telefonleitung (IPTV) -\";
    }
if ($TVRECxTV6_5 == 5) {
    $i_rec .= \"- Tripletuner -\";    
}
 $textzs = sprintf(\'Benutzen Sie den eingebauten Receiver (%s)
     oder einen externen Receiver für den Empfang von %s an diesem Fernsehgerät?\',$i_rec,$i_TV);
 setQuestion($textzs);';
<stat>INSERT INTO p26603011_script SET id_question = '424',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV3,ZSRECxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
        for ($i=1;$i<=6;$i++) {      // Schleife für Empfangsarten
            $txtchck = sprintf(\'TVRECxTV3_%d\',$i);
            $checkvar = getVar($txtchck);
            $allvars = $txtchck;
                foreach (explode(\",\",$allvars) as $itemvar) {
                   $i_chktvrec = $checkvar[$itemvar] ;
                }
            saveVar(sprintf(\'RCARTxTV3x1_%d=%d\',$i,$i_chktvrec));
        }
   }

';
<stat>INSERT INTO p26603011_script SET id_question = '424',id_event = '2',script = '
$i_txtrcint = \"Was trifft auf den Receiver <1> zu? (KONTROLLCHECK)
    (RECEIVER KANN MEHRERE EMPFANGSARTEN UNTERSTÜTZEN) (MEHRFACHNENNUNG MÖGLICH)\";


    $txtchck = sprintf(\'RCINTxTV3,ZSRECxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV3 == 1 and $ZSRECxTV3 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \" zu?
    (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";        
    }

setQuestion($i_txtrcint);
 ';
<stat>INSERT INTO p26603011_script SET id_question = '437',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV4,ZSRECxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
        for ($i=1;$i<=6;$i++) {      // Schleife für Empfangsarten
            $txtchck = sprintf(\'TVRECxTV4_%d\',$i);
            $checkvar = getVar($txtchck);
            $allvars = $txtchck;
                foreach (explode(\",\",$allvars) as $itemvar) {
                   $i_chktvrec = $checkvar[$itemvar] ;
                }
            saveVar(sprintf(\'RCARTxTV4x1_%d=%d\',$i,$i_chktvrec));
        }
   }

';
<stat>INSERT INTO p26603011_script SET id_question = '437',id_event = '2',script = '
$i_txtrcint = \"Was trifft auf den Receiver <1> zu? (KONTROLLCHECK)
    (RECEIVER KANN MEHRERE EMPFANGSARTEN UNTERSTÜTZEN) (MEHRFACHNENNUNG MÖGLICH)\";


    $txtchck = sprintf(\'RCINTxTV4,ZSRECxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV4 == 1 and $ZSRECxTV4 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \" zu?
    (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";        
    }

setQuestion($i_txtrcint);
 ';
<stat>INSERT INTO p26603011_script SET id_question = '442',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV5,ZSRECxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
        for ($i=1;$i<=6;$i++) {      // Schleife für Empfangsarten
            $txtchck = sprintf(\'TVRECxTV5_%d\',$i);
            $checkvar = getVar($txtchck);
            $allvars = $txtchck;
                foreach (explode(\",\",$allvars) as $itemvar) {
                   $i_chktvrec = $checkvar[$itemvar] ;
                }
            saveVar(sprintf(\'RCARTxTV5x1_%d=%d\',$i,$i_chktvrec));
        }
   }

';
<stat>INSERT INTO p26603011_script SET id_question = '442',id_event = '2',script = '
$i_txtrcint = \"Was trifft auf den Receiver <1> zu? (KONTROLLCHECK)
    (RECEIVER KANN MEHRERE EMPFANGSARTEN UNTERSTÜTZEN) (MEHRFACHNENNUNG MÖGLICH)\";


    $txtchck = sprintf(\'RCINTxTV5,ZSRECxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV5 == 1 and $ZSRECxTV5 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \" zu?
    (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";        
    }

setQuestion($i_txtrcint);
 ';
<stat>INSERT INTO p26603011_script SET id_question = '447',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV6,ZSRECxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
        for ($i=1;$i<=6;$i++) {      // Schleife für Empfangsarten
            $txtchck = sprintf(\'TVRECxTV6_%d\',$i);
            $checkvar = getVar($txtchck);
            $allvars = $txtchck;
                foreach (explode(\",\",$allvars) as $itemvar) {
                   $i_chktvrec = $checkvar[$itemvar] ;
                }
            saveVar(sprintf(\'RCARTxTV6x1_%d=%d\',$i,$i_chktvrec));
        }
   }

';
<stat>INSERT INTO p26603011_script SET id_question = '447',id_event = '2',script = '
$i_txtrcint = \"Was trifft auf den Receiver <1> zu? (KONTROLLCHECK)
    (RECEIVER KANN MEHRERE EMPFANGSARTEN UNTERSTÜTZEN) (MEHRFACHNENNUNG MÖGLICH)\";


    $txtchck = sprintf(\'RCINTxTV6,ZSRECxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV6 == 1 and $ZSRECxTV6 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \" zu?
    (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";        
    }

setQuestion($i_txtrcint);
 ';
<stat>INSERT INTO p26603011_script SET id_question = '451',id_event = '2',script = '$i_txtrcint = \"Was trifft auf den <1>.Receiver am <3>. Fernsehgerät zu? (KONTROLLCHECK) (INT: VORLESEN)\";

    $txtchck = sprintf(\'RCINTxTV3,ZSRECxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV3 == 1 and $ZSRECxTV3 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \"
    am <3>. Fernsehgerät zu? (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '457',id_event = '2',script = '$i_txtrcint = \"Was trifft auf den <1>.Receiver am <4>. Fernsehgerät zu? (KONTROLLCHECK) (INT: VORLESEN)\";

    $txtchck = sprintf(\'RCINTxTV4,ZSRECxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV4 == 1 and $ZSRECxTV4 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \"
    am <1>. Fernsehgerät zu? (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '463',id_event = '2',script = '$i_txtrcint = \"Was trifft auf den <1>.Receiver am <5>. Fernsehgerät zu? (KONTROLLCHECK) (INT: VORLESEN)\";

    $txtchck = sprintf(\'RCINTxTV5,ZSRECxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV5 == 1 and $ZSRECxTV5 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \"
    am <5>. Fernsehgerät zu? (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '469',id_event = '2',script = '$i_txtrcint = \"Was trifft auf den <1>.Receiver am <6>. Fernsehgerät zu? (KONTROLLCHECK) (INT: VORLESEN)\";

    $txtchck = sprintf(\'RCINTxTV6,ZSRECxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV6 == 1 and $ZSRECxTV6 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"(EINGABE ÜBERPRÜFEN) Was trifft auf den integrierten Receiver\" . $i_txtrcintnv . \"
    am <6>. Fernsehgerät zu? (KONTROLLCHECK)(MEHRFACHNENNUNG MÖGLICH)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '22',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV1_1,TVRECxTV1_2,TVRECxTV1_3,TVRECxTV1_4,TVRECxTV1_5,TVEMPFxTV1_1,TVEMPFxTV1_2,TVEMPFxTV1_3,TVEMPFxTV1_4,TVEMPFxTV1_5\");
$allvars = \"TVRECxTV1_1,TVRECxTV1_2,TVRECxTV1_3,TVRECxTV1_4,TVRECxTV1_5,TVEMPFxTV1_1,TVEMPFxTV1_2,TVEMPFxTV1_3,TVEMPFxTV1_4,TVEMPFxTV1_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }
    $i_rec = \"\";
if (($TVRECxTV1_2 == 2 or $TVRECxTV1_5 == 5)   and  $TVEMPFxTV1_1 <> 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV = \"DVB-S – digitaler Sat-Receiver mit 100 Fernsehprogrammen und mehr und eventuell Pay-TV-Angeboten\";
    }
    
if  (($TVRECxTV1_1 == 1 or $TVRECxTV1_5 == 5)   and  $TVEMPFxTV1_2 <> 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV = \"DVB-T, DVB-T2/ SimpliTV - digitales Antennenfernsehen\";
    }
if  (($TVRECxTV1_3 == 3 or $TVRECxTV1_5 == 5)   and  $TVEMPFxTV1_4 <> 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV = \"DVB-C - digitaler Kabel-Receiver mit mehr als 70 Fernsehprogrammen und eventuell Pay-TV-Angeboten\";
    }
if  ($TVRECxTV1_4 == 4   and  $TVEMPFxTV1_5 <> 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV = \"Fernsehen über Telefonleitung (IPTV) wie z.B. A1 TV (aon TV) oder inext.TV\";
    }
//if ($TVRECxTV1_5 == 5) {
//    $i_rec = \"Tripletuner\";    
//}
 $textzs = sprintf(\'Benutzen Sie die Empfangsmöglichkeit von %s des eingebauten Receiver?\',$i_rec);
 setQuestion($textzs);

 ';
<stat>INSERT INTO p26603011_script SET id_question = '161',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV2_1,TVRECxTV2_2,TVRECxTV2_3,TVRECxTV2_4,TVRECxTV2_5,TVEMPFxTV2_1,TVEMPFxTV2_2,TVEMPFxTV2_3,TVEMPFxTV2_4,TVEMPFxTV2_5\");
$allvars = \"TVRECxTV2_1,TVRECxTV2_2,TVRECxTV2_3,TVRECxTV2_4,TVRECxTV2_5,TVEMPFxTV2_1,TVEMPFxTV2_2,TVEMPFxTV2_3,TVEMPFxTV2_4,TVEMPFxTV2_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
if (($TVRECxTV2_2 == 2 or $TVRECxTV2_5 == 5)   and  $TVEMPFxTV2_1 <> 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV = \"DVB-S – digitaler Sat-Receiver mit 100 Fernsehprogrammen und mehr und eventuell Pay-TV-Angeboten\";
    }
    
if  (($TVRECxTV2_1 == 1 or $TVRECxTV2_5 == 5)   and  $TVEMPFxTV2_2 <> 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV = \"DVB-T, DVB-T2/ SimpliTV - digitales Antennenfernsehen\";
    }
if  (($TVRECxTV2_3 == 3 or $TVRECxTV2_5 == 5)   and  $TVEMPFxTV2_4 <> 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV = \"DVB-C - digitaler Kabel-Receiver mit mehr als 70 Fernsehprogrammen und eventuell Pay-TV-Angeboten\";
    }
if  ($TVRECxTV2_4 == 4   and  $TVEMPFxTV2_5 <> 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV = \"Fernsehen über Telefonleitung (IPTV) wie z.B. A1 TV (aon TV) oder inext.TV\";
    }
//if ($TVRECxTV1_5 == 5) {
//    $i_rec = \"Tripletuner\";    
//}
 $textzs = sprintf(\'Benutzen Sie die Empfangsmöglichkeit von %s des eingebauten Receiver?\',$i_rec);
 setQuestion($textzs);

 ';
<stat>INSERT INTO p26603011_script SET id_question = '362',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV3_1,TVRECxTV3_2,TVRECxTV3_3,TVRECxTV3_4,TVRECxTV3_5,TVEMPFxTV3_1,TVEMPFxTV3_2,TVEMPFxTV3_3,TVEMPFxTV3_4,TVEMPFxTV3_5\");
$allvars = \"TVRECxTV3_1,TVRECxTV3_2,TVRECxTV3_3,TVRECxTV3_4,TVRECxTV3_5,TVEMPFxTV3_1,TVEMPFxTV3_2,TVEMPFxTV3_3,TVEMPFxTV3_4,TVEMPFxTV3_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
if (($TVRECxTV3_2 == 2 or $TVRECxTV3_5 == 5)   and  $TVEMPFxTV3_1 <> 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV = \"DVB-S – digitaler Sat-Receiver mit 100 Fernsehprogrammen und mehr und eventuell Pay-TV-Angeboten\";
    }
    
if  (($TVRECxTV3_1 == 1 or $TVRECxTV3_5 == 5)   and  $TVEMPFxTV3_2 <> 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV = \"DVB-T, DVB-T2/ SimpliTV - digitales Antennenfernsehen\";
    }
if  (($TVRECxTV3_3 == 3 or $TVRECxTV3_5 == 5)   and  $TVEMPFxTV3_4 <> 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV = \"DVB-C - digitaler Kabel-Receiver mit mehr als 70 Fernsehprogrammen und eventuell Pay-TV-Angeboten\";
    }
if  ($TVRECxTV3_4 == 4   and  $TVEMPFxTV3_5 <> 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV = \"Fernsehen über Telefonleitung (IPTV) wie z.B. A1 TV (aon TV) oder inext.TV\";
    }
//if ($TVRECxTV1_5 == 5) {
//    $i_rec = \"Tripletuner\";    
//}
 $textzs = sprintf(\'Benutzen Sie die Empfangsmöglichkeit von %s des eingebauten Receiver?\',$i_rec);
 setQuestion($textzs);

 ';
<stat>INSERT INTO p26603011_script SET id_question = '383',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV4_1,TVRECxTV4_2,TVRECxTV4_3,TVRECxTV4_4,TVRECxTV4_5,TVEMPFxTV4_1,TVEMPFxTV4_2,TVEMPFxTV4_3,TVEMPFxTV4_4,TVEMPFxTV4_5\");
$allvars = \"TVRECxTV4_1,TVRECxTV4_2,TVRECxTV4_3,TVRECxTV4_4,TVRECxTV4_5,TVEMPFxTV4_1,TVEMPFxTV4_2,TVEMPFxTV4_3,TVEMPFxTV4_4,TVEMPFxTV4_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
if (($TVRECxTV4_2 == 2 or $TVRECxTV4_5 == 5)   and  $TVEMPFxTV4_1 <> 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV = \"DVB-S – digitaler Sat-Receiver mit 100 Fernsehprogrammen und mehr und eventuell Pay-TV-Angeboten\";
    }
    
if  (($TVRECxTV4_1 == 1 or $TVRECxTV4_5 == 5)   and  $TVEMPFxTV4_2 <> 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV = \"DVB-T, DVB-T2/ SimpliTV - digitales Antennenfernsehen\";
    }
if  (($TVRECxTV4_3 == 3 or $TVRECxTV4_5 == 5)   and  $TVEMPFxTV4_4 <> 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV = \"DVB-C - digitaler Kabel-Receiver mit mehr als 70 Fernsehprogrammen und eventuell Pay-TV-Angeboten\";
    }
if  ($TVRECxTV4_4 == 4   and  $TVEMPFxTV4_5 <> 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV = \"Fernsehen über Telefonleitung (IPTV) wie z.B. A1 TV (aon TV) oder inext.TV\";
    }
//if ($TVRECxTV1_5 == 5) {
//    $i_rec = \"Tripletuner\";    
//}
 $textzs = sprintf(\'Benutzen Sie die Empfangsmöglichkeit von %s des eingebauten Receiver?\',$i_rec);
 setQuestion($textzs);

 ';
<stat>INSERT INTO p26603011_script SET id_question = '404',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV5_1,TVRECxTV5_2,TVRECxTV5_3,TVRECxTV5_4,TVRECxTV5_5,TVEMPFxTV5_1,TVEMPFxTV5_2,TVEMPFxTV5_3,TVEMPFxTV5_4,TVEMPFxTV5_5\");
$allvars = \"TVRECxTV5_1,TVRECxTV5_2,TVRECxTV5_3,TVRECxTV5_4,TVRECxTV5_5,TVEMPFxTV5_1,TVEMPFxTV5_2,TVEMPFxTV5_3,TVEMPFxTV5_4,TVEMPFxTV5_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }
    $i_rec = \"\";
if (($TVRECxTV5_2 == 2 or $TVRECxTV5_5 == 5)   and  $TVEMPFxTV5_1 <> 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV = \"DVB-S – digitaler Sat-Receiver mit 100 Fernsehprogrammen und mehr und eventuell Pay-TV-Angeboten\";
    }
    
if  (($TVRECxTV5_1 == 1 or $TVRECxTV5_5 == 5)   and  $TVEMPFxTV5_2 <> 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV = \"DVB-T, DVB-T2/ SimpliTV - digitales Antennenfernsehen\";
    }
if  (($TVRECxTV5_3 == 3 or $TVRECxTV5_5 == 5)   and  $TVEMPFxTV5_4 <> 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV = \"DVB-C - digitaler Kabel-Receiver mit mehr als 70 Fernsehprogrammen und eventuell Pay-TV-Angeboten\";
    }
if  ($TVRECxTV5_4 == 4   and  $TVEMPFxTV5_5 <> 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV = \"Fernsehen über Telefonleitung (IPTV) wie z.B. A1 TV (aon TV) oder inext.TV\";
    }
//if ($TVRECxTV1_5 == 5) {
//    $i_rec = \"Tripletuner\";    
//}
 $textzs = sprintf(\'Benutzen Sie die Empfangsmöglichkeit von %s des eingebauten Receiver?\',$i_rec);
 setQuestion($textzs);

 ';
<stat>INSERT INTO p26603011_script SET id_question = '430',id_event = '2',script = '$checkvar = getVar(\"TVRECxTV6_1,TVRECxTV6_2,TVRECxTV6_3,TVRECxTV6_4,TVRECxTV6_5,TVEMPFxTV6_1,TVEMPFxTV6_2,TVEMPFxTV6_3,TVEMPFxTV6_4,TVEMPFxTV6_5\");
$allvars = \"TVRECxTV6_1,TVRECxTV6_2,TVRECxTV6_3,TVRECxTV6_4,TVRECxTV6_5,TVEMPFxTV6_1,TVEMPFxTV6_2,TVEMPFxTV6_3,TVEMPFxTV6_4,TVEMPFxTV6_5\";
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
//    echo $itemvar.\"-\".$$itemvar.\" \";   
         }

    $i_rec = \"\";
if (($TVRECxTV6_2 == 2 or $TVRECxTV6_5 == 5)   and  $TVEMPFxTV6_1 <> 1) {
    $i_rec .= \"- DVB-S -\";
    $i_TV = \"DVB-S – digitaler Sat-Receiver mit 100 Fernsehprogrammen und mehr und eventuell Pay-TV-Angeboten\";
    }
    
if  (($TVRECxTV6_1 == 1 or $TVRECxTV6_5 == 5)   and  $TVEMPFxTV6_2 <> 2) {
    $i_rec .= \"- DVB-T/T2 -\";
    $i_TV = \"DVB-T, DVB-T2/ SimpliTV - digitales Antennenfernsehen\";
    }
if  (($TVRECxTV6_3 == 3 or $TVRECxTV6_5 == 5)   and  $TVEMPFxTV6_4 <> 4) {
    $i_rec .= \"- DVB-C -\";
    $i_TV = \"DVB-C - digitaler Kabel-Receiver mit mehr als 70 Fernsehprogrammen und eventuell Pay-TV-Angeboten\";
    }
if  ($TVRECxTV6_4 == 4   and  $TVEMPFxTV6_5 <> 5) {
    $i_rec .= \"- IP-TV -\";
    $i_TV = \"Fernsehen über Telefonleitung (IPTV) wie z.B. A1 TV (aon TV) oder inext.TV\";
    }
//if ($TVRECxTV1_5 == 5) {
//    $i_rec = \"Tripletuner\";    
//}
 $textzs = sprintf(\'Benutzen Sie die Empfangsmöglichkeit von %s des eingebauten Receiver?\',$i_rec);
 setQuestion($textzs);

 ';
<stat>INSERT INTO p26603011_script SET id_question = '353',id_event = '1',script = '    $txtchck = sprintf(\'TVFUNCxTV3_9,TVFUNCxTV3_10,TVFUNCxTV3_11,TVFUNCxTV3_12,TVFUNCxTV3_13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    saveVar(sprintf(\'tRCINTxTV3_9=NULL\'));
    saveVar(sprintf(\'tRCINTxTV3_10=NULL\'));
    saveVar(sprintf(\'tRCINTxTV3_11=NULL\'));
    saveVar(sprintf(\'tRCINTxTV3_12=NULL\'));
    saveVar(sprintf(\'tRCINTxTV3_13=NULL\'));
    saveVar(sprintf(\'tRCINTxTV3_1=NULL\'));
    
    
        if ($TVFUNCxTV3_9 == 9) {            
            saveVar(sprintf(\'tRCINTxTV3_9=9\'));
            saveVar(sprintf(\'tRCINTxTV3_1=1\'));
        }
        if ($TVFUNCxTV3_10 == 10) {            
            saveVar(sprintf(\'tRCINTxTV3_10=10\'));
            saveVar(sprintf(\'tRCINTxTV3_1=1\'));
        }
        if ($TVFUNCxTV3_11 == 11) {            
            saveVar(sprintf(\'tRCINTxTV3_11=11\'));
            saveVar(sprintf(\'tRCINTxTV3_1=1\'));
        }
        if ($TVFUNCxTV3_12 == 12) {            
            saveVar(sprintf(\'tRCINTxTV3_12=12\'));
            saveVar(sprintf(\'tRCINTxTV3_1=1\'));
        }
        if ($TVFUNCxTV3_13 == 13) {            
            saveVar(sprintf(\'tRCINTxTV3_13=13\'));
            saveVar(sprintf(\'tRCINTxTV3_1=1\'));
        }

';
<stat>INSERT INTO p26603011_script SET id_question = '374',id_event = '1',script = '    $txtchck = sprintf(\'TVFUNCxTV4_9,TVFUNCxTV4_10,TVFUNCxTV4_11,TVFUNCxTV4_12,TVFUNCxTV4_13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    saveVar(sprintf(\'tRCINTxTV4_9=NULL\'));
    saveVar(sprintf(\'tRCINTxTV4_10=NULL\'));
    saveVar(sprintf(\'tRCINTxTV4_11=NULL\'));
    saveVar(sprintf(\'tRCINTxTV4_12=NULL\'));
    saveVar(sprintf(\'tRCINTxTV4_13=NULL\'));
    saveVar(sprintf(\'tRCINTxTV4_1=NULL\'));
    
    
        if ($TVFUNCxTV4_9 == 9) {            
            saveVar(sprintf(\'tRCINTxTV4_9=9\'));
            saveVar(sprintf(\'tRCINTxTV4_1=1\'));
        }
        if ($TVFUNCxTV4_10 == 10) {            
            saveVar(sprintf(\'tRCINTxTV4_10=10\'));
            saveVar(sprintf(\'tRCINTxTV4_1=1\'));
        }
        if ($TVFUNCxTV4_11 == 11) {            
            saveVar(sprintf(\'tRCINTxTV4_11=11\'));
            saveVar(sprintf(\'tRCINTxTV4_1=1\'));
        }
        if ($TVFUNCxTV4_12 == 12) {            
            saveVar(sprintf(\'tRCINTxTV4_12=12\'));
            saveVar(sprintf(\'tRCINTxTV4_1=1\'));
        }
        if ($TVFUNCxTV4_13 == 13) {            
            saveVar(sprintf(\'tRCINTxTV4_13=13\'));
            saveVar(sprintf(\'tRCINTxTV4_1=1\'));
        }

';
<stat>INSERT INTO p26603011_script SET id_question = '395',id_event = '1',script = '    $txtchck = sprintf(\'TVFUNCxTV5_9,TVFUNCxTV5_10,TVFUNCxTV5_11,TVFUNCxTV5_12,TVFUNCxTV5_13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    saveVar(sprintf(\'tRCINTxTV5_9=NULL\'));
    saveVar(sprintf(\'tRCINTxTV5_10=NULL\'));
    saveVar(sprintf(\'tRCINTxTV5_11=NULL\'));
    saveVar(sprintf(\'tRCINTxTV5_12=NULL\'));
    saveVar(sprintf(\'tRCINTxTV5_13=NULL\'));
    saveVar(sprintf(\'tRCINTxTV5_1=NULL\'));
    
    
        if ($TVFUNCxTV5_9 == 9) {            
            saveVar(sprintf(\'tRCINTxTV5_9=9\'));
            saveVar(sprintf(\'tRCINTxTV5_1=1\'));
        }
        if ($TVFUNCxTV5_10 == 10) {            
            saveVar(sprintf(\'tRCINTxTV5_10=10\'));
            saveVar(sprintf(\'tRCINTxTV5_1=1\'));
        }
        if ($TVFUNCxTV5_11 == 11) {            
            saveVar(sprintf(\'tRCINTxTV5_11=11\'));
            saveVar(sprintf(\'tRCINTxTV5_1=1\'));
        }
        if ($TVFUNCxTV5_12 == 12) {            
            saveVar(sprintf(\'tRCINTxTV5_12=12\'));
            saveVar(sprintf(\'tRCINTxTV5_1=1\'));
        }
        if ($TVFUNCxTV5_13 == 13) {            
            saveVar(sprintf(\'tRCINTxTV5_13=13\'));
            saveVar(sprintf(\'tRCINTxTV5_1=1\'));
        }

';
<stat>INSERT INTO p26603011_script SET id_question = '416',id_event = '1',script = '    $txtchck = sprintf(\'TVFUNCxTV6_9,TVFUNCxTV6_10,TVFUNCxTV6_11,TVFUNCxTV6_12,TVFUNCxTV6_13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    saveVar(sprintf(\'tRCINTxTV6_9=NULL\'));
    saveVar(sprintf(\'tRCINTxTV6_10=NULL\'));
    saveVar(sprintf(\'tRCINTxTV6_11=NULL\'));
    saveVar(sprintf(\'tRCINTxTV6_12=NULL\'));
    saveVar(sprintf(\'tRCINTxTV6_13=NULL\'));
    saveVar(sprintf(\'tRCINTxTV6_1=NULL\'));
    
    
        if ($TVFUNCxTV6_9 == 9) {            
            saveVar(sprintf(\'tRCINTxTV6_9=9\'));
            saveVar(sprintf(\'tRCINTxTV6_1=1\'));
        }
        if ($TVFUNCxTV6_10 == 10) {            
            saveVar(sprintf(\'tRCINTxTV6_10=10\'));
            saveVar(sprintf(\'tRCINTxTV6_1=1\'));
        }
        if ($TVFUNCxTV6_11 == 11) {            
            saveVar(sprintf(\'tRCINTxTV6_11=11\'));
            saveVar(sprintf(\'tRCINTxTV6_1=1\'));
        }
        if ($TVFUNCxTV6_12 == 12) {            
            saveVar(sprintf(\'tRCINTxTV6_12=12\'));
            saveVar(sprintf(\'tRCINTxTV6_1=1\'));
        }
        if ($TVFUNCxTV6_13 == 13) {            
            saveVar(sprintf(\'tRCINTxTV6_13=13\'));
            saveVar(sprintf(\'tRCINTxTV6_1=1\'));
        }

';
<stat>INSERT INTO p26603011_script SET id_question = '136',id_event = '1',script = '$txtchck = sprintf(\'verng2,verng2_opn,intnr_1,methode\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
if ($verng2 == 2) {
    
        saveVar(sprintf(\'vernr_1=\"%s\"\',$verng2_opn));
    
    } else {
 
       saveVar(sprintf(\'vernr_1=\"%s\"\',$intnr_1));       
        
        }
if ($methode==2) setQuestion(\"Tragen Sie die pool_id der verwendeten Pool Nummer ein. Sollten sie keine Pool Nummer verwendet haben, tragen Sie bitte 0 ein.\");';
<stat>INSERT INTO p26603011_script SET id_question = '29',id_event = '2',script = '$i_txtrcint = \"Wurde auf diesem Receiver <1> die Original-Senderliste beibelassen?
    (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";

    $txtchck = sprintf(\'RCINTxTV1,ZSRECxTV1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV1 == 1 and $ZSRECxTV1 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV1 == 1 and ($ZSRECxTV1 == 1 or $ZSRECxTV1 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV1 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Wurde auf diesem integrierten Receiver\" . $i_txtrcintnv . \"
     die Original-Senderliste beibelassen? (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '30',id_event = '2',script = '$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem <1>.Receiver
    am <1>.Fernsehgerät durchgeführt?\";

    $txtchck = sprintf(\'RCINTxTV1,ZSRECxTV1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV1 == 1 and $ZSRECxTV1 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV1 == 1 and ($ZSRECxTV1 == 1 or $ZSRECxTV1 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV1 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem integrierten Receiver\"
    . $i_txtrcintnv . \"am <1>.Fernsehgerät durchgeführt?\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '253',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP3 == 12) {  
        saveVar(sprintf(\'BERUFxP3=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '992',id_event = '1',script = 'saveVar(\"TV2_1=2\");';
<stat>INSERT INTO p26603011_script SET id_question = '1048',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"300px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '174',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
    for ($i=1;$i<=19;$i++) {      // Schleife für Empfangsarten
    //            saveVar(sprintf(\'TVFUNC_%d=NULL\',$i));
    
        $txtchck = sprintf(\'TVFUNCxTV2_%d\',$i);
        $checkvar = getVar($txtchck);
        $allvars = $txtchck;
            foreach (explode(\",\",$allvars) as $itemvar) {
                   $$itemvar = $checkvar[$itemvar] ;
            }
     $result = eval(sprintf(\'return ($TVFUNCxTV2_%d == %d);\', $i,$i));
            if ($result) {            
                saveVar(sprintf(\'RCFUNCxTV2x1_%d=%d\',$i,$i));
            }
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '451',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
    for ($i=1;$i<=19;$i++) {      // Schleife für Empfangsarten
    //            saveVar(sprintf(\'TVFUNC_%d=NULL\',$i));
    
        $txtchck = sprintf(\'TVFUNCxTV3_%d\',$i);
        $checkvar = getVar($txtchck);
        $allvars = $txtchck;
            foreach (explode(\",\",$allvars) as $itemvar) {
                   $$itemvar = $checkvar[$itemvar] ;
            }
     $result = eval(sprintf(\'return ($TVFUNCxTV3_%d == %d);\', $i,$i));
            if ($result) {            
                saveVar(sprintf(\'RCFUNCxTV1x3_%d=%d\',$i,$i));
            }
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '457',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
    for ($i=1;$i<=19;$i++) {      // Schleife für Empfangsarten
    //            saveVar(sprintf(\'TVFUNC_%d=NULL\',$i));
    
        $txtchck = sprintf(\'TVFUNCxTV4_%d\',$i);
        $checkvar = getVar($txtchck);
        $allvars = $txtchck;
            foreach (explode(\",\",$allvars) as $itemvar) {
                   $$itemvar = $checkvar[$itemvar] ;
            }
     $result = eval(sprintf(\'return ($TVFUNCxTV4_%d == %d);\', $i,$i));
            if ($result) {            
                saveVar(sprintf(\'RCFUNCxTV4x1_%d=%d\',$i,$i));
            }
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '463',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
    for ($i=1;$i<=19;$i++) {      // Schleife für Empfangsarten
    //            saveVar(sprintf(\'TVFUNC_%d=NULL\',$i));
    
        $txtchck = sprintf(\'TVFUNCxTV5_%d\',$i);
        $checkvar = getVar($txtchck);
        $allvars = $txtchck;
            foreach (explode(\",\",$allvars) as $itemvar) {
                   $$itemvar = $checkvar[$itemvar] ;
            }
     $result = eval(sprintf(\'return ($TVFUNCxTV5_%d == %d);\', $i,$i));
            if ($result) {            
                saveVar(sprintf(\'RCFUNCxTV5x1_%d=%d\',$i,$i));
            }
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '469',id_event = '1',script = '    $txtchck = sprintf(\'RCINTxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
    for ($i=1;$i<=19;$i++) {      // Schleife für Empfangsarten
    //            saveVar(sprintf(\'TVFUNC_%d=NULL\',$i));
    
        $txtchck = sprintf(\'TVFUNCxTV6_%d\',$i);
        $checkvar = getVar($txtchck);
        $allvars = $txtchck;
            foreach (explode(\",\",$allvars) as $itemvar) {
                   $$itemvar = $checkvar[$itemvar] ;
            }
     $result = eval(sprintf(\'return ($TVFUNCxTV6_%d == %d);\', $i,$i));
            if ($result) {            
                saveVar(sprintf(\'RCFUNCxTV6x1_%d=%d\',$i,$i));
            }
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '176',id_event = '2',script = '$i_txtrcint = \"Wurde auf diesem Receiver <1> die Original-Senderliste beibelassen?
    (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";

    $txtchck = sprintf(\'RCINTxTV2,ZSRECxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV2 == 1 and $ZSRECxTV2 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Wurde auf diesem integrierten Receiver\" . $i_txtrcintnv . \"
     die Original-Senderliste beibelassen? (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '453',id_event = '2',script = '$i_txtrcint = \"Wurde auf diesem Receiver <1> die Original-Senderliste beibelassen?
    (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";

    $txtchck = sprintf(\'RCINTxTV3,ZSRECxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV3 == 1 and $ZSRECxTV3 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Wurde auf diesem integrierten Receiver\" . $i_txtrcintnv . \"
     die Original-Senderliste beibelassen? (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '459',id_event = '2',script = '$i_txtrcint = \"Wurde auf diesem Receiver <1> die Original-Senderliste beibelassen?
    (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";

    $txtchck = sprintf(\'RCINTxTV4,ZSRECxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV4 == 1 and $ZSRECxTV4 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Wurde auf diesem integrierten Receiver\" . $i_txtrcintnv . \"
     die Original-Senderliste beibelassen? (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '465',id_event = '2',script = '$i_txtrcint = \"Wurde auf diesem Receiver <1> die Original-Senderliste beibelassen?
    (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";

    $txtchck = sprintf(\'RCINTxTV5,ZSRECxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV5 == 1 and $ZSRECxTV5 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Wurde auf diesem integrierten Receiver\" . $i_txtrcintnv . \"
     die Original-Senderliste beibelassen? (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '471',id_event = '2',script = '$i_txtrcint = \"Wurde auf diesem Receiver <1> die Original-Senderliste beibelassen?
    (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";

    $txtchck = sprintf(\'RCINTxTV6,ZSRECxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV6 == 1 and $ZSRECxTV6 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Wurde auf diesem integrierten Receiver\" . $i_txtrcintnv . \"
     die Original-Senderliste beibelassen? (Wurden die Sender nicht nach eigenen Wünschen umsortiert?)\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '177',id_event = '2',script = '$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem <1>.Receiver
    am <2>.Fernsehgerät durchgeführt?\";

    $txtchck = sprintf(\'RCINTxTV2,ZSRECxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV2 == 1 and $ZSRECxTV2 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem integrierten Receiver\"
    . $i_txtrcintnv . \"am <2>.Fernsehgerät durchgeführt?\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '454',id_event = '2',script = '$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem <1>.Receiver
    am <3>.Fernsehgerät durchgeführt?\";

    $txtchck = sprintf(\'RCINTxTV3,ZSRECxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV3 == 1 and $ZSRECxTV3 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem integrierten Receiver\"
    . $i_txtrcintnv . \"am <3>.Fernsehgerät durchgeführt?\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '460',id_event = '2',script = '$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem <1>.Receiver
    am <4>.Fernsehgerät durchgeführt?\";

    $txtchck = sprintf(\'RCINTxTV4,ZSRECxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV4 == 1 and $ZSRECxTV4 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem integrierten Receiver\"
    . $i_txtrcintnv . \"am <4>.Fernsehgerät durchgeführt?\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '466',id_event = '2',script = '$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem <1>.Receiver
    am <5>.Fernsehgerät durchgeführt?\";

    $txtchck = sprintf(\'RCINTxTV5,ZSRECxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV5 == 1 and $ZSRECxTV5 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem integrierten Receiver\"
    . $i_txtrcintnv . \"am <5>.Fernsehgerät durchgeführt?\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '472',id_event = '2',script = '$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem <1>.Receiver
    am <6>.Fernsehgerät durchgeführt?\";

    $txtchck = sprintf(\'RCINTxTV6,ZSRECxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV6 == 1 and $ZSRECxTV6 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Haben Sie schon einmal ein Update der Kanal-/Senderliste bei Ihrem integrierten Receiver\"
    . $i_txtrcintnv . \"am <6>.Fernsehgerät durchgeführt?\";      }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '179',id_event = '2',script = '$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie eine solche Smartcard? (SMARTCARD-TYP NOTIEREN)\";

    $txtchck = sprintf(\'RCINTxTV2,ZSRECxTV2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV2 == 1 and $ZSRECxTV2 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV2 == 1 and ($ZSRECxTV2 == 1 or $ZSRECxTV2 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV2 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie bei Ihrem integrierten Receiver\". $i_txtrcintnv . \" eine solche Smartcard?
    (SMARTCARD-TYP NOTIEREN)\";      
    }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '474',id_event = '2',script = '$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie eine solche Smartcard? (SMARTCARD-TYP NOTIEREN)\";

    $txtchck = sprintf(\'RCINTxTV6,ZSRECxTV6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV6 == 1 and $ZSRECxTV6 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV6 == 1 and ($ZSRECxTV6 == 1 or $ZSRECxTV6 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV6 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie bei Ihrem integrierten Receiver\". $i_txtrcintnv . \" eine solche Smartcard?
    (SMARTCARD-TYP NOTIEREN)\";      
    }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '456',id_event = '2',script = '$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie eine solche Smartcard? (SMARTCARD-TYP NOTIEREN)\";

    $txtchck = sprintf(\'RCINTxTV3,ZSRECxTV3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV3 == 1 and $ZSRECxTV3 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV3 == 1 and ($ZSRECxTV3 == 1 or $ZSRECxTV3 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV3 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie bei Ihrem integrierten Receiver\". $i_txtrcintnv . \" eine solche Smartcard?
    (SMARTCARD-TYP NOTIEREN)\";      
    }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '462',id_event = '2',script = '$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie eine solche Smartcard? (SMARTCARD-TYP NOTIEREN)\";

    $txtchck = sprintf(\'RCINTxTV4,ZSRECxTV4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV4 == 1 and $ZSRECxTV4 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV4 == 1 and ($ZSRECxTV4 == 1 or $ZSRECxTV4 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV4 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie bei Ihrem integrierten Receiver\". $i_txtrcintnv . \" eine solche Smartcard?
    (SMARTCARD-TYP NOTIEREN)\";      
    }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '468',id_event = '2',script = '$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie eine solche Smartcard? (SMARTCARD-TYP NOTIEREN)\";

    $txtchck = sprintf(\'RCINTxTV5,ZSRECxTV5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
    $i_txtrcintnv = \"\";
if ($RCINTxTV5 == 1 and $ZSRECxTV5 == 2) {
    $i_txtrcintnv = \", den Sie nicht verwenden, \";
    }
//    if ($RCINTxTV5 == 1 and ($ZSRECxTV5 == 1 or $ZSRECxTV5 == 3)) { // Wenn internerner Rec in Verwendung
    if ($RCINTxTV5 == 1) {        //Sobald int rec vorhanden
$i_txtrcint = \"Es gibt ja einige Sender, die nicht frei empfangbar sind, sondern verschlüsselt
    ausgestrahlt werden. Um diese Sender sehen zu können, benötigt man eine so genannte Smartcard.
    Diese sieht in etwa aus wie die e-Card und muss in den Digitalreceiver gesteckt werden.
    Benutzen Sie bei Ihrem integrierten Receiver\". $i_txtrcintnv . \" eine solche Smartcard?
    (SMARTCARD-TYP NOTIEREN)\";      
    }

setQuestion($i_txtrcint);';
<stat>INSERT INTO p26603011_script SET id_question = '363',id_event = '4',script = 'saveVar(\"ANZRECxTV3_1=\" . rand(1,5));';
<stat>INSERT INTO p26603011_script SET id_question = '384',id_event = '4',script = 'saveVar(\"ANZRECxTV4_1=\" . rand(1,5));';
<stat>INSERT INTO p26603011_script SET id_question = '405',id_event = '4',script = 'saveVar(\"ANZRECxTV5_1=\" . rand(1,5));';
<stat>INSERT INTO p26603011_script SET id_question = '431',id_event = '4',script = 'saveVar(\"ANZRECxTV6_1=\" . rand(1,5));';
<stat>INSERT INTO p26603011_script SET id_question = '211',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=1;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }
';
<stat>INSERT INTO p26603011_script SET id_question = '47',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=0;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }
    
';
<stat>INSERT INTO p26603011_script SET id_question = '212',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=2;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '213',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=3;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '214',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=4;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '215',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=5;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '216',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=6;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '217',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=7;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '218',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=8;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '219',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=9;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '220',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=10;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '221',id_event = '1',script = 'for ($j=1;$j<=42;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=11;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '222',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=12;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '223',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=13;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '224',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=14;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '225',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=15;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '226',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=16;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '227',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=17;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '228',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=18;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '229',id_event = '1',script = 'for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=19;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
    }';
<stat>INSERT INTO p26603011_script SET id_question = '679',id_event = '1',script = '/*
for ($j=1;$j<=43;$j++) {
       saveVar(sprintf(\'SENDPLx00_%d=0\',$j));
    }
for ($i=1;$i<=0;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,SENDPLx1\',$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
              if ( $$itemvar <> 37 and $$itemvar <> 42 and $$itemvar <> 0) //\'SKY\' und \'nichts davon\' ausnehmen
               {
                 saveVar(sprintf(\'SENDPLx00_%d=%d\',$$itemvar,$$itemvar));
              }
    }
}
*/';
<stat>INSERT INTO p26603011_script SET id_question = '682',id_event = '1',script = 'for ($i=1;$i<=1;$i++) {
    $txtchck = sprintf(\'SENDPLx%d,HDx%d,ATDEx%d\',$i,$i,$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        if ($$itemvar != NULL) {
//        echo $itemvar.\" = \".$$itemvar.\"<br>\"; 
        }
    }
}
';
<stat>INSERT INTO p26603011_script SET id_question = '795',id_event = '1',script = '    $txtchck = sprintf(\'kf14x1_1,kf14x1_2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($kf14x1_1 == 1) {
        saveVar(sprintf(\'ksnipf16=1\'));
    }
    elseif ($kf14x1_2 == 2) {
        saveVar(sprintf(\'ksnipf16=2\'));
    }';
<stat>INSERT INTO p26603011_script SET id_question = '797',id_event = '1',script = '    $txtchck = sprintf(\'kf14x1_1,kf14x1_2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($kf14x1_1 == 1) {
        saveVar(sprintf(\'ksnipf17=1\'));
    }
    elseif ($kf14x1_2 == 2) {
        saveVar(sprintf(\'ksnipf17=2\'));
    }';
<stat>INSERT INTO p26603011_script SET id_question = '793',id_event = '1',script = '    $txtchck = sprintf(\'kf14x1_1,kf14x1_2\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($kf14x1_1 == 1) {
        saveVar(sprintf(\'ksnipf15=1\'));
    }
    elseif ($kf14x1_2 == 2) {
        saveVar(sprintf(\'ksnipf15=2\'));
    }';
<stat>INSERT INTO p26603011_script SET id_question = '945',id_event = '2',script = '/*
Inhalt der Spalte Variable1 (z.B. f1_1) aus der Structure-Tabelle auslesen
und in $Variable ($f1_1) speichern
*/
    $txtchck = sprintf(\'cf13\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

 $i_IVins_txt = \'Falls derzeit berufstätig: Wie sehr trifft das Folgende auf Sie zu?
     (Falls früher berufstätig gewesen/falls in Zukunft berufstätig:  
     Wie sehr traf das Folgende auf Sie zu: Ich musste .../ Ich werde… müssen….) (Karte)(Durchfragen)\';
 /*
In den php Block beforedisplay einbauen,
sonst wird der Text auch eingeblendet wenn die Frage z.B. durch einen Filter in nicht angezeigt wird
*/
    if ($cf13 == 1) {
        $i_IVins_txt = \'Wie sehr trifft das Folgende auf Sie zu?\';
    } else if ($cf13 == 2) {
        $i_IVins_txt = \'Wie sehr traf das Folgende auf Sie zu?<br><span style=\"background-color: rgb(255, 255, 0);\">(Fragen umformulieren:)</span> Ich musste ...\';
    } else if ($cf13 == 3) {
        $i_IVins_txt = \'Wie sehr trifft das Folgende auf Sie zu?<br><span style=\"background-color: rgb(255, 255, 0);\">(Fragen umformulieren:)</span> Ich werde ... müssen ... .\';
    }
    

setQuestion($i_IVins_txt);

';
<stat>INSERT INTO p26603011_script SET id_question = '101',id_event = '1',script = '    $txtchck = sprintf(\'AGE_1,SEX\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }


        saveVar(sprintf(\'AGExP1_1=%d\',$AGE_1));
        saveVar(sprintf(\'SEXxP1=%d\',$SEX));';
<stat>INSERT INTO p26603011_script SET id_question = '106',id_event = '1',script = 'saveVar(sprintf(\'NRRESP=1\'));';
<stat>INSERT INTO p26603011_script SET id_question = '948',id_event = '1',script = '$txtchck = sprintf(\'Projektdaten_6,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_16,Projektdaten_19,kondata_5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_16 <> \'ver\' && ($Projektdaten_17 == 1 || $Projektdaten_17 == 0)) {
    saveVar(sprintf(\'kondata_1=\"%s\"\',$Projektdaten_9));
    saveVar(sprintf(\'kondata_2=\"%s\"\',$Projektdaten_12));
    saveVar(sprintf(\'kondata_3=\"%s\"\',$Projektdaten_11));
    saveVar(sprintf(\'kondata_4=\"%s\"\',$Projektdaten_19));
    saveVar(sprintf(\'kondata_5=\"%s\"\',$Projektdaten_13));
    saveVar(sprintf(\'kondata_6=\"%s\"\',$Projektdaten_14));
}

saveVar(\"Projektdaten_16=\'ver\'\");

$bld = $Projektdaten_6;
$bldstat = array(\"ges\",8,7,5,4,2,6,1,3,9);
/*
if ($Projektdaten_6 != \"\" and $Projektdaten_11 != \"\" and $Projektdaten_12 != \"\") {
    $plz = $Projektdaten_12;
    $table = \"strassen_ges\";
    $filter = \"WHERE `Straßenname` = \'\".$Projektdaten_11.\"\' and Postleitzahl = \".$plz.\" and bld = \".$bldstat[$bld];
    
    $Variable = getVarFromTable( $table , \"id\", $filter);

    if (isset($Variable[0][\"id\"])) {
        $id_street = $Variable[0][\"id\"];
    } else {
         $id_street = 0;
    }
}
*/
if ($Projektdaten_17 == 1 || $Projektdaten_17 == 0) {
    $id_street = 0;
}
if ($Projektdaten_11== \"Blumenweg\" and $Projektdaten_12 == 1811) {
     $id_street = 999999;
    }
/*
if ($kontakt[\"kondata_5\"] == null) {
    saveVar(\"kondata_3=\".$Projektdaten_12); //PLZ
    saveVar(\"kondata_4=\'\".$Projektdaten_11.\"\'\"); // Straße
    saveVar(\"kondata_5=\'\".$Projektdaten_19.\"\'\"); // Straße_Zusatz
    saveVar(\"kondata_6=\'\".$Projektdaten_13.\"\'\"); // Ort
    saveVar(\"kondata_9=\".$id_street); // idStreet
}
*/
$projname = $_SESSION[\"projname\"];
$questname = \"strasse\";
//echo \'<input id=plzID type=\"hidden\" name=\"forStreet\" value=\"\'.$plz.\'\">\';
echo \'<input id=bldID type=\"hidden\" name=\"forStreet\" value=\"\'.$bld.\'\">\';
echo \'<input id=frageID type=\"hidden\" name=\"forStreet\" value=\"\'.$questname.\'\">\';

';
<stat>INSERT INTO p26603011_script SET id_question = '948',id_event = '2',script = '//var_dump($_SESSION);
';
<stat>INSERT INTO p26603011_script SET id_question = '948',id_event = '3',script = 'document.getElementById(\"ct_kondata_8\").style.display=\"none\";
$(function() {
    var tbID = $(\"#ct_kondata_8\"),
        tbStrn = $(\"#ct_kondata_3\"),
        plz = $(\"#ct_kondata_2\"),
        ort = $(\"#ct_kondata_5\"),
        bld = $(\"#bldID\"),
        frage = $(\"#frageID\");
    tbStrn.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                 url: \"../../webIfesProjects/CustomSkripts/lookups/lookup_street.php\",
                dataType: \"json\",
                data: {
                    query: request.term,
                    bld: bld.val(),
                    plz: plz.val()
                },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.value);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbStrn.val(ui.item.str_ret);
            plz.val(ui.item.plz_ret);
            ort.val(ui.item.ort_ret);
            return false;
        }
    });
    
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });

    if (found.length > 0) {
//        tbStrn.parent().prev().html(\"Straßenname: \" + found[0].label);
        tbStrn.parent().prev().html(\"<p id=\\\"strassenname\\\">Bitte nach Straßenname suchen...</p>\");
    } else {
        tbStrn.parent().prev().html(\"<p id=\\\"strassenname\\\">Bitte nach Straßenname suchen...<br>\"+
                                    \"Geben Sie zumindest drei Buchstaben des Straßennames ein um die Suche zu starten</p>\");
    }
});';
<stat>INSERT INTO p26603011_script SET id_question = '18',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"300px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '950',id_event = '2',script = '/*
$txtchck = sprintf(\'user_id,Projektdaten_2,Projektdaten_4,Projektdaten_5\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
$i_userid = reset(getVar(\"user_id\"));
$i_projectid = $_SESSION[\"id_project\"];
if ($i_userid==0) {
    $i_projectid = 309; //Test MTU 2.HJ 2017
    $i_userid = 57; // 135 test, 57 Boden
    $Projektdaten_4 = 820919;
    }

if ($user_id == 0) {$visitsTable = \"_Capi_interviewer_visits\"; } else {$visitsTable = \"_capi_interviewer_visits\"; }
if ($user_id == 0) {$ProjectsTable = \"_Projects\"; } else {$ProjectsTable = \"_projects\"; }
if ($user_id == 0) {$AddressTables = \"_CapiTables\"; } else {$AddressTables = \"_capitables\"; }

$i_tableIds = getVarFromTable($ProjectsTable, \"proj_name,naziv_proj,id_capiTable\", \"WHERE id = \".$i_projectid);
$i_AddressTableInfo = getVarFromTable($AddressTables, \"name\", \"WHERE id = \".$i_tableIds[0][\"id_capiTable\"]);

$s_projname = $_SESSION[\"proj_name\"];
$s_structure = $s_projname.\"_structure\";
$s_sample = $s_projname.\"___sample\";
$s_address = \"capi___\".$i_AddressTableInfo[0][\"name\"];
/*
echo \"<pre>\";
//var_dump($_SESSION);
echo \'$i_userid:\'.$i_userid.\"<br>\";
echo \'$i_projectid:\'.$i_projectid.\"<br>\";
echo \'$s_projname:\'.$s_projname.\"<br>\";
echo \'$user_id:\'.$user_id.\"<br>\";
echo \'$Projektdaten_2:\'.$Projektdaten_2.\"<br>\";
echo \'$Projektdaten_4:\'.$Projektdaten_4.\"-\".$Projektdaten_5.\"<br>\";
echo \"</pre>\";
*/
/*
$i_address = getVarFromTable($s_address, \"id,municipality,id_settlement,name\",
    \"WHERE id_municipality= \".$Projektdaten_2.
    \" and municipality= \".$Projektdaten_4);

$questtxt = \"<table  align=\'left\' style=\'text-align: center;font-size:70%;\'>
    <tr><th>Listennummer: \".$Projektdaten_4.\"</th></tr>\";
$questtxt .=\"
    <tr><th style=\'padding-left: 15px;padding-right: 15px;\'>LfdNr.</th>
    <th style=\'padding-left: 15px;padding-right: 15px;\'>Name.</th>
    <th style=\'padding-left: 15px;padding-right: 15px;\'>Anzahl Kontakte</th>
    <th style=\'padding-left: 15px;padding-right: 15px;\'>letzter Kontakt</th></tr>\";

foreach ($i_address as $adresse) {
    //var_dump($kontakt);
    if ($user_id == 0) {$s_sample = \"p27293105___sample\"; } // TEST
    $i_sample = getVarFromTable($s_sample, \"id,user_id\",
        \"WHERE id_sample= \".$adresse[\"id\"]);
    $i_contacts = getVarFromTable($visitsTable, \"sample_point,cas_obiska,status_obiska,id_structure,user_id\",
    \"WHERE user_id =\".$i_userid.
    \" and id_project = \".$i_projectid.
     \" and sample_point = \".$i_sample[0][\"id\"]);
if ($i_sample[0][\"user_id\"] == $user_id || $user_id == 0 ) {
$questtxt .= \"<tr><td>\".$adresse[\"id_settlement\"] .\"</td><td style=\'text-align: left;\'>\"
          . $adresse[\"name\"].\"</td>\";
  
    if ($i_contacts) {
       $i_count_con = 0;
        foreach ($i_contacts as $Kontakt) {
            $i_count_con ++;
            switch($Kontakt[status_obiska]) {
                case 1:
                    $kontxt = \"Interview abgeschlossen\";
                    break;
                case 9:
                    $kontxt = \"Interview unterbrochen\";
                    break;
                case 21:
                    $kontxt = \"Niemand erreicht/angetroffen\";
                    break;
                case 22:
                    $kontxt = \"Rückruf\";
                    break;
                case 8:
                    $kontxt = \"Terminvereinbarung\";
                    break;
                case 23:
                    $kontxt = \"Verweigerung bei 1.Kontakt\";
                    break;
                case 24:
                    $kontxt = \"Verweigerung\";
                    break;
                case 31:
                    $kontxt = \"kritische Verweigerung\";
                    break;
                case 32:
                    $kontxt = \"keine geeignete ZP\";
                    break;
                case 33:
                    $kontxt = \"Adresse unauffindbar\";
                    break;
                case 34:
                    $kontxt = \"ungültige Adresse\";
                    break;
                case 35:
                    $kontxt = \"Adresse unbearbeitet abgelegt\";
                    break;
                default:                    
                    $kontxt = \"unbekannt\";
                }
         }
$questtxt .= \"<td>\".$i_count_con.\"</td><td>\".$kontxt.\"</td>\";        
    }
$questtxt .= \"</tr>\";
    }

 }

$questtxt .= \"</table>\";

setQuestion($questtxt);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");
*/


';
<stat>INSERT INTO p26603011_script SET id_question = '949',id_event = '2',script = '//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

/*
$txtchck = sprintf(\'KvNr,KvTxt_1,KvTxt_2,KvTxt_3,KvTxt_4,KvTxt_5,KvTxt_6,KvTxt_7,KvAnz_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
$icount = 7;
for ($i = 7; $i >= 1; $i--)
     {
        $test = sprintf(\'KvTxt_%d\',$i);
//       echo $test.\"-\".$$test.\"<br>\";
        if (strlen($$test) <= 5)
        {
            $icount = $i-1;
        }
//        echo  $i.\"-\".$$test.\"-\".strlen($$test).\"<br>\";
    }
//echo $icount;
if ($KvAnz_1 == NULL) saveVar(sprintf(\'KvAnz_1=0\'));
 if ($KvNr==99) {
    saveVar(sprintf(\'KvAnz_1=%d\', $icount));
}
// Vorherige Eingaben löschen
$txtchck = sprintf(\'KvNr,kondate_1,konart,konres,konerg,rekondate_1,konver_1,konver_2,konver_3,konver_4,konver_5,konver_6,konver_7,konver_8,konver_9,konver_10,konver_11,konver_12,konver_13,konver_14,konver_opn14,konne,konabschl\');
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
        $test = sprintf(\"$itemvar=NULL\");
        saveVar($test);
    }
*/

$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest = \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest = \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest = \'Sie führen eines von max. 4 bezahlten Einsteigerinterviews durch<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein\';
} else {
    $txtQuest = \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}

$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
echo \"<pre>\";
//var_dump($i_cmplts);
echo \"</pre>\";
$lfdsInLinr = array();
$count_linr = 0;
$cmplt_linr = 0;
$count_him = 0;
$count_her = 0;
$count_young = 0;
$count_old = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {
           $cmplt_linr++;
           $lfdsInLinr[] = $value[\"Projektdaten_5\"];
               if ($value[\"Projektdaten_17\"] == \"2\" || $value[\"Projektdaten_17\"] == \"0\") {
                   if($value[\"SEX\"] == \"1\") {
                       $count_him++;
                   } else if ($value[\"SEX\"] == \"2\") {
                       $count_her++;
                   }
                   if($value[\"AGE_1\"] > 15 && $value[\"AGE_1\"] <= 45) {
                       $count_young ++;
                   } else if ($value[\"AGE_1\"] >= 46 || $value[\"AGE_1\"] <= 99) {
                       $count_old ++;
                   }
            }
        }
    }
}

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";
//$txtQuest .= \"<br>&nbsp;&nbsp;Insgesamt \".$count_linr.\" Adressen sind bereits abgeschlossen.\";
if ($Projektdaten_17 == 2 || ($Projektdaten_17 == 0 && $i_userid == 135)) {
    $txtQuest .= \"<br><br>Alter und Geschlechtsverteilung:<br>&nbsp;&nbsp;\";
    if ($count_him > $count_her+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_him.\" Männer<br>&nbsp;&nbsp;\";
    if ($count_him > $count_her+1) $txtQuest .= \"</font>\";
    if ($count_her> $count_him +1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_her.\" Frauen<br>&nbsp;&nbsp;\";
    if ($count_her> $count_him +1) $txtQuest .= \"</font>\";
    if ($count_young> $count_old+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_young.\" unter 45<br>&nbsp;&nbsp;\";
    if ($count_young> $count_old+1) $txtQuest .= \"</font>\";
    if ($count_old> $count_young+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_old.\" 45 oder älter<br>\";
    if ($count_old> $count_young+1) $txtQuest .= \"</font>\";
}
    $txtQuest .= \"<br>\";
setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");



';
<stat>INSERT INTO p26603011_script SET id_question = '953',id_event = '1',script = '
$i_userid = reset(getVar(\"user_id\"));
 if ($i_userid != 0)
 {
$i_table_id = reset(getVar(\"id_capi_table\"));
$i_address_id = reset(getVar(\"id_capi_address\"));
$i_sample_id = reset(getVar(\"id_capi_sample\"));

            $projdata[\"Projektname\"]=\"TeleTest Monitoring 2018\";
            $projdata[\"Verrechnungsnummer\"]=\"27293107\";
            $projdata[\"Version\"]=\"1.10.1\";

$i_userid = reset(getVar(\"user_id\"));
$i_info = getVarFromTable(\"_Interviewer\", \"username\", \"WHERE id = $i_userid\");

if (count($i_info) == 1)
    saveVar(\"intnr_1=\'\" . $i_info[0][\"username\"] . \"\'\");

if ($i_table_id != null)
{
    $i_table_name = getVarFromTable(\"_CapiTables\", \"name\", \"WHERE id = \".$i_table_id);
    if (count($i_table_name) == 1)
    {    
        $i_sample_table = \"capi___\" . $i_table_name[0][\"name\"];
    
        $i_address = getVarFromTable($i_sample_table, \"id, id_municipality, municipality, id_settlement, id_street, capi_BL, capi_PB, capi_OG, capi_ID_POST, name, street, addon_address, zip, town\", \"WHERE id = \".$i_address_id);
        if (count($i_address) == 1)
        {
            //$projdata[\"\"]=\"\";
            $projdata[\"Welle\"]=$i_address[0][\"id_municipality\"];
            $projdata[\"LNr\"]=$i_address[0][\"municipality\"];
            $projdata[\"lfdNR\"]=$i_address[0][\"id_settlement\"];
            $projdata[\"BLD\"]=$i_address[0][\"capi_BL\"];
            $projdata[\"PB\"]=$i_address[0][\"capi_PB\"];
            $projdata[\"GK\"]=$i_address[0][\"capi_OG\"];
            $projdata[\"Name\"]=$i_address[0][\"name\"];
            $projdata[\"Vorname\"]=\"\";
            $projdata[\"Adresse\"]=$i_address[0][\"street\"];
            $projdata[\"PLZ\"]=$i_address[0][\"zip\"];
            $projdata[\"Ort\"]=$i_address[0][\"town\"];
            $projdata[\"Telefonnummer\"]=$i_address[0][\"capi_vorwahl\"]. $i_address[0][\"capi_telnr\"];
            $projdata[\"Kontrollvariable\"]=\"\";
            $projdata[\"Adresstyp\"]=$i_address[0][\"id_street\"];
            $projdata[\"ID_POST\"]=$i_address[0][\"capi_ID_POST\"];
            $projdata[\"Hnr\"]=$i_address[0][\"addon_address\"];
        }}}     
 }

if (!($projdata[\"BLD\"] >= 1 && $projdata[\"BLD\"] <= 9)) {
    $projdata[\"BLD\"] = 9;
}
if ($projdata[\"LNr\"] == \"\") {
    $projdata[\"LNr\"]=\"099999\";
    $projdata[\"Adresstyp\"]=1;
};
$i_id = reset(getVar(\"id\"));
if ($projdata[\"lfdNR\"] == \"\") {
    $projdata[\"lfdNR\"]=$i_id;
}
$projdata_json = json_encode($projdata);
saveVar(\"projdata_1=\'\".$projdata_json.\"\'\");

            







';
<stat>INSERT INTO p26603011_script SET id_question = '9',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}
';
<stat>INSERT INTO p26603011_script SET id_question = '45',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '960',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP1_11\"),
        tbLabel = $(\"#op_GEBLANDxP1_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '962',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP1_11\"),
        tbLabel = $(\"#op_GLMUTTxP1_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '961',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP1_11\"),
        tbLabel = $(\"#op_GLVATxP1_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1049',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"300px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1050',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"300px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1051',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"300px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1052',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"300px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1083',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1093',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1084',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1094',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1085',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1095',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1086',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1096',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1087',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}';
<stat>INSERT INTO p26603011_script SET id_question = '1097',id_event = '3',script = 'var inputs = document.getElementsByTagName(\"input\");
for (var i = 0; i < inputs.length; i++) {
    var inpId =  inputs[i].id;
    if (inpId.length>5 & inpId.substring(0, 2)==\"op\") {
        //alert(inpId + \" - \"+ inpId.substring(0, 2));
        document.getElementById(inpId ).style.width = \"500px\";
        document.getElementById(inpId ).style.fontSize = \"14pt\";
    }
}
';
<stat>INSERT INTO p26603011_script SET id_question = '1115',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP3_11\"),
        tbLabel = $(\"#op_STAATSBxP3_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1116',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP4_11\"),
        tbLabel = $(\"#op_STAATSBxP4_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1117',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP5_11\"),
        tbLabel = $(\"#op_STAATSBxP5_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1118',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP6_11\"),
        tbLabel = $(\"#op_STAATSBxP6_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1119',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP7_11\"),
        tbLabel = $(\"#op_STAATSBxP7_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1120',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP8_11\"),
        tbLabel = $(\"#op_STAATSBxP8_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1121',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_STAATSBxP9_11\"),
        tbLabel = $(\"#op_STAATSBxP9_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '267',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP4 == 12) {  
        saveVar(sprintf(\'BERUFxP4=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '274',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP5 == 12) {  
        saveVar(sprintf(\'BERUFxP5=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '281',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP6 == 12) {  
        saveVar(sprintf(\'BERUFxP6=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '288',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP7\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP7 == 12) {  
        saveVar(sprintf(\'BERUFxP7=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '295',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP8\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP8 == 12) {  
        saveVar(sprintf(\'BERUFxP8=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '302',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP9\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP9 == 12) {  
        saveVar(sprintf(\'BERUFxP9=15\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '259',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP3_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP3_1 < 10) {   
        saveVar(sprintf(\'STANDxP3=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '268',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP4_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP4_1 < 10) {   
        saveVar(sprintf(\'STANDxP4=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '275',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP5_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP5_1 < 10) {   
        saveVar(sprintf(\'STANDxP5=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '282',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP6_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP6_1 < 10) {   
        saveVar(sprintf(\'STANDxP6=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '289',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP7_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP7_1 < 10) {   
        saveVar(sprintf(\'STANDxP7=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '296',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP8_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP8_1 < 10) {   
        saveVar(sprintf(\'STANDxP8=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '303',id_event = '1',script = '    $txtchck = sprintf(\'ALTERxP9_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($ALTERxP9_1 < 10) {   
        saveVar(sprintf(\'STANDxP9=1\'));
        }
';
<stat>INSERT INTO p26603011_script SET id_question = '260',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP3_1 == 12) {   
        saveVar(sprintf(\'EDUCxP3=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '269',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP4\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP4_1 == 12) {   
        saveVar(sprintf(\'EDUCxP4=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '276',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP5\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP5_1 == 12) {   
        saveVar(sprintf(\'EDUCxP5=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '283',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP6_1 == 12) {   
        saveVar(sprintf(\'EDUCxP6=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '290',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP7\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP7_1 == 12) {   
        saveVar(sprintf(\'EDUCxP7=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '297',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP8\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP8_1 == 12) {   
        saveVar(sprintf(\'EDUCxP8=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '304',id_event = '1',script = '    $txtchck = sprintf(\'TAETxP9\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($TAETxP9_1 == 12) {   
        saveVar(sprintf(\'EDUCxP9=1\'));
        }';
<stat>INSERT INTO p26603011_script SET id_question = '1123',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP2_11\"),
        tbLabel = $(\"#op_GEBLANDxP2_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1126',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP3_11\"),
        tbLabel = $(\"#op_GEBLANDxP3_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1129',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP4_11\"),
        tbLabel = $(\"#op_GEBLANDxP4_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1132',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP5_11\"),
        tbLabel = $(\"#op_GEBLANDxP5_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1135',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP6_11\"),
        tbLabel = $(\"#op_GEBLANDxP6_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1138',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP7_11\"),
        tbLabel = $(\"#op_GEBLANDxP7_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1141',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP8_11\"),
        tbLabel = $(\"#op_GEBLANDxP8_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1144',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GEBLANDxP9_11\"),
        tbLabel = $(\"#op_GEBLANDxP9_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1124',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP2_11\"),
        tbLabel = $(\"#op_GLMUTTxP2_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1127',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP3_11\"),
        tbLabel = $(\"#op_GLMUTTxP3_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1130',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP4_11\"),
        tbLabel = $(\"#op_GLMUTTxP4_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1133',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP5_11\"),
        tbLabel = $(\"#op_GLMUTTxP5_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1136',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP6_11\"),
        tbLabel = $(\"#op_GLMUTTxP6_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1139',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP7_11\"),
        tbLabel = $(\"#op_GLMUTTxP7_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1142',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP8_11\"),
        tbLabel = $(\"#op_GLMUTTxP8_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1145',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLMUTTxP9_11\"),
        tbLabel = $(\"#op_GLMUTTxP9_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1125',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP2_11\"),
        tbLabel = $(\"#op_GLVATxP2_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1128',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP3_11\"),
        tbLabel = $(\"#op_GLVATxP3_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1131',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP4_11\"),
        tbLabel = $(\"#op_GLVATxP4_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1134',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP5_11\"),
        tbLabel = $(\"#op_GLVATxP5_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1137',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP6_11\"),
        tbLabel = $(\"#op_GLVATxP6_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1140',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP7_11\"),
        tbLabel = $(\"#op_GLVATxP7_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1143',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP8_11\"),
        tbLabel = $(\"#op_GLVATxP8_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1146',id_event = '3',script = '$(function() {
    var tbID = $(\"#op_GLVATxP9_11\"),
        tbLabel = $(\"#op_GLVATxP9_11\");
    tbLabel.autocomplete({
        minLength: 3,
        source: function(request, response) {
            $.ajax({
                url: \"../../webIesProjects/lookups/lookup_iso3166.php\",
                dataType: \"json\",
                data: {
                    query: request.term
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.label);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});';
<stat>INSERT INTO p26603011_script SET id_question = '1194',id_event = '1',script = '    $txtchck = sprintf(\'d1f2a1,d1f2a2,d1f2a3\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($d1f2a1 == 5 or $d1f2a1 == 8 or $d1f2a1 == 9 or
        $d1f2a2 == 5 or $d1f2a2 == 8 or $d1f2a2 == 9 or
        $d1f2a3 == 5 or $d1f2a3 == 8 or $d1f2a3 == 9) {
        saveVar(sprintf(\'d1f2d=1\'));
    } else {
        saveVar(sprintf(\'d1f2d=2\'));
    }
    ';
<stat>INSERT INTO p26603011_script SET id_question = '1196',id_event = '1',script = '    $txtchck = sprintf(\'d1f2a1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($d1f2a1 >= 1 and $d1f2a1 <= 5) {
        saveVar(sprintf(\'d1f2f=1\'));
    } else {
        saveVar(sprintf(\'d1f2f=2\'));
    }
    ';
<stat>INSERT INTO p26603011_script SET id_question = '1232',id_event = '1',script = '    $txtchck = sprintf(\'d1f13,d1f13_opn,d1f13a,d1f13a_opn,d1f13b,d1f13b_opn\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    echo $d1f13_opn,\' \',$d1f13a_opn,\' \',$d1f13b_opn;

    if ($d1f13 != 9) {
        saveVar(sprintf(\'d1f13dummy_1=d1f13_opn/10\'));
    }
    if ($d1f13a != 9) {
        saveVar(sprintf(\'d1f13dummy_2=d1f13a_opn/10\'));
    }
    if ($d1f13b != 9) {
        saveVar(sprintf(\'d1f13dummy_3=d1f13b_opn/10\'));
    }';
<stat>INSERT INTO p26603011_script SET id_question = '1233',id_event = '1',script = '    $txtchck = sprintf(\'d1f13,d1f13_opn,d1f13a,d1f13a_opn,d1f13b,d1f13b_opn\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
//    echo $d1f13_opn,\' \',$d1f13a_opn,\' \',$d1f13b_opn;

    if ($d1f13 != 9) {
        saveVar(sprintf(\'d1f13dummy_1=d1f13_opn/10\'));
    }
    if ($d1f13a != 9) {
        saveVar(sprintf(\'d1f13dummy_2=d1f13a_opn/10\'));
    }
    if ($d1f13b != 9) {
        saveVar(sprintf(\'d1f13dummy_3=d1f13b_opn/10\'));
    }';
<stat>INSERT INTO p26603011_script SET id_question = '1249',id_event = '1',script = '    $txtchck = sprintf(\'SEX\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($SEX == 1) {
        $d1f24ctxt = \"Denken Sie an die derzeitige Situation in der Arbeitswelt. Für wie wahrscheinlich halten Sie es, dass Sie noch einen Beruf ausüben können bis Sie 65 alt sind?\";
    } else {
        $d1f24ctxt = \"Denken Sie an die derzeitige Situation in der Arbeitswelt. Für wie wahrscheinlich halten Sie es, dass Sie noch einen Beruf ausüben können bis Sie 60 alt sind?\";
   }

setQuestion($d1f24ctxt);';
<stat>INSERT INTO p26603011_script SET id_question = '1250',id_event = '2',script = '    $txtchck = sprintf(\'SEX\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($SEX == 1) {
        $d1f24dtxt = \"Warum ist es für Sie aus heutiger Sicht unwahrscheinlich, bis 65 arbeiten zu können?\";
    } else {
        $d1f24dtxt = \"Warum ist es für Sie aus heutiger Sicht unwahrscheinlich, bis 60 arbeiten zu können?\";
   }

setQuestion($d1f24dtxt);';
<stat>INSERT INTO p26603011_script SET id_question = '1251',id_event = '2',script = '    $txtchck = sprintf(\'SEX\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($SEX == 1) {
        $d1f24etxt = \"Was davon könnte es für Sie ermöglichen, bis 65 Jahre im Berufsleben zu bleiben? Egal ob an diesem Arbeitsplatz oder nach einem Wechsel bzw. einer Beförderung. [Interviewer: Vorlesen]\";
    } else {
        $d1f24etxt = \"Was davon könnte es für Sie ermöglichen, bis 60 Jahre im Berufsleben zu bleiben? Egal ob an diesem Arbeitsplatz oder nach einem Wechsel bzw. einer Beförderung. [Interviewer: Vorlesen]\";
   }

setQuestion($d1f24etxt);';
<stat>INSERT INTO p26603011_script SET id_question = '1274',id_event = '1',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '1291',id_event = '1',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '1289',id_event = '1',script = '    $txtchck = sprintf(\'z1,z1_opn\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($z1 == 1) {
        if ($z1_opn == 0) {
            saveVar(sprintf(\'z2=2\'));    
        }    
         if ($z1_opn > 0) {
            saveVar(sprintf(\'z2=1\'));    
        }       
    }';
<stat>INSERT INTO p26603011_script SET id_question = '1295',id_event = '1',script = '    $txtchck = sprintf(\'z6,z6_opn\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }

    if ($z6 == 1) {
        if ($z6_opn == 0) {
            saveVar(sprintf(\'z7=2\'));    
        }    
         if ($z6_opn > 0) {
            saveVar(sprintf(\'z7=1\'));    
        }       
    }';
<stat>INSERT INTO p26603011_script SET id_question = '1272',id_event = '1',script = 'for($i=1;$i<=18;$i++) {
            
    $txtchck = sprintf(\'d3f4ksp_%d,d3f5ksp_%d,d3f4ein\',$i,$i);
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
//        printf(\"%s=%s<br>\", $itemvar, $checkvar[$itemvar]);
          $$itemvar = $checkvar[$itemvar] ;
    }
    $i_d3f4ct = 0;   
    if ($d3f4ein == 2) {   
        $result = eval(sprintf(\'$d3f4ksp_%d >= 1 and $d3f4ksp_%d <= 5;\', $i, $i));        
        if ($result) {
            saveVar(sprintf(\"$d3f4_%d = $d3f4ksp_%d\",$i,$i));
            saveVar(sprintf(\"$d3f5_%d = $d3f5ksp_%d\",$i,$i));
            $result2 = eval(sprintf(\'$d3f4ksp_%d >= 1 and $d3f4ksp_%d <= 4;\', $i, $i));
            if ($result2) {
                  $i_d3f4ct += 1;
              }    
        }
    }
}
    if ($i_d3f4ct = 0) {     
           saveVar(sprintf(\'d3f4ein=3\'));   
    }    

';
<stat>INSERT INTO p26603011_script SET id_question = '138',id_event = '1',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '325',id_event = '1',script = 'saveVar(\"questtext_1=NULL\");';
<stat>INSERT INTO p26603011_script SET id_question = '1350',id_event = '1',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '1477',id_event = '1',script = '$randint = rand(1,2);
saveVar(\'Cf46dummy=\'.$randint);';
<stat>INSERT INTO p26603011_script SET id_question = '1350',id_event = '3',script = 'document.getElementById(\"op_A2f15_21\").style = \"width:400px; height:50px;\";
';
<stat>INSERT INTO p26603011_script SET id_question = '1478',id_event = '1',script = '$randint = rand(1,2);
saveVar(\'Cf47dummy=\'.$randint);';
<stat>INSERT INTO p26603011_script SET id_question = '1161',id_event = '4',script = '$rand = rand(0,50);
saveVar(\'poln19_opn=\'.$rand);';
<stat>INSERT INTO p26603011_script SET id_question = '56',id_event = '4',script = 'saveVar(\"ANZGES_1=\" . rand(1,9));';
<stat>INSERT INTO p26603011_script SET id_question = '62',id_event = '4',script = 'saveVar(\"ANZVER_1=\" . rand(0,5));';
<stat>INSERT INTO p26603011_script SET id_question = '1543',id_event = '3',script = 'var table = document.getElementById(\'answTable_bf39\');
var tbody = table.getElementsByTagName(\'tbody\')[0];
var firstrow = tbody.getElementsByTagName(\'tr\')[0];
var anzRows = tbody.childElementCount;
var anzSpalten = firstrow.childElementCount;
//console.log(anzRows);
console.log(anzSpalten);

for (var c=0, max = anzRows;c<max;c++) {
    for (var r=0, maxr = anzSpalten;r<maxr;r++) {
        console.log(tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.width);
        if (r==0){
            tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.width = \"26%\";
            tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.textAlign = \"right\";
        } else if (r==maxr-1){
            tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.width = \"26%\";
            tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.textAlign = \"left\";            
        } else {
           tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.width = \"8%\";
        }
       if (c==0){
           //tbody.getElementsByTagName(\'tr\')[c].childNodes[r].style.writingMode = \"tb-rl\";
       }   
    }
    //console.log(c);
    var node = tbody.getElementsByTagName(\'tr\')[c].childNodes[7];
    var target = tbody.getElementsByTagName(\'tr\')[c].childNodes[6];
    //console.log(target);
    tbody.getElementsByTagName(\'tr\')[c].insertBefore(node,target);
}
/*
$.fn.switchColumns = function ( col1, col2 ) {
    var $this = this,
        $tr = $this.find(\'tr\');

    $tr.each(function(i, ele){
        var $ele = $(ele),
            $td = $ele.find(\'td\'),
            $tdt;
        
        $tdt = $td.eq( col1 ).clone();
        $td.eq( col1 ).html( $td.eq( col2 ).html() );
        $td.eq( col2 ).html( $tdt.html() );
    });
};

$(\'#answTable_bf39\').switchColumns( 6, 7 );

*/';
<stat>INSERT INTO p26603011_script SET id_question = '1522',id_event = '3',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '1567',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1580',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1581',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });
';
<stat>INSERT INTO p26603011_script SET id_question = '1582',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1583',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1584',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1585',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1586',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1604',id_event = '3',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '1603',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(120*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"120\";
    var widthl=\"120\";
} else {
    var widths=\"120\";
    var widthl=\"120\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1606',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=990-(100*(max-1));
}else {
    var widthText=390;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1636',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(110*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"110\";
    var widthl=\"110\";
} else {
    var widths=\"110\";
    var widthl=\"110\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1672',id_event = '1',script = '    $txtchck = sprintf(\'ANZTV_1,NRRESP,NRHHV,ALTERxP1_1,STAATSBxP1,ALTERxP2_1,STAATSBxP2,TVEMPF_1,TVEMPF_2,TVEMPF_3,TVEMPF_4,TVEMPF_5,TVEMPF_6,TVEMPF_7,TVEMPF_8,TVEMPF_9\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
$ineligible = 0;
//$ineligible =1; // TEIL DERZEIT DEAKTIVIERT
if ($ANZTV_1==0) { 
    //echo \"FERNSEHER<br>\";
    saveVar(\"tt1=1\");
    $ineligible =1;
}
if ($ANZTV_1==1) saveVar(\"tt1=2\");
if ($ANZTV_1>=2) saveVar(\"tt1=3\");
if ($NRRESP==$NRHHV) saveVar(\"tt3=1\"); else saveVar(\"tt3=2\");
if ($NRRESP==$NRHHV) {
    if ($ALTERxP1_1<40 && $ALTERxP1_1>15) saveVar(\"tt4=1\"); else {
        saveVar(\"tt4=2\");
        $ineligible =1;
        //echo \"ALTER P1<br>\";
    }
    if ($STAATSBxP1==1) saveVar(\"tt5=1\");
    if ($STAATSBxP1!=12 && $STAATSBxP1!=1) {
        saveVar(\"tt5=2\");
        $ineligible =1;
        //echo \"STB P1<br>\";
    }
    if ($STAATSBxP1==12) {
        saveVar(\"tt5=3\");
        $ineligible =1;
        //echo \"STB P1<br>\";
    }
} else {
    if ($ALTERxP2_1<40 && $ALTERxP2_1>15) saveVar(\"tt4=1\"); else {
        saveVar(\"tt4=2\");
        $ineligible =1;
        //echo \"ALTER P2<br>\";
    }
    if ($STAATSBxP2==1) saveVar(\"tt5=1\");
    if ($STAATSBxP2!=12 && $STAATSBxP2!=1) {
        saveVar(\"tt5=2\");
        $ineligible =1;
        //echo \"STB P2<br>\";
    }
    if ($STAATSBxP2==12) {
        saveVar(\"tt5=3\");
        $ineligible =1;
        //echo \"STB P2<br>\"; 
    }
}

if ($TVEMPF_1==1) saveVar(\"tt2_1=1\");
if ($TVEMPF_2==2) saveVar(\"tt2_2=2\");
if ($TVEMPF_3==3) saveVar(\"tt2_3=3\");
if ($TVEMPF_4==4) saveVar(\"tt2_4=4\");
if ($TVEMPF_5==5) saveVar(\"tt2_5=5\");
if ($TVEMPF_6==6) saveVar(\"tt2_6=6\");
if ($TVEMPF_7==7) saveVar(\"tt2_7=7\");
if ($TVEMPF_8==8) {
    saveVar(\"tt2_8=8\");
        $ineligible =1;
        //echo \"EMPF<br>\";
    }
if ($TVEMPF_9==9) {
    saveVar(\"tt2_9=9\");
        $ineligible =1;
        //echo \"EMPF<br>\";
    }


if ($ineligible ==1) {
    saveVar(\"ttstart=2\");
    setQuestion(\"Nächster Teil\");
} else {
    saveVar(\"ttstart=1\");
}
    
';
<stat>INSERT INTO p26603011_script SET id_question = '1670',id_event = '2',script = '
';
<stat>INSERT INTO p26603011_script SET id_question = '1669',id_event = '2',script = '$txtchck = sprintf(\'tt11,Projektdaten_6,Projektdaten_9,Projektdaten_14,ANZGES_1,AGExP1_1,AGExP2_1,AGExP3_1,AGExP4_1,AGExP5_1,AGExP6_1,AGExP7_1,AGExP8_1,AGExP9_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
$bld_array = array(\"Vorarlberg\",\"Tirol\",\"Salzburg\",\"Oberösterreich\",\"Kärnten\",\"Steiermark\",\"Burgenland\",\"Niederösterreich\",\"Wien\");
if ($tt1!=1 && $tt1!=2) {
    saveVar(sprintf(\'tt12_1=\"%s\"\',$Projektdaten_9));
    saveVar(sprintf(\'tt12_2=\"%s\"\',$bld_array[$Projektdaten_6]));
    saveVar(sprintf(\'tt12_3=\"%s\"\',$Projektdaten_14));
    saveVar(sprintf(\'tt12_4=\"%s\"\',$ANZGES_1));
    saveVar(sprintf(\'tt12_5=\"%s\"\',$AGExP1_1.\",\".$AGExP2_1.\",\".$AGExP3_1.\",\".$AGExP4_1.\",\".$AGExP5_1.\",\".$AGExP6_1.\",\".$AGExP7_1.\",\".$AGExP8_1.\",\".$AGExP9_1));
}

$ab15 =0;
if ($AGExP1_1>=15) $ab15++;
if ($AGExP2_1>=15) $ab15++;
if ($AGExP3_1>=15) $ab15++;
if ($AGExP4_1>=15) $ab15++;
if ($AGExP5_1>=15) $ab15++;
if ($AGExP6_1>=15) $ab15++;
if ($AGExP7_1>=15) $ab15++;
if ($AGExP8_1>=15) $ab15++;
if ($AGExP9_1>=15) $ab15++;
saveVar(\"tt7=\".$ab15);
';
<stat>INSERT INTO p26603011_script SET id_question = '1598',id_event = '3',script = 'var quest = $(\'#desElementId_115\').text();
console.log(quest );
var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(100*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"80\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });';
<stat>INSERT INTO p26603011_script SET id_question = '1768',id_event = '4',script = '
$rand = mt_rand(1,2);
saveVar(\'C20a=\'.$rand);
if ($rand == 2) {
    saveVar(\'C20a_opn=\'.mt_rand(1,30));
    saveVar(\'C20a=99\');
    
}
';
<stat>INSERT INTO p26603011_script SET id_question = '1779',id_event = '4',script = '
$rand = mt_rand(1,2);
saveVar(\'D2=\'.$rand);
if ($rand == 1) {saveVar(\'D2_opn=\'.mt_rand(1920,2005));}

if ($rand == 2) {saveVar(\'D2=99\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1782',id_event = '4',script = '
$rand = mt_rand(1,5);
saveVar(\'D5=\'.$rand);
if ($rand == 1) {saveVar(\'D5_opn=\'.mt_rand(1,95));}
';
<stat>INSERT INTO p26603011_script SET id_question = '1788',id_event = '4',script = '

$rand = mt_rand(1,3);
saveVar(\'D10=\'.$rand);
if ($rand == 1) {saveVar(\'D10_opn=\'.mt_rand(0,9994));}';
<stat>INSERT INTO p26603011_script SET id_question = '1790',id_event = '4',script = '
$rand = mt_rand(1,3);
saveVar(\'D12=\'.$rand);
if ($rand == 1) {saveVar(\'D12_opn=\'.mt_rand(0,9994));}';
<stat>INSERT INTO p26603011_script SET id_question = '1794',id_event = '4',script = '
$rand = mt_rand(1,4);
saveVar(\'D16=\'.$rand);
if ($rand == 1) {saveVar(\'D16_opn=\'.mt_rand(0,96));}';
<stat>INSERT INTO p26603011_script SET id_question = '1813',id_event = '4',script = '
$D29 = mt_rand(1,9);

saveVar(\'D29=\'.$D29);

if ($D29 > 1 && $D29 < 9) {
    $rand1 = 0;
    $rand2 = 0;
    $rand3 = 0;
    $rand4 = 0;
    $rand5 = 0;

$rand1 = mt_rand(0,$D29);
$D29 = $D29 - $rand1;

if ($D29 > 0) {
$rand2 = mt_rand(0,$D29);
$D29 = $D29 - $rand2;   
}

if ($D29 > 0) {
$rand3 = mt_rand(0,$D29);
$D29 = $D29 - $rand3;   
}

if ($D29 > 0) {
$rand4 = mt_rand(0,$D29);
$D29 = $D29 - $rand4;   
}

if ($D29 > 0) {
$rand5 = mt_rand(0,$D29);
$D29 = $D29 - $rand5;   
}



saveVar(\'D30_1=\'.$rand1);
saveVar(\'D30_2=\'.$rand2);
saveVar(\'D30_3=\'.$rand3);
saveVar(\'D30_4=\'.$rand4);
saveVar(\'D30_5=\'.$rand5);
}';
<stat>INSERT INTO p26603011_script SET id_question = '1814',id_event = '4',script = '
$rand = mt_rand(1,2);
saveVar(\'D31=\'.$rand);
if ($rand == 1) {saveVar(\'D31_opn=\'.mt_rand(0,10));}
if ($rand == 2) {saveVar(\'D31=99\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1818',id_event = '4',script = '
$rand = mt_rand(1,4);
saveVar(\'D35=\'.$rand);
if ($rand == 1) {saveVar(\'D35_opn=\'.mt_rand(0,999999));}
if ($rand == 3) {saveVar(\'D35=98\');}
if ($rand == 4) {saveVar(\'D35=99\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1820',id_event = '4',script = '
$rand = mt_rand(1,4);
saveVar(\'D36=\'.$rand);
if ($rand == 1) {saveVar(\'D36_opn=\'.mt_rand(0,999999));}
if ($rand == 3) {saveVar(\'D36=98\');}
if ($rand == 4) {saveVar(\'D36=99\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1822',id_event = '4',script = '
$rand = mt_rand(1,5);
saveVar(\'D37=\'.$rand);
if ($rand == 1) {saveVar(\'D37_opn=\'.mt_rand(0,99999999));}
';
<stat>INSERT INTO p26603011_script SET id_question = '1823',id_event = '4',script = '
$rand = mt_rand(1,2);
saveVar(\'D38=\'.$rand);
if ($rand == 1) {saveVar(\'D38_opn=\'.mt_rand(0,99999999));}
if ($rand == 2) {saveVar(\'D38=9\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1841',id_event = '4',script = 'saveVar(\'Kon2b_1=\"21.04.2021\"\');';
<stat>INSERT INTO p26603011_script SET id_question = '1844',id_event = '4',script = 'saveVar(\'Kon3b_1=\"21.04.2021\"\');';
<stat>INSERT INTO p26603011_script SET id_question = '1849',id_event = '4',script = 'saveVar(\'Kon4b_1=\"21.04.2021\"\');';
<stat>INSERT INTO p26603011_script SET id_question = '1847',id_event = '4',script = 'saveVar(\'Kon5b_1=\"21.04.2021\"\');';
<stat>INSERT INTO p26603011_script SET id_question = '1696',id_event = '3',script = '
var InputTxt1 = document.getElementById(\'ct_A2_1\');
var InputTxt2 = document.getElementById(\'ct_A2_2\');
var InputTxt3 = document.getElementById(\'ct_A2_3\');
var InputTxt4 = document.getElementById(\'ct_A2_4\');
var InputTxt5 = document.getElementById(\'ct_A2_5\');

InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.style.textAlign = \'left\';
InputTxt1.parentNode.insertAdjacentText(\"beforeend\", \" Euro\");

InputTxt2.style.width = \'150px\';
InputTxt2.parentNode.style.textAlign = \'left\';
InputTxt2.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 

InputTxt3.style.width = \'150px\';
InputTxt3.parentNode.style.textAlign = \'left\';
InputTxt3.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 

InputTxt4.style.width = \'150px\';
InputTxt4.parentNode.style.textAlign = \'left\';
InputTxt4.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 

InputTxt5.style.width = \'150px\';
InputTxt5.parentNode.style.textAlign = \'left\';
InputTxt5.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 
';
<stat>INSERT INTO p26603011_script SET id_question = '1697',id_event = '3',script = '
var InputTxt1 = document.getElementById(\'ct_A3_1\');
var InputTxt2 = document.getElementById(\'ct_A3_2\');
var InputTxt3 = document.getElementById(\'ct_A3_3\');
var InputTxt4 = document.getElementById(\'ct_A3_4\');
var InputTxt5 = document.getElementById(\'ct_A3_5\');

InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.style.textAlign = \'left\';
InputTxt1.parentNode.insertAdjacentText(\"beforeend\", \" Euro\");

InputTxt2.style.width = \'150px\';
InputTxt2.parentNode.style.textAlign = \'left\';
InputTxt2.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 

InputTxt3.style.width = \'150px\';
InputTxt3.parentNode.style.textAlign = \'left\';
InputTxt3.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 

InputTxt4.style.width = \'150px\';
InputTxt4.parentNode.style.textAlign = \'left\';
InputTxt4.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 

InputTxt5.style.width = \'150px\';
InputTxt5.parentNode.style.textAlign = \'left\';
InputTxt5.parentNode.insertAdjacentText(\"beforeend\", \" Euro\"); 
';
<stat>INSERT INTO p26603011_script SET id_question = '1713',id_event = '3',script = '

var tblfield = document.getElementById(\'answTable_A16instr\').firstChild.firstChild.firstChild;
tblfield.style.width=\'1%\';

var tblfield = tblfield.nextSibling;
var img1 = new Image(100, 120);
img1.src = \'/../../webIfesProjects/ProjFiles/26603011/f16_1.png\';
tblfield.appendChild(img1);

var tblfield = tblfield.nextSibling;
var img2 = new Image(100, 120);
img2.src = \'/../../webIfesProjects/ProjFiles/26603011/f16_2.png\';
tblfield.appendChild(img2);

var tblfield = tblfield.nextSibling;
var img3 = new Image(100, 120);
img3.src = \'/../../webIfesProjects/ProjFiles/26603011/f16_3.png\';
tblfield.appendChild(img3);

var tblfield = tblfield.nextSibling;
var img4 = new Image(100, 120);
img4.src = \'/../../webIfesProjects/ProjFiles/26603011/f16_4.png\';
tblfield.appendChild(img4);

var tblfield = tblfield.nextSibling;
var img5 = new Image(100, 120);
img5.src = \'/../../webIfesProjects/ProjFiles/26603011/f16_5.png\';
tblfield.appendChild(img5);


document.getElementById(\'ct_A16instr_1_1\').remove();
document.getElementById(\'ct_A16instr_1_2\').remove();
document.getElementById(\'ct_A16instr_1_3\').remove();
document.getElementById(\'ct_A16instr_1_4\').remove();
document.getElementById(\'ct_A16instr_1_5\').remove();


document.getElementById(\'td_A16instr_1_1\').previousSibling.style.width=\'1%\';
document.getElementById(\'td_A16instr_1_1\').style.width=\'20%\';
document.getElementById(\'td_A16instr_1_2\').style.width=\'20%\';
document.getElementById(\'td_A16instr_1_3\').style.width=\'20%\';
document.getElementById(\'td_A16instr_1_4\').style.width=\'20%\';
document.getElementById(\'td_A16instr_1_5\').style.width=\'20%\';


document.getElementById(\'td_A16instr_1_1\').innerHTML = \'<b>Typ A</b><br>1<br><br>Eine kleine Elite oben, nur sehr wenige Menschen in der Mitte und die große Masse der Bevölkerung unten.\';
document.getElementById(\'td_A16instr_1_1\').style.verticalAlign = \'top\';
document.getElementById(\'td_A16instr_1_2\').innerHTML = \'<b>Typ B</b><br>2<br><br>Eine Gesellschaft, die einer Pyramide gleicht, mit einer kleinen Elite oben, mehr Menschen in der Mitte und den meisten Menschen unten.\';
document.getElementById(\'td_A16instr_1_2\').style.verticalAlign = \'top\';
document.getElementById(\'td_A16instr_1_3\').innerHTML = \'<b>Typ C</b><br>3<br><br>Eine Gesellschaft, die einer Pyramide gleicht, aber mit nur wenigen Menschen ganz unten.\';
document.getElementById(\'td_A16instr_1_3\').style.verticalAlign = \'top\';
document.getElementById(\'td_A16instr_1_4\').innerHTML = \'<b>Typ D</b><br>4<br><br>Eine Gesellschaft, in der sich die meisten Menschen in der Mitte befinden.\';
document.getElementById(\'td_A16instr_1_4\').style.verticalAlign = \'top\';
document.getElementById(\'td_A16instr_1_5\').innerHTML = \'<b>Typ E</b><br>5<br><br>Viele Menschen im oberen Bereich und nur wenige Menschen im unteren Bereich.\';
document.getElementById(\'td_A16instr_1_5\').style.verticalAlign = \'top\';




var quest = $(\'#desElementId_115\').text();

var diffLength = 1;
 
$(\'#answTable_\'+quest).css(\"table-layout\",\"fixed\");
max = $(\'#answTable_\'+quest+\' tr:first td\').length;
max = max-1;
 
if (max<=6) {
    var widthText=1000-(195*(max-1));
}else {
    var widthText=400;
}
if (diffLength==1) {
    var widths=\"160\";
    var widthl=\"100\";
} else {
    var widths=\"100\";
    var widthl=\"100\";
}
var padding=\"5\";
   
 
count=0;
$(\'#answTable_\'+quest+\' tr:first td\').each(function(index){
  count++;
  if (count==1) {
      $(this).css(\"width\",\"\"+widthText+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
    }
  if (count>=2 && count<=max) {
      $(this).css(\"width\",\"\"+widths+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
  if (count==2 && count==max) {
      $(this).css(\"width\",\"\"+widthl+\"px\");
      $(this).css(\"padding\",\"\"+padding+\"px\");
      $(this).css(\"border-left\",\"1px dotted grey\");
      $(this).css(\"vertical-align\",\"bottom\");
    }
     
  });
  
';
<stat>INSERT INTO p26603011_script SET id_question = '1838',id_event = '3',script = '
</script>
<link rel=\"stylesheet\" href=\"/../webIfesProjects/includes/datepicker.min.css\">
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/includes/datepicker.min.js\"></script>
<script type=\"text/javascript\">    


const picker1 = datepicker(document.querySelector(\'#ct_Kon1b_1\'),{startDay: 1});

var today = new Date();
//var dd = String(today.getDate()).padStart(2, \'0\');
var dd = (\"0\" + today.getDate()).slice(-2);
dd = parseInt(dd);
var mm = String(today.getMonth() + 1).padStart(2, \'0\');
mm = parseInt(mm);
var yyyy = today.getFullYear();

today = dd + \'.\' + mm + \'.\' + yyyy;
document.getElementById(\'ct_Kon1b_1\').blur();
document.getElementById(\'ct_Kon1b_1\').value = today;

document.getElementById(\'ct_Kon1b_1\').style.width = \'150px\';
document.getElementById(\'ct_Kon1b_1\').autocomplete = \"off\";';
<stat>INSERT INTO p26603011_script SET id_question = '1841',id_event = '3',script = '

</script>
<link rel=\"stylesheet\" href=\"/../webIfesProjects/includes/datepicker.min.css\">
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/includes/datepicker.min.js\"></script>
    
<script type=\"text/javascript\">    
const picker1 = datepicker(document.querySelector(\'#ct_Kon2b_1\'),{startDay: 1});

var today = new Date();
var dd = String(today.getDate()).padStart(2, \'0\');
dd = parseInt(dd);
var mm = String(today.getMonth() + 1).padStart(2, \'0\');
mm = parseInt(mm);
var yyyy = today.getFullYear();

today = dd + \'.\' + mm + \'.\' + yyyy;

document.getElementById(\'ct_Kon2b_1\').value = today;
document.getElementById(\'ct_Kon2b_1\').blur();
document.getElementById(\'ct_Kon2b_1\').style.width = \'150px\';
document.getElementById(\'ct_Kon2b_1\').autocomplete = \"off\";';
<stat>INSERT INTO p26603011_script SET id_question = '1844',id_event = '3',script = '
 
</script>
<link rel=\"stylesheet\" href=\"/../webIfesProjects/includes/datepicker.min.css\">
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/includes/datepicker.min.js\"></script>
    
<script type=\"text/javascript\">    
const picker1 = datepicker(document.querySelector(\'#ct_Kon3b_1\'),{startDay: 1});

var today = new Date();
var dd = String(today.getDate()).padStart(2, \'0\');
dd = parseInt(dd);
var mm = String(today.getMonth() + 1).padStart(2, \'0\');
mm = parseInt(mm);
var yyyy = today.getFullYear();

today = dd + \'.\' + mm + \'.\' + yyyy;

document.getElementById(\'ct_Kon3b_1\').value = today;
document.getElementById(\'ct_Kon3b_1\').blur();
document.getElementById(\'ct_Kon3b_1\').style.width = \'150px\';
document.getElementById(\'ct_Kon3b_1\').autocomplete = \"off\";';
<stat>INSERT INTO p26603011_script SET id_question = '1849',id_event = '3',script = '

</script>
<link rel=\"stylesheet\" href=\"/../webIfesProjects/includes/datepicker.min.css\">
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/includes/datepicker.min.js\"></script>
    
<script type=\"text/javascript\">    
const picker1 = datepicker(document.querySelector(\'#ct_Kon4b_1\'),{startDay: 1});

var today = new Date();
var dd = String(today.getDate()).padStart(2, \'0\');
dd = parseInt(dd);
var mm = String(today.getMonth() + 1).padStart(2, \'0\');
mm = parseInt(mm);
var yyyy = today.getFullYear();

today = dd + \'.\' + mm + \'.\' + yyyy;

document.getElementById(\'ct_Kon4b_1\').value = today;
document.getElementById(\'ct_Kon4b_1\').blur();
document.getElementById(\'ct_Kon4b_1\').style.width = \'150px\';
document.getElementById(\'ct_Kon4b_1\').autocomplete = \"off\";';
<stat>INSERT INTO p26603011_script SET id_question = '1847',id_event = '3',script = '

</script>
<link rel=\"stylesheet\" href=\"/../webIfesProjects/includes/datepicker.min.css\">
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/includes/datepicker.min.js\"></script>
    
<script type=\"text/javascript\">    
const picker1 = datepicker(document.querySelector(\'#ct_Kon5b_1\'),{startDay: 1});

var today = new Date();
var dd = String(today.getDate()).padStart(2, \'0\');
dd = parseInt(dd);
var mm = String(today.getMonth() + 1).padStart(2, \'0\');
mm = parseInt(mm);
var yyyy = today.getFullYear();

today = dd + \'.\' + mm + \'.\' + yyyy;

document.getElementById(\'ct_Kon5b_1\').value = today;
document.getElementById(\'ct_Kon5b_1\').blur();
document.getElementById(\'ct_Kon5b_1\').style.width = \'150px\';
document.getElementById(\'ct_Kon5b_1\').autocomplete = \"off\";';
<stat>INSERT INTO p26603011_script SET id_question = '1861',id_event = '3',script = ' 
var tblelem = $(\"#answTable_E4\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'9%\';

document.getElementById(\"td_E4_1_1\").style.width = percentage;
document.getElementById(\"td_E4_1_2\").style.width = percentage;
document.getElementById(\"td_E4_1_3\").style.width = percentage;
document.getElementById(\"td_E4_1_4\").style.width = percentage;
document.getElementById(\"td_E4_1_5\").style.width = percentage;
document.getElementById(\"td_E4_1_6\").style.width = percentage;
document.getElementById(\"td_E4_1_7\").style.width = percentage;
document.getElementById(\"td_E4_1_8\").style.width = percentage;
document.getElementById(\"td_E4_1_9\").style.width = percentage;
document.getElementById(\"td_E4_1_10\").style.width = percentage;
document.getElementById(\"td_E4_1_11\").style.width = percentage;';
<stat>INSERT INTO p26603011_script SET id_question = '0',id_event = '3',script = 'setCustomDesignerText(\'custTitle\',\'ISSP 2021\');';
<stat>INSERT INTO p26603011_script SET id_question = '1796',id_event = '3',script = 'document.getElementById(\"ct_D18isco_1\").parentNode.parentNode.style.display=\"none\";
document.getElementById(\"ct_D18isco_4\").parentNode.parentNode.style.display=\"none\";
document.getElementsByTagName(\"input\").autocomplete = \"off\";
document.getElementById(\"op_D18isco_2\").style.width = \"750px\";
//autocomlete Funktion, mit externem php Skirpt zur Aufbereitung der Datensätze aus externer Datenquelle


$(function() {
    var tbID = $(\"#op_D18isco_1\"),
        tbLabel = $(\"#op_D18isco_2\"),
        ebene = \'3_4\', //Verwendetet Ebenen der ISCO Codierung BSp: \'3\',\'2\',\'34\' für Ebenen 3 und 4
        frage = $(\"#frageID\"),
        useurl= \"../../webIfesProjects/CustomSkripts/lookups/lookup_oeisco08.php\",
        testurl = $(\"#op_D18isco_4\");
        /*if (testurl.val==2) {
          useurl= \"../../webIesProjects/lookups/lookup_oeisco08beta.php\" ;
        } */
    tbLabel.autocomplete({
        minLength: 3, // Suche startet ab 3 Zeichen
        source: function(request, response) {
            $.ajax({
                url: useurl, // relativer Pfad zum Skript
                dataType: \"json\",
                data: {
                    query: request.term,
                    ebene: ebene,
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.value);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});


';
<stat>INSERT INTO p26603011_script SET id_question = '1796',id_event = '1',script = '
saveVar(\'D18isco_1=1\');
saveVar(\'D18isco_3=null\');';
<stat>INSERT INTO p26603011_script SET id_question = '1802',id_event = '3',script = 'document.getElementById(\"ct_D22VATisco_1\").parentNode.parentNode.style.display=\"none\";
document.getElementById(\"ct_D22VATisco_4\").parentNode.parentNode.style.display=\"none\";
document.getElementsByTagName(\"input\").autocomplete = \"off\";
document.getElementById(\"op_D22VATisco_2\").style.width = \"750px\";
//autocomlete Funktion, mit externem php Skirpt zur Aufbereitung der Datensätze aus externer Datenquelle


$(function() {
    var tbID = $(\"#op_D22VATisco_1\"),
        tbLabel = $(\"#op_D22VATisco_2\"),
        ebene = \'3_4\', //Verwendetet Ebenen der ISCO Codierung BSp: \'3\',\'2\',\'34\' für Ebenen 3 und 4
        frage = $(\"#frageID\"),
        useurl= \"../../webIfesProjects/CustomSkripts/lookups/lookup_oeisco08.php\",
        testurl = $(\"#op_D22VATisco_4\");
        /*if (testurl.val==2) {
          useurl= \"../../webIesProjects/lookups/lookup_oeisco08beta.php\" ;
        } */
    tbLabel.autocomplete({
        minLength: 3, // Suche startet ab 3 Zeichen
        source: function(request, response) {
            $.ajax({
                url: useurl, // relativer Pfad zum Skript
                dataType: \"json\",
                data: {
                    query: request.term,
                    ebene: ebene,
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.value);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});


';
<stat>INSERT INTO p26603011_script SET id_question = '1804',id_event = '1',script = '
saveVar(\'D22MUTisco_1=1\');
saveVar(\'D22MUTisco_3=null\');';
<stat>INSERT INTO p26603011_script SET id_question = '1802',id_event = '1',script = '
saveVar(\'D22VATisco_1=1\');
saveVar(\'D22VATisco_3=null\');';
<stat>INSERT INTO p26603011_script SET id_question = '1804',id_event = '3',script = 'document.getElementById(\"ct_D22MUTisco_1\").parentNode.parentNode.style.display=\"none\";
document.getElementById(\"ct_D22MUTisco_4\").parentNode.parentNode.style.display=\"none\";
document.getElementsByTagName(\"input\").autocomplete = \"off\";
document.getElementById(\"op_D22MUTisco_2\").style.width = \"750px\";
//autocomlete Funktion, mit externem php Skirpt zur Aufbereitung der Datensätze aus externer Datenquelle


$(function() {
    var tbID = $(\"#op_D22MUTisco_1\"),
        tbLabel = $(\"#op_D22MUTisco_2\"),
        ebene = \'3_4\', //Verwendetet Ebenen der ISCO Codierung BSp: \'3\',\'2\',\'34\' für Ebenen 3 und 4
        frage = $(\"#frageID\"),
        useurl= \"../../webIfesProjects/CustomSkripts/lookups/lookup_oeisco08.php\",
        testurl = $(\"#op_D22MUTisco_4\");
        /*if (testurl.val==2) {
          useurl= \"../../webIesProjects/lookups/lookup_oeisco08beta.php\" ;
        } */
    tbLabel.autocomplete({
        minLength: 3, // Suche startet ab 3 Zeichen
        source: function(request, response) {
            $.ajax({
                url: useurl, // relativer Pfad zum Skript
                dataType: \"json\",
                data: {
                    query: request.term,
                    ebene: ebene,
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.value);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});


';
<stat>INSERT INTO p26603011_script SET id_question = '1785',id_event = '1',script = 'saveVar(\'D8isco_1=1\');
saveVar(\'D8isco_3=null\');';
<stat>INSERT INTO p26603011_script SET id_question = '1785',id_event = '3',script = 'document.getElementById(\"ct_D8isco_1\").parentNode.parentNode.style.display=\"none\";
document.getElementById(\"ct_D8isco_4\").parentNode.parentNode.style.display=\"none\";
document.getElementsByTagName(\"input\").autocomplete = \"off\";
document.getElementById(\"op_D8isco_2\").style.width = \"750px\";
//autocomlete Funktion, mit externem php Skirpt zur Aufbereitung der Datensätze aus externer Datenquelle


$(function() {
    var tbID = $(\"#op_D8isco_1\"),
        tbLabel = $(\"#op_D8isco_2\"),
        ebene = \'3_4\', //Verwendetet Ebenen der ISCO Codierung BSp: \'3\',\'2\',\'34\' für Ebenen 3 und 4
        frage = $(\"#frageID\"),
        useurl= \"../../webIfesProjects/CustomSkripts/lookups/lookup_oeisco08.php\",
        testurl = $(\"#op_D8isco_4\");
        /*if (testurl.val==2) {
          useurl= \"../../webIesProjects/lookups/lookup_oeisco08beta.php\" ;
        } */
    tbLabel.autocomplete({
        minLength: 3, // Suche startet ab 3 Zeichen
        source: function(request, response) {
            $.ajax({
                url: useurl, // relativer Pfad zum Skript
                dataType: \"json\",
                data: {
                    query: request.term,
                    ebene: ebene,
                 },
                success: function(data) {
                    response(data);
                }
            });
        },
        focus: function(event, ui) {
            tbID.val(ui.item.value);
            return false;
        },
        select: function(event, ui) {
            tbID.val(ui.item.value);
            tbLabel.val(ui.item.label);
            return false;
        }
    });
     
    var found = $.grep(data, function(element) {
        return (element.value == tbID.val());
    });
});


';
<stat>INSERT INTO p26603011_script SET id_question = '1822',id_event = '3',script = ' 
var InputTxt1 = document.getElementById(\'op_D37_1\');
InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.insertAdjacentText(\"beforeend\", \" €\");';
<stat>INSERT INTO p26603011_script SET id_question = '1824',id_event = '3',script = '
var InputTxt1 = document.getElementById(\'op_D39_1\');
InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.insertAdjacentText(\"beforeend\", \" €\");';
<stat>INSERT INTO p26603011_script SET id_question = '1823',id_event = '3',script = '

var InputTxt1 = document.getElementById(\'op_D38_1\');
InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.insertAdjacentText(\"beforeend\", \" €\");';
<stat>INSERT INTO p26603011_script SET id_question = '1826',id_event = '3',script = '
var InputTxt1 = document.getElementById(\'ct_D41_1\');
InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.style.textAlign = \'left\';
InputTxt1.parentNode.previousSibling.style.width = \'5%\';';
<stat>INSERT INTO p26603011_script SET id_question = '1705',id_event = '3',script = 'var tblelem = $(\"#answTable_A10\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'8%\';

document.getElementById(\"td_A10_1_1\").style.width = percentage;
document.getElementById(\"td_A10_1_2\").style.width = percentage;
document.getElementById(\"td_A10_1_3\").style.width = percentage;
document.getElementById(\"td_A10_1_4\").style.width = percentage;
document.getElementById(\"td_A10_1_5\").style.width = percentage;
document.getElementById(\"td_A10_1_6\").style.width = percentage;
document.getElementById(\"td_A10_1_7\").style.width = percentage;
document.getElementById(\"td_A10_1_8\").style.width = percentage;
document.getElementById(\"td_A10_1_9\").style.width = percentage;
document.getElementById(\"td_A10_1_10\").style.width = percentage;
document.getElementById(\"td_A10_1_11\").style.width = percentage;
document.getElementById(\"td_A10_1_12\").style.width = \'15%\';';
<stat>INSERT INTO p26603011_script SET id_question = '1751',id_event = '3',script = 'var tblelem = $(\"#answTable_C6\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'18%\';

document.getElementById(\"td_C6_1_1\").style.width = percentage;
document.getElementById(\"td_C6_1_2\").style.width = percentage;
document.getElementById(\"td_C6_1_3\").style.width = percentage;
document.getElementById(\"td_C6_1_4\").style.width = percentage;
document.getElementById(\"td_C6_1_5\").style.width = percentage;
document.getElementById(\"td_C6_1_9\").style.width = percentage;
';
<stat>INSERT INTO p26603011_script SET id_question = '1754',id_event = '3',script = '
 
var tblelem = $(\"#answTable_C9a\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'8.3%\';

document.getElementById(\"td_C9a_1_1\").style.width = percentage;
document.getElementById(\"td_C9a_1_2\").style.width = percentage;
document.getElementById(\"td_C9a_1_3\").style.width = percentage;
document.getElementById(\"td_C9a_1_4\").style.width = percentage;
document.getElementById(\"td_C9a_1_5\").style.width = percentage;
document.getElementById(\"td_C9a_1_6\").style.width = percentage;
document.getElementById(\"td_C9a_1_7\").style.width = percentage;
document.getElementById(\"td_C9a_1_8\").style.width = percentage;
document.getElementById(\"td_C9a_1_9\").style.width = percentage;
document.getElementById(\"td_C9a_1_10\").style.width = percentage;
document.getElementById(\"td_C9a_1_11\").style.width = percentage;
document.getElementById(\"td_C9a_1_99\").style.width = percentage;';
<stat>INSERT INTO p26603011_script SET id_question = '1755',id_event = '3',script = '
var tblelem = $(\"#answTable_C9b\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'8.3%\';

document.getElementById(\"td_C9b_1_1\").style.width = percentage;
document.getElementById(\"td_C9b_1_2\").style.width = percentage;
document.getElementById(\"td_C9b_1_3\").style.width = percentage;
document.getElementById(\"td_C9b_1_4\").style.width = percentage;
document.getElementById(\"td_C9b_1_5\").style.width = percentage;
document.getElementById(\"td_C9b_1_6\").style.width = percentage;
document.getElementById(\"td_C9b_1_7\").style.width = percentage;
document.getElementById(\"td_C9b_1_8\").style.width = percentage;
document.getElementById(\"td_C9b_1_9\").style.width = percentage;
document.getElementById(\"td_C9b_1_10\").style.width = percentage;
document.getElementById(\"td_C9b_1_11\").style.width = percentage;
document.getElementById(\"td_C9b_1_99\").style.width = percentage;';
<stat>INSERT INTO p26603011_script SET id_question = '1767',id_event = '3',script = '

 var tblelem = $(\"#answTable_C19\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'11%\';

document.getElementById(\"td_C19_1_1\").style.width = percentage;
document.getElementById(\"td_C19_1_2\").style.width = percentage;
document.getElementById(\"td_C19_1_3\").style.width = percentage;
document.getElementById(\"td_C19_1_4\").style.width = percentage;
document.getElementById(\"td_C19_1_5\").style.width = percentage;
document.getElementById(\"td_C19_1_6\").style.width = percentage;
document.getElementById(\"td_C19_1_7\").style.width = percentage;
document.getElementById(\"td_C19_1_8\").style.width = percentage;
document.getElementById(\"td_C19_1_9\").style.width = percentage;
';
<stat>INSERT INTO p26603011_script SET id_question = '1811',id_event = '3',script = '
var tblelem = $(\"#answTable_D28\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'8.3%\';

document.getElementById(\"td_D28_1_1\").style.width = percentage;
document.getElementById(\"td_D28_1_2\").style.width = percentage;
document.getElementById(\"td_D28_1_3\").style.width = percentage;
document.getElementById(\"td_D28_1_4\").style.width = percentage;
document.getElementById(\"td_D28_1_5\").style.width = percentage;
document.getElementById(\"td_D28_1_6\").style.width = percentage;
document.getElementById(\"td_D28_1_7\").style.width = percentage;
document.getElementById(\"td_D28_1_8\").style.width = percentage;
document.getElementById(\"td_D28_1_9\").style.width = percentage;
document.getElementById(\"td_D28_1_10\").style.width = percentage;
document.getElementById(\"td_D28_1_11\").style.width = percentage;
document.getElementById(\"td_D28_1_12\").style.width = percentage;';
<stat>INSERT INTO p26603011_script SET id_question = '1813',id_event = '3',script = '

var InputTxt1 = document.getElementById(\'ct_D30_1\');
var InputTxt2 = document.getElementById(\'ct_D30_2\');
var InputTxt3 = document.getElementById(\'ct_D30_3\');
var InputTxt4 = document.getElementById(\'ct_D30_4\');
var InputTxt5 = document.getElementById(\'ct_D30_5\');

InputTxt1.style.width = \'150px\';
InputTxt1.parentNode.style.textAlign = \'left\';
InputTxt1.parentNode.previousSibling.style.width = \'10%\';

InputTxt2.style.width = \'150px\';
InputTxt2.parentNode.style.textAlign = \'left\';
InputTxt2.parentNode.previousSibling.style.width = \'10%\';

InputTxt3.style.width = \'150px\';
InputTxt3.parentNode.style.textAlign = \'left\';
InputTxt3.parentNode.previousSibling.style.width = \'10%\';

InputTxt4.style.width = \'150px\';
InputTxt4.parentNode.style.textAlign = \'left\';
InputTxt4.parentNode.previousSibling.style.width = \'10%\';

InputTxt5.style.width = \'150px\';
InputTxt5.parentNode.style.textAlign = \'left\';
InputTxt5.parentNode.previousSibling.style.width = \'10%\';
';
<stat>INSERT INTO p26603011_script SET id_question = '1749',id_event = '3',script = 'var tblelem = $(\"#answTable_C4\").children().children().children(\':first-child\');
tblelem[0].style.width=\"1%\";
tblelem[1].style.width=\"1%\";

var percentage = \'17%\';

document.getElementById(\"td_C4_1_1\").style.width = percentage;
document.getElementById(\"td_C4_1_2\").style.width = percentage;
document.getElementById(\"td_C4_1_3\").style.width = percentage;
document.getElementById(\"td_C4_1_4\").style.width = percentage;
document.getElementById(\"td_C4_1_5\").style.width = percentage;
document.getElementById(\"td_C4_1_9\").style.width = percentage;
';
<stat>INSERT INTO p26603011_script SET id_question = '1824',id_event = '4',script = '
$rand = mt_rand(1,2);
saveVar(\'D39=\'.$rand);
if ($rand == 1) {saveVar(\'D39_opn=\'.mt_rand(0,99999999));}
if ($rand == 2) {saveVar(\'D39=9\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1826',id_event = '4',script = '
saveVar(\'D41_1=\'.mt_rand(0,999));';
<stat>INSERT INTO p26603011_script SET id_question = '965',id_event = '2',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

/*
$txtchck = sprintf(\'KvNr,KvTxt_1,KvTxt_2,KvTxt_3,KvTxt_4,KvTxt_5,KvTxt_6,KvTxt_7,KvAnz_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
$icount = 7;
for ($i = 7; $i >= 1; $i--)
     {
        $test = sprintf(\'KvTxt_%d\',$i);
//       echo $test.\"-\".$$test.\"<br>\";
        if (strlen($$test) <= 5)
        {
            $icount = $i-1;
        }
//        echo  $i.\"-\".$$test.\"-\".strlen($$test).\"<br>\";
    }
//echo $icount;
if ($KvAnz_1 == NULL) saveVar(sprintf(\'KvAnz_1=0\'));
 if ($KvNr==99) {
    saveVar(sprintf(\'KvAnz_1=%d\', $icount));
}
// Vorherige Eingaben löschen
$txtchck = sprintf(\'KvNr,kondate_1,konart,konres,konerg,rekondate_1,konver_1,konver_2,konver_3,konver_4,konver_5,konver_6,konver_7,konver_8,konver_9,konver_10,konver_11,konver_12,konver_13,konver_14,konver_opn14,konne,konabschl\');
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
        $test = sprintf(\"$itemvar=NULL\");
        saveVar($test);
    }
*/

$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest = \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest = \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest = \'Sie führen eines von max. 4 bezahlten Einsteigerinterviews durch<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein\';
} else {
    $txtQuest = \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}

$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
echo \"<pre>\";
//var_dump($i_cmplts);
echo \"</pre>\";
$lfdsInLinr = array();
$count_linr = 0;
$cmplt_linr = 0;
$count_him = 0;
$count_her = 0;
$count_young = 0;
$count_old = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {
           $cmplt_linr++;
           $lfdsInLinr[] = $value[\"Projektdaten_5\"];
               if ($value[\"Projektdaten_17\"] == \"2\" || $value[\"Projektdaten_17\"] == \"0\") {
                   if($value[\"SEX\"] == \"1\") {
                       $count_him++;
                   } else if ($value[\"SEX\"] == \"2\") {
                       $count_her++;
                   }
                   if($value[\"AGE_1\"] > 15 && $value[\"AGE_1\"] <= 45) {
                       $count_young ++;
                   } else if ($value[\"AGE_1\"] >= 46 || $value[\"AGE_1\"] <= 99) {
                       $count_old ++;
                   }
            }
        }
    }
}

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";
//$txtQuest .= \"<br>&nbsp;&nbsp;Insgesamt \".$count_linr.\" Adressen sind bereits abgeschlossen.\";
if ($Projektdaten_17 == 2 || ($Projektdaten_17 == 0 && $i_userid == 135)) {
    $txtQuest .= \"<br><br>Alter und Geschlechtsverteilung:<br>&nbsp;&nbsp;\";
    if ($count_him > $count_her+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_him.\" Männer<br>&nbsp;&nbsp;\";
    if ($count_him > $count_her+1) $txtQuest .= \"</font>\";
    if ($count_her> $count_him +1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_her.\" Frauen<br>&nbsp;&nbsp;\";
    if ($count_her> $count_him +1) $txtQuest .= \"</font>\";
    if ($count_young> $count_old+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_young.\" unter 45<br>&nbsp;&nbsp;\";
    if ($count_young> $count_old+1) $txtQuest .= \"</font>\";
    if ($count_old> $count_young+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_old.\" 45 oder älter<br>\";
    if ($count_old> $count_young+1) $txtQuest .= \"</font>\";
}
    $txtQuest .= \"<br>\";
setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");



';
<stat>INSERT INTO p26603011_script SET id_question = '1838',id_event = '4',script = 'saveVar(\'Kon1b_1=\"21.04.2021\"\');';
<stat>INSERT INTO p26603011_script SET id_question = '1851',id_event = '4',script = 'saveVar(\'Kon5a=1\');';
<stat>INSERT INTO p26603011_script SET id_question = '1891',id_event = '4',script = 'saveVar(\'testdatensprung=2\');';
<stat>INSERT INTO p26603011_script SET id_question = '328',id_event = '4',script = 'saveVar(\'TEST=5\');';
<stat>INSERT INTO p26603011_script SET id_question = '1696',id_event = '4',script = '
saveVar(\"AGE_1=\".mt_rand(16,120));
saveVar(\"SEX=1\".mt_rand(1,2));

saveVar(\"A2_1=\".mt_rand(0,99999));
saveVar(\"A2_2=\".mt_rand(0,99999));
saveVar(\"A2_3=\".mt_rand(0,99999));
saveVar(\"A2_4=\".mt_rand(0,99999));
saveVar(\"A2_5=\".mt_rand(0,99999));';
<stat>INSERT INTO p26603011_script SET id_question = '1697',id_event = '4',script = '
saveVar(\"A3_1=\".mt_rand(0,99999));
saveVar(\"A3_2=\".mt_rand(0,99999));
saveVar(\"A3_3=\".mt_rand(0,99999));
saveVar(\"A3_4=\".mt_rand(0,99999));
saveVar(\"A3_5=\".mt_rand(0,99999));';
<stat>INSERT INTO p26603011_script SET id_question = '1764',id_event = '4',script = '
$rand = mt_rand(1,3);
saveVar(\'C17=\'.$rand);
if ($rand == 2) {saveVar(\'C17_opn=\'.mt_rand(1,30));}
if ($rand == 3) {saveVar(\'C17=99\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1765',id_event = '4',script = '
$rand = mt_rand(1,3);
saveVar(\'C18a=\'.$rand);
if ($rand == 2) {saveVar(\'C18a_opn=\'.mt_rand(1,30));}
if ($rand == 3) {saveVar(\'C18a=99\');}';
<stat>INSERT INTO p26603011_script SET id_question = '1837',id_event = '2',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

$txtQuest = \"Kontaktblatt - Erster Kontaktversuch<br>Status eintragen<br><br>\";


$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest .= \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest .= \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest .= \'\';
} else {
    $txtQuest .= \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}


$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
$lfdsInLinr = array();
$cmplt_linr = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {$cmplt_linr++;}
                                            }
                        }

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";

setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");';
<stat>INSERT INTO p26603011_script SET id_question = '1840',id_event = '2',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

$txtQuest = \"Kontaktblatt - Zweiter Kontaktversuch<br>Status eintragen<br><br>\";


$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest .= \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest .= \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest .= \'\';
} else {
    $txtQuest .= \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}


$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
$lfdsInLinr = array();
$cmplt_linr = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {$cmplt_linr++;}
                                            }
                        }

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";

setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");';
<stat>INSERT INTO p26603011_script SET id_question = '1843',id_event = '2',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

$txtQuest = \"Kontaktblatt - Dritter Kontaktversuch<br>Status eintragen<br><br>\";


$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest .= \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest .= \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest .= \'\';
} else {
    $txtQuest .= \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}


$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
$lfdsInLinr = array();
$cmplt_linr = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {$cmplt_linr++;}
                                            }
                        }

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";

setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");';
<stat>INSERT INTO p26603011_script SET id_question = '1846',id_event = '2',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

$txtQuest = \"Kontaktblatt - Vierter Kontaktversuch<br>Status eintragen<br><br>\";


$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest .= \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest .= \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest .= \'\';
} else {
    $txtQuest .= \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}


$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
$lfdsInLinr = array();
$cmplt_linr = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {$cmplt_linr++;}
                                            }
                        }

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";

setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");';
<stat>INSERT INTO p26603011_script SET id_question = '1851',id_event = '2',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

$txtQuest = \"Kontaktblatt - Fünfter Kontaktversuch<br>Status eintragen<br><br>\";


$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest .= \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest .= \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest .= \'\';
} else {
    $txtQuest .= \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}


$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
$lfdsInLinr = array();
$cmplt_linr = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {$cmplt_linr++;}
                                            }
                        }

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";

setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");';
<stat>INSERT INTO p26603011_script SET id_question = '1837',id_event = '1',script = '
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;

$txtQuest = \"Kontaktblatt - Erster Kontaktversuch<br>Status eintragen<br><br>\";


$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest .= \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest .= \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest .= \'\';
} else {
    $txtQuest .= \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}


$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
$lfdsInLinr = array();
$cmplt_linr = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {$cmplt_linr++;}
                                            }
                        }

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";

setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");

$E18chk = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"count(*) as completes\",\"WHERE user_id = \".$i_userid.\" and status = 1 and status_rec = 1 and flag_bad = 1\");

$dummychk = $E18chk[0][\'completes\'];
if ($dummychk > 0) {saveVar(\'E18dummy=1\');}


';
<stat>INSERT INTO p26603011_script SET id_question = '949',id_event = '1',script = '/*
//echo \"TEST\";
$i_userid = reset(getVar(\"user_id\"));
if ($i_userid==0) $i_userid = 135;
*/

/*
$txtchck = sprintf(\'KvNr,KvTxt_1,KvTxt_2,KvTxt_3,KvTxt_4,KvTxt_5,KvTxt_6,KvTxt_7,KvAnz_1\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
        foreach (explode(\",\",$allvars) as $itemvar) {
               $$itemvar = $checkvar[$itemvar] ;
        }
$icount = 7;
for ($i = 7; $i >= 1; $i--)
     {
        $test = sprintf(\'KvTxt_%d\',$i);
//       echo $test.\"-\".$$test.\"<br>\";
        if (strlen($$test) <= 5)
        {
            $icount = $i-1;
        }
//        echo  $i.\"-\".$$test.\"-\".strlen($$test).\"<br>\";
    }
//echo $icount;
if ($KvAnz_1 == NULL) saveVar(sprintf(\'KvAnz_1=0\'));
 if ($KvNr==99) {
    saveVar(sprintf(\'KvAnz_1=%d\', $icount));
}
// Vorherige Eingaben löschen
$txtchck = sprintf(\'KvNr,kondate_1,konart,konres,konerg,rekondate_1,konver_1,konver_2,konver_3,konver_4,konver_5,konver_6,konver_7,konver_8,konver_9,konver_10,konver_11,konver_12,konver_13,konver_14,konver_opn14,konne,konabschl\');
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
        $test = sprintf(\"$itemvar=NULL\");
        saveVar($test);
    }
*/
/*
$txtchck = sprintf(\'Projektdaten_2,Projektdaten_17,Projektdaten_9,Projektdaten_10,Projektdaten_11,Projektdaten_12,Projektdaten_13,Projektdaten_14,Projektdaten_19\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }
if ($Projektdaten_17 == 1 or $Projektdaten_17 == 0) {
    $txtQuest = \'Sie bearbeiten gerade folgende Adresse:<br>\'.
        \"&nbsp;&nbsp;\".$Projektdaten_9.\" \".$Projektdaten_10.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_11.\" \".$Projektdaten_19.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_12.\" \".$Projektdaten_13.\"<br>\".
        \"&nbsp;&nbsp;\".$Projektdaten_14;
} else if ($Projektdaten_17 == \"2\") {
    $txtQuest = \'Sie führen ein bezahltes Interview durch.<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein.<br>\'.
        \'Nicht den Vorgaben entsprechende Interviews,<br>\'.
        \'können nicht berücksichtigt werden\';
} else if ($Projektdaten_17 == \"3\") {
    $txtQuest = \'Sie führen eines von max. 4 bezahlten Einsteigerinterviews durch<br>\'.
        \'Tragen Sie am Interviewende die korrekte Adresse ein\';
} else {
    $txtQuest = \'Sie führen ein unbezahltes Testinterview durch<br>\';
}
if ($Projektdaten_2 == \"1\") {
    //$txtQuest = \'<b>Adressen der Welle 1 könen nicht mehr bearbeitet werden</b><br>\';
}

$txtchck = sprintf(\'user_id,Projektdaten_4\');
$checkvar = getVar($txtchck);
$allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }

$i_cmplts = getVarFromTable($_SESSION[\'projname\'].\"_structure\", \"Projektdaten_4,Projektdaten_5,Projektdaten_17,AGE_1,SEX\",
    \"WHERE user_id =\".$user_id.
    \" and Projektdaten_4 = \'\".$Projektdaten_4.\"\'\".
    \" and flag_bad = 1\");
echo \"<pre>\";
//var_dump($i_cmplts);
echo \"</pre>\";
$lfdsInLinr = array();
$count_linr = 0;
$cmplt_linr = 0;
$count_him = 0;
$count_her = 0;
$count_young = 0;
$count_old = 0;
if(count($i_cmplts)) {
    foreach ($i_cmplts as $key => $value) {
        if(!in_array($value[\"Projektdaten_5\"],$lfdsInLinr)) {
           $cmplt_linr++;
           $lfdsInLinr[] = $value[\"Projektdaten_5\"];
               if ($value[\"Projektdaten_17\"] == \"2\" || $value[\"Projektdaten_17\"] == \"0\") {
                   if($value[\"SEX\"] == \"1\") {
                       $count_him++;
                   } else if ($value[\"SEX\"] == \"2\") {
                       $count_her++;
                   }
                   if($value[\"AGE_1\"] > 15 && $value[\"AGE_1\"] <= 45) {
                       $count_young ++;
                   } else if ($value[\"AGE_1\"] >= 46 || $value[\"AGE_1\"] <= 99) {
                       $count_old ++;
                   }
            }
        }
    }
}

$txtQuest .= \"<br><br>Sie bearbeiten aktuell folgende Liste \".$Projektdaten_4.\":<br>\".
   \"&nbsp;&nbsp;\".\"Darauf wurden bereits \".$cmplt_linr.\" Interview(s) durchgeführt.\";
//$txtQuest .= \"<br>&nbsp;&nbsp;Insgesamt \".$count_linr.\" Adressen sind bereits abgeschlossen.\";
if ($Projektdaten_17 == 2 || ($Projektdaten_17 == 0 && $i_userid == 135)) {
    $txtQuest .= \"<br><br>Alter und Geschlechtsverteilung:<br>&nbsp;&nbsp;\";
    if ($count_him > $count_her+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_him.\" Männer<br>&nbsp;&nbsp;\";
    if ($count_him > $count_her+1) $txtQuest .= \"</font>\";
    if ($count_her> $count_him +1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_her.\" Frauen<br>&nbsp;&nbsp;\";
    if ($count_her> $count_him +1) $txtQuest .= \"</font>\";
    if ($count_young> $count_old+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_young.\" unter 45<br>&nbsp;&nbsp;\";
    if ($count_young> $count_old+1) $txtQuest .= \"</font>\";
    if ($count_old> $count_young+1) $txtQuest .= \'<font color=\"red\">\';
    $txtQuest .=$count_old.\" 45 oder älter<br>\";
    if ($count_old> $count_young+1) $txtQuest .= \"</font>\";
}
    $txtQuest .= \"<br>\";
setQuestion($txtQuest);
saveVar(\"questtext_1=\'\".$txtQuest.\"\'\");
*/


';
<stat>INSERT INTO p26603011_script SET id_question = '1894',id_event = '2',script = '//var_dump($_SESSION);


$txtchck = sprintf(\'D1,Projektdaten_1,Projektdaten_3,Projektdaten_4,Projektdaten_5,kondata_1,kondata_2,kondata_3,kondata_4,kondata_5,kondata_6\');
    $checkvar = getVar($txtchck);
    $allvars = $txtchck;
    foreach (explode(\",\",$allvars) as $itemvar) {
           $$itemvar = $checkvar[$itemvar] ;
    }


$i_userid = reset(getVar(\"user_id\"));
if ($i_userid == 0 ) {$i_userid = 10;}
$i_info = getVarFromTable(\"_Interviewer\", \"username\", \"WHERE id = $i_userid\");
if (count($i_info) == 1) {$intnr = $i_info[0][\"username\"];}
    

$respGeschl = $D1;
$projNum = $_SESSION[\'proj_name\'];
$projName  = $Projektdaten_1;
$projTxt  = $projName . \' (\' . $projNum .\')\';


saveVar(\'structureid_1=\'.($_SESSION[\'id_record\']));
saveVar(\'user_id=\'.($_SESSION[\'id_user\']));
saveVar(\'source_2=\'.($_SESSION[\'id_record\']));
saveVar(\'source_1=\"\'.$projTxt.\'\"\');


    echo \'<input id=respGeschl  type=\"hidden\"    name=\"forCorona\" value=\"\'.$respGeschl.\'\">\';
    echo \'<input id=respName    type=\"hidden\"    name=\"forCorona\" value=\"\'.$kondata_1.\'\">\';
    echo \'<input id=respPLZ     type=\"hidden\"    name=\"forCorona\" value=\"\'.$kondata_2.\'\">\';
    echo \'<input id=respStreet  type=\"hidden\"    name=\"forCorona\" value=\"\'.$kondata_3.\'\">\';
    echo \'<input id=respHNr     type=\"hidden\"    name=\"forCorona\" value=\"\'.$kondata_4.\'\">\';
    echo \'<input id=respCity    type=\"hidden\"    name=\"forCorona\" value=\"\'.$kondata_5.\'\">\';
    echo \'<input id=respTel     type=\"hidden\"    name=\"forCorona\" value=\"\'.$kondata_6.\'\">\';
    
    echo \'<input id=listNr      type=\"hidden\"    name=\"forCorona\" value=\"\'.$Projektdaten_4.\'\">\';
    echo \'<input id=lfdNr       type=\"hidden\"    name=\"forCorona\" value=\"\'.$Projektdaten_5.\'\">\'; 
    
    echo \'<input id=projNr      type=\"hidden\"    name=\"forCorona\" value=\"\'.$projNum.\'\">\'; 
    echo \'<input id=intNr       type=\"hidden\"    name=\"forCorona\" value=\"\'.$intnr.\'\">\'; 

';
<stat>INSERT INTO p26603011_script SET id_question = '1894',id_event = '3',script = '
</script>

<link rel=\"stylesheet\" href=\"/../webIfesProjects/IchWarDaFormular/datepicker.min.css\">
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/IchWarDaFormular/signature_pad.min.js\"></script>
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/IchWarDaFormular/datepicker.min.js\"></script>
<script language=\"javascript\" type=\"text/javascript\" src=\"/../webIfesProjects/IchWarDaFormular/jspdf.min.js\"></script>

<script src=\"https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js\"></script>

<script type=\"text/javascript\">




function touchHandler(event) {
    var touch = event.changedTouches[0];

    var simulatedEvent = document.createEvent(\"MouseEvent\");
    simulatedEvent.initMouseEvent({
            touchstart: \"mousedown\",
            touchmove: \"mousemove\",
            touchend: \"mouseup\"
        }[event.type], true, true, window, 1,
        touch.screenX, touch.screenY,
        touch.clientX, touch.clientY, false,
        false, false, false, 0, null);

    touch.target.dispatchEvent(simulatedEvent);
   // event.preventDefault();// you can remove preventDefault if it creates problem with other functionalities
}


function init() {
    document.addEventListener(\"touchstart\", touchHandler, true);
    document.addEventListener(\"touchmove\", touchHandler, true);
    document.addEventListener(\"touchend\", touchHandler, true);
    document.addEventListener(\"touchcancel\", touchHandler, true);
}    

init();
  

var canv1 = document.getElementById(\'canvas1\');
var signaturePad1 = new SignaturePad(canv1);
signaturePad1.id = \'sigPad1\';
$(\"canvas1\").append(signaturePad1);

clearButton = document.getElementById(\'clear1\');
clearButton.addEventListener(\'click\', function(event) {
    //console.log(document.getElementsByClassName(\'SignaturePad\'));
    $(\'#wrapper1 canvas\').each(function(idx, item) {
        var context = item.getContext(\"2d\");
        context.clearRect(0, 0, item.width, item.height);
        context.beginPath();        
    });
});



var signaturedialog = document.createElement(\'table\');
signaturedialog.id = \'signaturedialog\';

var canv2 = document.getElementById(\'canvas2\')
var signaturePad2 = new SignaturePad(canv2);
signaturePad2.id= \'sigPad2\';
$(\"canvas2\").append(signaturePad2);


document.body.appendChild(signaturedialog);

popupButton = document.getElementById(\'signpopup\');
popupButton.addEventListener(\'click\', function(event) {
    $(\"#canvas1\").hide();
    $(\"#canvas2\").appendTo(\"#signaturedialog\");

    $(\"#canvas2\").show();  
    $( \"#signaturedialog\" ).dialog({
        \'width\':\'auto\',
        \'title\':\'Bitte unterschreiben Sie hier!\',
            \'buttons\': {
        \'Unterschrift bestätigen\': function(event) {
            $(\"#canvas1\").replaceWith($(\'#canvas2\'));
            $(\"#canvas2\").clone().appendTo(\"#wrapper2\");
           document.getElementById(\'wrapper1\').firstChild.id = \'canvas1\';        
           //console.log(document.getElementById(\'wrapper1\').firstChild);
            
            var canv2 = document.getElementById(\'canvas2\')
            var signaturePad2 = new SignaturePad(canv2);
            signaturePad2.id = \'sigPad2\';
            $(\"canvas2\").append(signaturePad2);
            $(\"#canvas2\").hide();
            $(\"#signaturedialog\").dialog(\'close\');
            
            }
                }
    });
 
    });


//ENTFERNEN WENN FERTIG EINGERICHTET!
function getCookieValue(a) {
   const b = document.cookie.match(\'(^|;)\\\\s*\' + a + \'\\\\s*=\\\\s*([^;]+)\');
   return b ? b.pop() : \'\';
}


//console.log (\"respstreet \" + getCookieValue(\"respstreet\"));
var txtGeschl = \'\';
var respGeschl = document.getElementById(\'respGeschl\').value;
console.log(respGeschl);
if (respGeschl == \'1\') {txtGeschl = \'Herr \';}
if (respGeschl == \'2\') {txtGeschl = \'Frau \';}

document.getElementById(\'resp_adresse\').value=document.getElementById(\"respStreet\").value+ \" \"+document.getElementById(\"respHNr\").value+ \" \"+document.getElementById(\"respPLZ\").value+ \" \"+document.getElementById(\"respCity\").value;
document.getElementById(\'resp_name\').value=txtGeschl+\"\"+document.getElementById(\"respName\").value;
document.getElementById(\'resp_telnr\').value=document.getElementById(\"respTel\").value;

/* NACH EINRICHTEN LÖSCHEN
//console.log(document.cookie);
document.getElementById(\'desElementId_1041\').style.background = \'white\';
document.getElementById(\'desElementId_148\').remove();
document.getElementById(\'desElementId_150\').remove();
//document.getElementById(\'desElementId_153\').remove();
*/


$(\"submitCallStatus\").prop(\"onclick\", null).off(\"click\");

var eventListener = document.getElementById(\'submitCallStatus\');
   eventListener.removeAttribute(\"onclick\");
                                
const picker1 = datepicker(document.querySelector(\'#datum1\'),{startDay: 1});

var today = new Date();
var dd = String(today.getDate()).padStart(2, \'0\');
dd = parseInt(dd);
var mm = String(today.getMonth() + 1).padStart(2, \'0\');
mm = parseInt(mm);
var yyyy = today.getFullYear();

today = dd + \'.\' + mm + \'.\' + yyyy;

document.getElementById(\'datum1\').value = today;

submitAll = document.getElementById(\'submitCallStatus\');



submitAll.addEventListener(\'click\', function(event) {

    var structureId = document.getElementById(\'structureid\').value;
    var respName    = document.getElementById(\'resp_name\').value;
    var respAdresse = document.getElementById(\'resp_adresse\').value;
    var respTelnr   = document.getElementById(\'resp_telnr\').value;
    var respDatum   = document.getElementById(\'datum1\').value;
    var projName    = document.getElementById(\'projNr\').value;
    var intNr      = document.getElementById(\'intNr\').value;

    var listNr      = document.getElementById(\'listNr\').value;
    var lfdNr       = document.getElementById(\'lfdNr\').value;
    var respNameU = respName.split(\" \").join(\"_\");
    var w = window.open(\'about:blank\',\'pdfForm\');
    var c = document.getElementById(\"canvas1\");
    var d = c.toDataURL(\"image/png\"); 
    var htmldoc     = w.document.getElementById(\"htmldoc\");
	var htmltitle   = String(\'CoVid-Formular_\'+projName+\'_\'+listNr+\'_\'+lfdNr+\'_\'+intNr+\'_\'+respNameU+\'_\'+structureId);
    var htmlcontent;
    
        
  $.ajax({
         data: { structureId:structureId,respName:respName,respAdresse:respAdresse,respTelnr:respTelnr,respDatum:respDatum,projName:projName,intNr:intNr},
         type: \"post\",
         url: \"/../webIfesProjects/IchWarDaFormular/updatedata.php\",
         
            success: function(data){

         htmlcontent = \'<style type=\"text/css\" media=\"print\"> @page {size:  auto;margin: 0mm;} html {background-color: #FFFFFF; margin: 0px;} body {border: solid 1px white ; margin: 10mm 15mm 10mm 15mm; } </style><title>\'+htmltitle+\'</title><img src=\"../covid_sticker.PNG\"><style> ul { list-style-type: none; margin: 0; padding: 0; } </style><div style=\"font-family:calibri;color:rgb(0, 38, 165);font-size:32px\">Bitte kontrollieren Sie Ihre eingeblendeten Kontaktdaten und bestätigen Sie die angeführten Angaben mit Ihrer Unterschrift.</div><br><br><p style=\"font-family:calibri;color:rgb(0, 38, 165);font-size:24px;line-height:0%\">Ihre Daten - Angaben zur befragten Person</p><p style=\"font-family:calibri;font-size:18px;\">HINWEIS: Wird ausschließlich für das für Contact Tracing verwendet.</p><br><table style=\"margin-right:auto;margin-left:0px\"><tr><td><p style=\"font-family:calibri;font-size:18px\"><b>Name (Vor-, Zuname)</b> </p></td><td><p style=\"font-family:calibri;font-size:18px\"><u>\'+respName+\'</u></p></td></tr><tr><td><p style=\"font-family:calibri;font-size:18px\"><b>Adresse</b></p></td><td><p style=\"font-family:calibri;font-size:18px\"><u>\'+respAdresse+\'</u></p></td></tr><tr><td><p style=\"font-family:calibri;font-size:18px\"><b>Telefonnummer</b></p></td><td><p style=\"font-family:calibri;font-size:18px\"><u>\'+respTelnr+\'</u></p></td></tr></table><p style=\"font-family:calibri;color:rgb(0, 38, 165);font-size:24px;\">Allgemeine Informationen</p><table style=\"font-family:calibri;font-size:18px\"><tr><td style=\"vertical-align:top\">&#9745;</td><td>Ja, ich habe das IFES-Schreiben \"Vielen herzlichen Dank für Ihre Unterstützung\" mit den Kontaktdaten des IFES (Adresse, Telefonnummer und E-Mail-Adresse) erhalten.</td></tr><tr><td style=\"vertical-align:top\">&#9745;</td><td>Ja, ich bestätige hiermit, dass während der Befragung durch IFES alle gesetzlichen Vorgaben im Rahmen der COVID-19-Sicherheitsmaßnahmen eingehalten wurden.</td></tr><tr><td style=\"vertical-align:top\">&#9745;</td><td>Ja, ich habe den Namen und die Interviewer-Nummer der IFES Feld Interviewerin/des IFES Feld Interviewers erhalten.</td></tr></table><table width=\"100%\"><tr><td><img src=\"\'+d+\'\"/></td> <td><br><br><br><br><br><div vertical-align=\"middle\"><p style=\"font-family:calibri;font-size:18px;\"><b>\'+respDatum+\'</b></p></div></td></tr><tr><td><p style=\"font-family:calibri;font-size:18px\"><span style=\"text-decoration:overline\">Unterschrift der befragten Person</span></p></td><td><p style=\"font-family:calibri;font-size:18px\"><span style=\"text-decoration:overline\">Datum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p></td></td></table><br><br><br><div style=\"font-family:calibri;font-size:18px\"><div>IFES Intern:</div><br><div>Projektnummer: \'+projName+\'</div><div>Listennummer: \'+listNr+\'</div><div>Laufnummer: \'+lfdNr+\'</div><div>Interviewer-Nummer: \'+intNr+\'</div><div id=\"statustxt\">Status: vom Respondent unterschrieben</div></div>\';
         w.document.write(htmlcontent);
         //w.print(); 
         w.close();
         htmlcontent = htmlcontent + \'<<<|||>>>\' + htmltitle;
         var data = new FormData();
         data.append(\"html\" , htmlcontent);
         data.append(\"projname\" , projName);
         var xhr = new XMLHttpRequest();
         xhr.open( \'POST\', \'/../webIfesProjects/IchWarDaFormular/writeform.php\', true );
         xhr.send(data);
         
            },
            
          failure: function(data){
              alert(\"FEHLER!\");
         },
      });


alert(\"Daten erfasst!\");       
recodeClickEvents(this,3); 
    
});


';
<stat>INSERT INTO p26603011_script SET id_question = '1899',id_event = '1',script = '
$formdata   = reset(getVar(\'formdata_1\'));
$checkq     = reset(getVar(\'checkq\'));
$status1 = \'vom Respondent unterschrieben\';
$status2 = \'Respondent verweigert Unterschrift\';
$status3 = \'Unterschrift technisch nicht möglich\';

if ($checkq == 1) {
    $formdata = str_replace($status2,$status1, $formdata);
    $formdata = str_replace($status3,$status1, $formdata);
}
if ($checkq == 2) {
    $formdata = str_replace($status1,$status2, $formdata);
    $formdata = str_replace($status3,$status2, $formdata);
}
if ($checkq == 3) {
    $formdata = str_replace($status1,$status3, $formdata);
    $formdata = str_replace($status2,$status3, $formdata);
}

saveVar(\"formdata_1=\'\".$formdata.\"\'\");
saveVar(\'checkdummy=2\');
if (strlen($formdata) > 4000) saveVar(\'checkdummy=1\');';
<stat>INSERT INTO p26603011_script SET id_question = '1900',id_event = '3',script = '
document.getElementById(\'questBack\').style.visibility=\'hidden\';';
<stat>INSERT INTO p26603011_script SET id_question = '1858',id_event = '1',script = '$userid = reset(getVar(\"user_id\"));

$e18count = reset(getVarFromTable(\"Warpit_Webcati_base.p26603011_structure\", \"count(*) as anz\", \"WHERE status= 1 and status_rec = 1 and flag_bad = 1 and E18_1 >= 1 and user_id = $userid\"));

saveVar(\'E18dummy=0\');
if ($e18count[\'anz\'] >= 1) {saveVar(\'E18dummy=1\');}
';
<stat>INSERT INTO p26603011_tree SET id = '69',id_sup = '230',id_question = '69',orderBy = '1',idLab = 'BREAK',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '133',id_sup = '137',id_question = '133',orderBy = '4',idLab = 'vernr',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '134',id_sup = '137',id_question = '134',orderBy = '5',idLab = 'intnr',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '135',id_sup = '137',id_question = '135',orderBy = '6',idLab = 'verng2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '136',id_sup = '137',id_question = '136',orderBy = '8',idLab = 'verng1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '137',id_sup = '0',id_question = '0',orderBy = '7',idLab = 'VER',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '138',id_sup = '230',id_question = '138',orderBy = '2',idLab = 'ENDIV',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '230',id_sup = '0',id_question = '0',orderBy = '8',idLab = 'END',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '231',id_sup = '0',id_question = '0',orderBy = '4',idLab = 'Start',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '315',id_sup = '964',id_question = '315',orderBy = '2',idLab = 'Projektdaten',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '321',id_sup = '137',id_question = '321',orderBy = '7',idLab = 'verende',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '322',id_sup = '230',id_question = '322',orderBy = '3',idLab = 'fbende',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '324',id_sup = '231',id_question = '0',orderBy = '5',idLab = 'age & sex',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '325',id_sup = '324',id_question = '325',orderBy = '1',idLab = 'AGE',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '326',id_sup = '324',id_question = '326',orderBy = '2',idLab = 'SEX',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '328',id_sup = '231',id_question = '328',orderBy = '1',idLab = 'TEST',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '607',id_sup = '570',id_question = '607',orderBy = '1',idLab = 'agexpf',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '619',id_sup = '630',id_question = '619',orderBy = '1',idLab = 'ang8x1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '631',id_sup = '630',id_question = '631',orderBy = '2',idLab = 'ang8x2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '632',id_sup = '630',id_question = '632',orderBy = '3',idLab = 'ang8x3',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '633',id_sup = '630',id_question = '633',orderBy = '4',idLab = 'ang8x4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '634',id_sup = '630',id_question = '634',orderBy = '5',idLab = 'ang8x5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '635',id_sup = '630',id_question = '635',orderBy = '6',idLab = 'ang8x6',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '636',id_sup = '630',id_question = '636',orderBy = '7',idLab = 'ang8x7',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '637',id_sup = '630',id_question = '637',orderBy = '8',idLab = 'ang8x8',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '948',id_sup = '137',id_question = '948',orderBy = '1',idLab = 'kondata',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '949',id_sup = '231',id_question = '949',orderBy = '2',idLab = 'KvNr',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '950',id_sup = '231',id_question = '950',orderBy = '3',idLab = 'Liste',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '951',id_sup = '137',id_question = '951',orderBy = '2',idLab = 'streetname',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '964',id_sup = '0',id_question = '0',orderBy = '2',idLab = 'DUMMY',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '965',id_sup = '964',id_question = '965',orderBy = '1',idLab = 'questtext',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1693',id_sup = '0',id_question = '0',orderBy = '5',idLab = 'MAIN',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1694',id_sup = '1693',id_question = '0',orderBy = '1',idLab = 'Teil A SozGer',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1695',id_sup = '1694',id_question = '1695',orderBy = '2',idLab = 'A1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1696',id_sup = '1694',id_question = '1696',orderBy = '3',idLab = 'A2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1697',id_sup = '1694',id_question = '1697',orderBy = '4',idLab = 'A3',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1698',id_sup = '1694',id_question = '1698',orderBy = '5',idLab = 'A4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1699',id_sup = '1694',id_question = '1699',orderBy = '6',idLab = 'A5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1700',id_sup = '1694',id_question = '1700',orderBy = '7',idLab = 'A6',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1701',id_sup = '1694',id_question = '1701',orderBy = '8',idLab = 'A7',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1702',id_sup = '1694',id_question = '1702',orderBy = '9',idLab = 'A8a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1703',id_sup = '1694',id_question = '1703',orderBy = '10',idLab = 'A8b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1704',id_sup = '1694',id_question = '1704',orderBy = '11',idLab = 'A9',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1705',id_sup = '1694',id_question = '1705',orderBy = '12',idLab = 'A10',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1706',id_sup = '1694',id_question = '1706',orderBy = '13',idLab = 'A11',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1707',id_sup = '1694',id_question = '1707',orderBy = '14',idLab = 'A12',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1708',id_sup = '1694',id_question = '1708',orderBy = '15',idLab = 'A13',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1709',id_sup = '1694',id_question = '1709',orderBy = '16',idLab = 'A14a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1710',id_sup = '1694',id_question = '1710',orderBy = '17',idLab = 'A14b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1711',id_sup = '1694',id_question = '1711',orderBy = '18',idLab = 'A14c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1712',id_sup = '1694',id_question = '1712',orderBy = '19',idLab = 'A15',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1713',id_sup = '1694',id_question = '1713',orderBy = '20',idLab = 'A16instr',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1714',id_sup = '1694',id_question = '1714',orderBy = '21',idLab = 'A16a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1715',id_sup = '1694',id_question = '1715',orderBy = '22',idLab = 'A16b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1716',id_sup = '1694',id_question = '1716',orderBy = '23',idLab = 'A17',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1717',id_sup = '1694',id_question = '1717',orderBy = '24',idLab = 'A18a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1718',id_sup = '1694',id_question = '1718',orderBy = '25',idLab = 'A18b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1719',id_sup = '1694',id_question = '1719',orderBy = '26',idLab = 'A19a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1720',id_sup = '1694',id_question = '1720',orderBy = '27',idLab = 'A19b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1721',id_sup = '1694',id_question = '1721',orderBy = '28',idLab = 'A19c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1722',id_sup = '1694',id_question = '1722',orderBy = '29',idLab = 'A20',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1723',id_sup = '1693',id_question = '0',orderBy = '2',idLab = 'Teil B SSÖ',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1724',id_sup = '1723',id_question = '1724',orderBy = '2',idLab = 'B1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1725',id_sup = '1723',id_question = '1725',orderBy = '3',idLab = 'B2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1726',id_sup = '1723',id_question = '1726',orderBy = '4',idLab = 'B3',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1727',id_sup = '1723',id_question = '1727',orderBy = '5',idLab = 'B4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1728',id_sup = '1723',id_question = '1728',orderBy = '6',idLab = 'B5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1729',id_sup = '1723',id_question = '1729',orderBy = '7',idLab = 'B6',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1730',id_sup = '1723',id_question = '1730',orderBy = '8',idLab = 'B7',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1731',id_sup = '1723',id_question = '1731',orderBy = '9',idLab = 'B8',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1732',id_sup = '1723',id_question = '1732',orderBy = '10',idLab = 'B9',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1733',id_sup = '1723',id_question = '1733',orderBy = '11',idLab = 'B10',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1734',id_sup = '1723',id_question = '1734',orderBy = '12',idLab = 'B11',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1735',id_sup = '1723',id_question = '1735',orderBy = '13',idLab = 'B12',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1736',id_sup = '1723',id_question = '1736',orderBy = '14',idLab = 'B13',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1737',id_sup = '1723',id_question = '1737',orderBy = '15',idLab = 'B14',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1738',id_sup = '1723',id_question = '1738',orderBy = '16',idLab = 'B15',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1739',id_sup = '1723',id_question = '1739',orderBy = '17',idLab = 'B16',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1740',id_sup = '1723',id_question = '1740',orderBy = '18',idLab = 'B17',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1741',id_sup = '1723',id_question = '1741',orderBy = '19',idLab = 'B18',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1742',id_sup = '1723',id_question = '1742',orderBy = '20',idLab = 'B19',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1743',id_sup = '1693',id_question = '0',orderBy = '3',idLab = 'Teil C Umwelt IV',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1744',id_sup = '1743',id_question = '1744',orderBy = '2',idLab = 'C1a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1745',id_sup = '1743',id_question = '1745',orderBy = '3',idLab = 'C1b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1746',id_sup = '1743',id_question = '1746',orderBy = '4',idLab = 'C2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1747',id_sup = '1743',id_question = '1747',orderBy = '5',idLab = 'C3a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1748',id_sup = '1743',id_question = '1748',orderBy = '6',idLab = 'C3b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1749',id_sup = '1743',id_question = '1749',orderBy = '7',idLab = 'C4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1750',id_sup = '1743',id_question = '1750',orderBy = '8',idLab = 'C5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1751',id_sup = '1743',id_question = '1751',orderBy = '9',idLab = 'C6',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1752',id_sup = '1743',id_question = '1752',orderBy = '10',idLab = 'C7',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1753',id_sup = '1743',id_question = '1753',orderBy = '11',idLab = 'C8',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1754',id_sup = '1743',id_question = '1754',orderBy = '12',idLab = 'C9a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1755',id_sup = '1743',id_question = '1755',orderBy = '13',idLab = 'C9b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1756',id_sup = '1743',id_question = '1756',orderBy = '14',idLab = 'C10',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1757',id_sup = '1743',id_question = '1757',orderBy = '15',idLab = 'C11',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1758',id_sup = '1743',id_question = '1758',orderBy = '16',idLab = 'C12',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1759',id_sup = '1743',id_question = '1759',orderBy = '17',idLab = 'C13',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1760',id_sup = '1743',id_question = '1760',orderBy = '18',idLab = 'C14a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1761',id_sup = '1743',id_question = '1761',orderBy = '19',idLab = 'C14b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1762',id_sup = '1743',id_question = '1762',orderBy = '20',idLab = 'C15',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1763',id_sup = '1743',id_question = '1763',orderBy = '21',idLab = 'C16',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1764',id_sup = '1743',id_question = '1764',orderBy = '22',idLab = 'C17',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1765',id_sup = '1743',id_question = '1765',orderBy = '23',idLab = 'C18a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1766',id_sup = '1743',id_question = '1766',orderBy = '24',idLab = 'C18b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1767',id_sup = '1743',id_question = '1767',orderBy = '25',idLab = 'C19',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1768',id_sup = '1743',id_question = '1768',orderBy = '26',idLab = 'C20a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1769',id_sup = '1743',id_question = '1769',orderBy = '27',idLab = 'C20b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1770',id_sup = '1743',id_question = '1770',orderBy = '28',idLab = 'C21a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1771',id_sup = '1743',id_question = '1771',orderBy = '29',idLab = 'C21b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1772',id_sup = '1743',id_question = '1772',orderBy = '30',idLab = 'C22a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1773',id_sup = '1743',id_question = '1773',orderBy = '31',idLab = 'C22b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1774',id_sup = '1743',id_question = '1774',orderBy = '32',idLab = 'C23',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1775',id_sup = '1743',id_question = '1775',orderBy = '33',idLab = 'C24',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1776',id_sup = '1743',id_question = '1776',orderBy = '34',idLab = 'C25',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1777',id_sup = '1693',id_question = '0',orderBy = '4',idLab = 'Teil D Statistik',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1778',id_sup = '1777',id_question = '1778',orderBy = '2',idLab = 'D1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1779',id_sup = '1777',id_question = '1779',orderBy = '3',idLab = 'D2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1780',id_sup = '1777',id_question = '1780',orderBy = '4',idLab = 'D3',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1781',id_sup = '1777',id_question = '1781',orderBy = '5',idLab = 'D4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1782',id_sup = '1777',id_question = '1782',orderBy = '6',idLab = 'D5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1783',id_sup = '1777',id_question = '1783',orderBy = '7',idLab = 'D6',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1784',id_sup = '1777',id_question = '1784',orderBy = '8',idLab = 'D7',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1785',id_sup = '1777',id_question = '1785',orderBy = '9',idLab = 'D8isco',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1786',id_sup = '1777',id_question = '1786',orderBy = '10',idLab = 'D8opn',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1787',id_sup = '1777',id_question = '1787',orderBy = '11',idLab = 'D9',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1788',id_sup = '1777',id_question = '1788',orderBy = '12',idLab = 'D10',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1789',id_sup = '1777',id_question = '1789',orderBy = '13',idLab = 'D11',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1790',id_sup = '1777',id_question = '1790',orderBy = '14',idLab = 'D12',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1791',id_sup = '1777',id_question = '1791',orderBy = '15',idLab = 'D13',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1792',id_sup = '1777',id_question = '1792',orderBy = '16',idLab = 'D14',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1793',id_sup = '1777',id_question = '1793',orderBy = '17',idLab = 'D15',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1794',id_sup = '1777',id_question = '1794',orderBy = '18',idLab = 'D16',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1795',id_sup = '1777',id_question = '1795',orderBy = '19',idLab = 'D17',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1796',id_sup = '1777',id_question = '1796',orderBy = '20',idLab = 'D18isco',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1797',id_sup = '1777',id_question = '1797',orderBy = '21',idLab = 'D18opn',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1798',id_sup = '1777',id_question = '1798',orderBy = '22',idLab = 'D19',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1799',id_sup = '1777',id_question = '1799',orderBy = '23',idLab = 'D20',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1800',id_sup = '1777',id_question = '1800',orderBy = '24',idLab = 'D21a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1801',id_sup = '1777',id_question = '1801',orderBy = '25',idLab = 'D21b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1802',id_sup = '1777',id_question = '1802',orderBy = '26',idLab = 'D22VATisco',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1803',id_sup = '1777',id_question = '1803',orderBy = '27',idLab = 'D22VATopn',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1804',id_sup = '1777',id_question = '1804',orderBy = '28',idLab = 'D22MUTisco',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1805',id_sup = '1777',id_question = '1805',orderBy = '29',idLab = 'D22MUTopn',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1806',id_sup = '1777',id_question = '1806',orderBy = '30',idLab = 'D23',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1807',id_sup = '1777',id_question = '1807',orderBy = '31',idLab = 'D24',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1808',id_sup = '1777',id_question = '1808',orderBy = '32',idLab = 'D25',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1809',id_sup = '1777',id_question = '1809',orderBy = '33',idLab = 'D26',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1810',id_sup = '1777',id_question = '1810',orderBy = '34',idLab = 'D27',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1811',id_sup = '1777',id_question = '1811',orderBy = '35',idLab = 'D28',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1812',id_sup = '1777',id_question = '1812',orderBy = '36',idLab = 'D29',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1813',id_sup = '1777',id_question = '1813',orderBy = '37',idLab = 'D30',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1814',id_sup = '1777',id_question = '1814',orderBy = '38',idLab = 'D31',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1815',id_sup = '1777',id_question = '1815',orderBy = '39',idLab = 'D32',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1816',id_sup = '1777',id_question = '1816',orderBy = '40',idLab = 'D33',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1817',id_sup = '1777',id_question = '1817',orderBy = '41',idLab = 'D34',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1818',id_sup = '1777',id_question = '1818',orderBy = '42',idLab = 'D35',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1819',id_sup = '1777',id_question = '1819',orderBy = '43',idLab = 'D35b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1820',id_sup = '1777',id_question = '1820',orderBy = '44',idLab = 'D36',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1821',id_sup = '1777',id_question = '1821',orderBy = '45',idLab = 'D36b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1822',id_sup = '1777',id_question = '1822',orderBy = '46',idLab = 'D37',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1823',id_sup = '1777',id_question = '1823',orderBy = '47',idLab = 'D38',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1824',id_sup = '1777',id_question = '1824',orderBy = '48',idLab = 'D39',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1825',id_sup = '1777',id_question = '1825',orderBy = '50',idLab = 'D40',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1826',id_sup = '1777',id_question = '1826',orderBy = '51',idLab = 'D41',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1827',id_sup = '1777',id_question = '1827',orderBy = '52',idLab = 'D42',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1828',id_sup = '1777',id_question = '1828',orderBy = '53',idLab = 'D43',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1829',id_sup = '1777',id_question = '1829',orderBy = '54',idLab = 'D44',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1830',id_sup = '1777',id_question = '1830',orderBy = '55',idLab = 'D45instr',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1831',id_sup = '1777',id_question = '1831',orderBy = '56',idLab = 'D45',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1832',id_sup = '1777',id_question = '1832',orderBy = '57',idLab = 'D46',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1833',id_sup = '1743',id_question = '1833',orderBy = '35',idLab = 'C25a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1834',id_sup = '1777',id_question = '1834',orderBy = '49',idLab = 'D40instr',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1835',id_sup = '1693',id_question = '0',orderBy = '5',idLab = 'Teil E IV Frabo',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1836',id_sup = '0',id_question = '0',orderBy = '3',idLab = 'Kontaktblatt',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1837',id_sup = '1836',id_question = '1837',orderBy = '1',idLab = 'Kon1a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1838',id_sup = '1836',id_question = '1838',orderBy = '3',idLab = 'Kon1b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1839',id_sup = '1836',id_question = '1839',orderBy = '4',idLab = 'Kon1c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1840',id_sup = '1836',id_question = '1840',orderBy = '5',idLab = 'Kon2a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1841',id_sup = '1836',id_question = '1841',orderBy = '7',idLab = 'Kon2b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1842',id_sup = '1836',id_question = '1842',orderBy = '8',idLab = 'Kon2c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1843',id_sup = '1836',id_question = '1843',orderBy = '9',idLab = 'Kon3a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1844',id_sup = '1836',id_question = '1844',orderBy = '11',idLab = 'Kon3b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1845',id_sup = '1836',id_question = '1845',orderBy = '12',idLab = 'Kon3c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1846',id_sup = '1836',id_question = '1846',orderBy = '13',idLab = 'Kon4a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1847',id_sup = '1836',id_question = '1847',orderBy = '19',idLab = 'Kon5b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1848',id_sup = '1836',id_question = '1848',orderBy = '20',idLab = 'Kon5c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1849',id_sup = '1836',id_question = '1849',orderBy = '15',idLab = 'Kon4b',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1850',id_sup = '1836',id_question = '1850',orderBy = '16',idLab = 'Kon4c',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1851',id_sup = '1836',id_question = '1851',orderBy = '17',idLab = 'Kon5a',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1858',id_sup = '1835',id_question = '1858',orderBy = '2',idLab = 'E1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1859',id_sup = '1835',id_question = '1859',orderBy = '3',idLab = 'E2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1860',id_sup = '1835',id_question = '1860',orderBy = '4',idLab = 'E3',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1861',id_sup = '1835',id_question = '1861',orderBy = '5',idLab = 'E4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1862',id_sup = '1835',id_question = '1862',orderBy = '6',idLab = 'E5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1863',id_sup = '1835',id_question = '1863',orderBy = '7',idLab = 'E6',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1864',id_sup = '1835',id_question = '1864',orderBy = '8',idLab = 'E7',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1865',id_sup = '1835',id_question = '1865',orderBy = '9',idLab = 'E8',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1866',id_sup = '1835',id_question = '1866',orderBy = '10',idLab = 'E9',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1867',id_sup = '1835',id_question = '1867',orderBy = '11',idLab = 'E10',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1868',id_sup = '1835',id_question = '1868',orderBy = '12',idLab = 'E11',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1869',id_sup = '1835',id_question = '1869',orderBy = '13',idLab = 'E12',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1870',id_sup = '1835',id_question = '1870',orderBy = '14',idLab = 'E13',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1871',id_sup = '1835',id_question = '1871',orderBy = '15',idLab = 'E14',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1872',id_sup = '1835',id_question = '1872',orderBy = '16',idLab = 'E15',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1873',id_sup = '1835',id_question = '1873',orderBy = '17',idLab = 'E16',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1874',id_sup = '1835',id_question = '1874',orderBy = '18',idLab = 'E17',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1875',id_sup = '1835',id_question = '1875',orderBy = '20',idLab = 'E18',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1876',id_sup = '1835',id_question = '1876',orderBy = '19',idLab = 'E18dummy',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1878',id_sup = '1836',id_question = '1878',orderBy = '2',idLab = 'tsdKon1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1879',id_sup = '1836',id_question = '1879',orderBy = '6',idLab = 'tsdKon2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1880',id_sup = '1836',id_question = '1880',orderBy = '10',idLab = 'tsdKon3',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1881',id_sup = '1836',id_question = '1881',orderBy = '14',idLab = 'tsdKon4',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1882',id_sup = '1836',id_question = '1882',orderBy = '18',idLab = 'tsdKon5',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1884',id_sup = '231',id_question = '1884',orderBy = '4',idLab = 'methode',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1885',id_sup = '1694',id_question = '1885',orderBy = '1',idLab = 'Astart',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1886',id_sup = '1723',id_question = '1886',orderBy = '1',idLab = 'Bstart',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1887',id_sup = '1743',id_question = '1887',orderBy = '1',idLab = 'Cstart',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1888',id_sup = '1777',id_question = '1888',orderBy = '1',idLab = 'Dstart',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1889',id_sup = '1835',id_question = '1889',orderBy = '1',idLab = 'Estart',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1890',id_sup = '1835',id_question = '1890',orderBy = '21',idLab = 'Eend',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1891',id_sup = '0',id_question = '1891',orderBy = '1',idLab = 'testdatensprung',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1892',id_sup = '137',id_question = '0',orderBy = '3',idLab = 'Covid_Kontaktform',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1893',id_sup = '1892',id_question = '1893',orderBy = '1',idLab = 'structureid',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1894',id_sup = '1892',id_question = '1894',orderBy = '2',idLab = 'formular',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1895',id_sup = '1892',id_question = '1895',orderBy = '3',idLab = 'source',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1896',id_sup = '1892',id_question = '1896',orderBy = '4',idLab = 'resp',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1897',id_sup = '1892',id_question = '1897',orderBy = '5',idLab = 'iv',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1898',id_sup = '1892',id_question = '1898',orderBy = '6',idLab = 'formdata',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1899',id_sup = '1892',id_question = '1899',orderBy = '8',idLab = 'checkdummy',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1900',id_sup = '1892',id_question = '1900',orderBy = '7',idLab = 'checkq',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1901',id_sup = '1892',id_question = '1901',orderBy = '9',idLab = 'CoronaTS',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1902',id_sup = '0',id_question = '0',orderBy = '6',idLab = 'Rek2021',node_img = '',is_leaf = '0',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1903',id_sup = '1902',id_question = '1903',orderBy = '1',idLab = 'rKrypto1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1904',id_sup = '1902',id_question = '1904',orderBy = '2',idLab = 'rKrypto2',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1905',id_sup = '1902',id_question = '1905',orderBy = '3',idLab = 'rFrailty',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1906',id_sup = '1902',id_question = '1906',orderBy = '4',idLab = 'r2021',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1907',id_sup = '1902',id_question = '1907',orderBy = '5',idLab = 'rFrailtyRef1',node_img = '',is_leaf = '1',showTogether = '0';
<stat>INSERT INTO p26603011_tree SET id = '1908',id_sup = '1902',id_question = '1908',orderBy = '6',idLab = 'rFrailtyRef2',node_img = '',is_leaf = '1',showTogether = '0';