function initSearch(count, formname) { document.getElementById('text').style.display = "none"; document.getElementById('result').style.display = "block"; countdown = 30; document.reisen.Submit.disabled = true; Start(); document.getElementById('result').innerHTML = sdiv; document.getElementById('theText').innerHTML = 'Ihre Reise wird gesucht'; document.getElementById('theTime').innerHTML = countdown; VON = '&VON_region=' + document.forms[formname].VON_region.value; NACH = '&NACH_region=' + document.forms[formname].NACH_region.value; DVON = '&DVON=' + document.forms[formname].DVON.value; MVON = '&MVON=' + document.forms[formname].MVON.value; DAUER = '&DAUER=' + document.forms[formname].DAUER.value; ADT = '&ADT=' + document.forms[formname].ADT.value; STERNE = '&STERNE=' + document.forms[formname].STERNE.value; ZTYP = '&ZTYP=' + document.forms[formname].ZTYP.value; ESSEN = '&ESSEN=' + document.forms[formname].ESSEN.value; rand = '&val=' + Math.random(); // Bitte den Randomwert unbedingt anhängen da IE sonst nur den Cache nutzt! SEARCH = 'SEARCH=reisen'; WHICH = '&WHICH=16' URL = '/inc/XML_Transfer.php?'; Link = URL + SEARCH + WHICH + VON + NACH + DVON + MVON + DAUER + ADT + STERNE + ZTYP + ESSEN + rand; loadXML(Link); } function parseXML() { referer = ''; var items = req.responseXML.getElementsByTagName("Treffer"); Stop(); document.reisen.Submit.disabled = false; var output = '\n'; if(items.length > 0) { for (var i = 0; i < items.length; i++) { if(i == 0) { output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; } Preis = getElementTextNS_Suche("", "Preis", items[i], 0); Einzelpreis = getElementTextNS_Suche("", "Einzelpreis", items[i], 0); Brutto = getElementTextNS_Suche("", "Brutto", items[i], 0); Zielort = getElementTextNS_Suche("", "Zielort", items[i], 0); ZielRegion = getElementTextNS_Suche("", "ZielRegion", items[i], 0); Anbieter = getElementTextNS_Suche("", "Anbieter", items[i], 0); Buchungslink = getElementTextNS_Suche("", "Buchungslink", items[i], 0); output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; } } else { output = output + ' \n'; output = output + ' \n'; output = output + ' \n'; } output = output + '
PreisOrt/AnlageZielregionAnbieterAngebotslink
ab ' + Preis + ' €' + Zielort + '
' + ZielRegion + '' + Anbieter + 'zum Anbieter
Leider nichts gefunden
\n'; document.getElementById('result').innerHTML = output; }