var finished=0; var imagesOk=0; var debug=0; setTimeout('checkTimeout()',8000); function checkWebwasherImage(nr) { if (finished==1) { if (debug==1) alert('checkWebwasherImage '+nr+' but finished'); return; } if (debug==1) alert('checkWebwasherImage '+nr); if (document.getElementById(nr).width!='234') { if (debug==1) alert('washer erkannt bei '+nr); finished=1; document.getElementById('webwasher').src='http://www.funtastic-party.de/a2/fw/webwasher.php?washer=1'; } else { imagesOk++; if (imagesOk==2) { if (debug==1) alert('beider bilder ok'); finished=1; document.getElementById('webwasher').src='http://www.funtastic-party.de/a2/fw/webwasher.php?ok=1'; } } } function checkError() { if (finished==1) return; finished=1; if (debug==1) alert('washer nach abort'); document.getElementById('webwasher').src='http://www.funtastic-party.de/a2/fw/webwasher.php?washer=1'; } function checkTimeout() { if (finished==1) return; finished=1; if (debug==1) alert('washer nach timeout'); document.getElementById('webwasher').src='http://www.funtastic-party.de/a2/fw/webwasher.php?washer=1'; } document.write(''); document.write('');