var useSlider = 1; function clear_whitespace(what) { return ( what == '%20' ? ' ' : what ); } function createCarRow(R, hidden) { hidden = hidden ? true : false; if( hidden ) duplicateEntries[duplicateEntries.length+1] = 'res_' + R.Index; var html = ''; html += '
\n'; return html; } function dec2bin(num) { var bin = ''; do { bin = ((num % 2) ? '1' : '0') + bin; num = Math.floor(num / 2); } while(num > 0); return bin; } function initSearch(count, formname) { document.getElementById('text').style.display = "none"; document.getElementById('result').style.display = "block"; countdown = 30; document.mietwagen.Submit.disabled = true; Start(); document.getElementById('result').innerHTML = sdiv; document.getElementById('theText').innerHTML = 'Ihr Mietwagen wird gesucht'; document.getElementById('theTime').innerHTML = countdown; NACH = '&NACH=' + document.forms[formname].VON.value; DVON = '&DVON=' + document.forms[formname].DVON.value; MVON = '&MVON=' + document.forms[formname].MVON.value; TIME = '&TIME=' + document.forms[formname].TIME.value; DNACH = '&DNACH=' + document.forms[formname].DNACH.value; MNACH = '&MNACH=' + document.forms[formname].MNACH.value; TIME2 = '&TIME2=' + document.forms[formname].TIME2.value; ALTER = (document.forms[formname].ALTER.checked == true) ? '20' : '30'; // if(document.forms[formname].ALTER.checked == true) // { // ALTER = '20'; // } // else // { // ALTER = '30'; // } ALTER = '&ALTER=' + ALTER; rand = '&val=' + Math.random(); // Bitte den Randomwert unbedingt anhängen da IE sonst nur den Cache nutzt! SEARCH = 'SEARCH=mietwagen'; WHICH = '&WHICH=5' URL = '/inc/XML_Transfer.php?'; Link = URL + SEARCH + WHICH + NACH + DVON + MVON + TIME + DNACH + MNACH + TIME2 + ALTER + rand; loadXML(Link); } function parseXML() { referer = ''; var items = req.responseXML.getElementsByTagName("Treffer"); Stop(); document.mietwagen.Submit.disabled = false; var min_preis = 0; var max_preis = 0; global_items = items.length; var output = '| Ergebnis | |||||
| Leider nichts gefunden | \n';
output = output + ' |||||
| \n';
output_r += ' ';
output_r += ' ';
output_r += ' ';
output_r += ' | ';
output_r += ' \n';
output_r += ' ';
output_r = output_r + ' Automatik ';
output_r += ' '; output_r = output_r + ' Hand-Schaltung '; output_r = output_r + ' ohne Klimaanlage '; output_r += ' | ';
output_r += ' \n';
output_r += ' ';
var output_sub1 = '';
var output_sub2 = '';
var output_sub3 = '';
for(keyVar in acrissclasses)
{
checkboxOut = ' ' + keyVar + ' ';
output_r += ' '; if( keyVar.match(/Mini|Economy|Compact/) ) output_sub1 += checkboxOut; if( keyVar.match(/Intermediate|Standard|Fullsize/) ) output_sub2 += checkboxOut; if( keyVar.match(/Premium|Luxury|Oversize/) ) output_sub3 += checkboxOut; } output_r += '
| ';
output_r += '