holdkarte=karte;
function tagundmonatloop() {
////////////////////////////////////////////////////////////////////
if(document.getElementById('timkarte')) {
if(document.getElementById('timkarte').selectedIndex==2) {
document.getElementById('alwayscard').style.display='block';
if(karte!=kartef)setTimeout("validate()",111);
karte=kartef;
document.getElementById('kartxt').innerHTML=document.getElementById('kartxt').innerHTML.replace(/Karte/,'ᴋᴀʀᴛᴇɴ'+' ('+document.form1.timrepeat.value+')');
document.getElementById('kartxt').innerHTML=document.getElementById('kartxt').innerHTML.replace(/card/,'ᴄᴀʀᴅs'+' ('+document.form1.timrepeat.value+')');
document.getElementById('kartxt').innerHTML=document.getElementById('kartxt').innerHTML.replace(/carte/,'ᴄᴀʀᴛᴇs'+' ('+document.form1.timrepeat.value+')');
}
else {
document.getElementById('alwayscard').style.display='none';
karte=holdkarte;
}
}
////////////////////////////////////////////////////////////////////
tagundmonat();
if(whodelivers=='post') {
document.getElementById('pexinfo').innerHTML="For the destination "+document.form1.toplz.value+" "+document.form1.toort.value+", the shipment will be made by express parcel; the resulting delivery charges total "+document.getElementById("lieferung").innerHTML+" If you wish the cheaper delivery by a partner store of Fleurop, please enter the word FLEUROP in the field «Instructions concerning delivery» below.
";
}
else document.getElementById('pexinfo').innerHTML='';
if(document.form1.prechf) {
if(document.form1.prechf.value/document.form1.timrepeat.value0) {
document.getElementsByTagName('table')[4].style.marginTop='-22px';
document.getElementsByTagName('table')[6].style.marginTop='-80px';
}
else {
document.getElementsByTagName('table')[5].style.marginTop='-22px';
document.getElementsByTagName('table')[7].style.marginTop='-55px';
}
setTimeout("tagundmonatloop()",1111);
}
function tagundmonat() {
womostring=document.getElementById('timwomo').innerHTML;
if(location.href.indexOf("mobile.php")>0) {
womostring=womostring.replace(/WOCHENTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/MO/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/DI/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/MI/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/DO/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/FR/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/SA/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/SO/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/MO/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/TU/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/WE/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/TH/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/FR/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/SA/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/SU/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/LU/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/MA/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/ME/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/JE/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/VE/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/SA/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
womostring=womostring.replace(/DI/g,document.getElementById('zeigwt').innerHTML.toUpperCase().substring(0,2));
}
else {
womostring=womostring.replace(/WOCHENTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/MONTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/DIENSTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/MITTWOCH/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/DONNERSTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/FREITAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/SAMSTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/SONNTAG/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/MONDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/TUESDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/WEDNESDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/THURSDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/FRIDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/SATURDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/SUNDAY/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/LUNDI/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/MARDI/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/MERCREDI/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/JEUDI/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/VENDREDI/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/SAMEDI/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
womostring=womostring.replace(/DIMANCHE/g,document.getElementById('zeigwt').innerHTML.toUpperCase());
}
womostring=womostring.replace(/31/g,'DDDDDDD');
womostring=womostring.replace(/30/g,'DDDDDDD');
womostring=womostring.replace(/29/g,'DDDDDDD');
womostring=womostring.replace(/28/g,'DDDDDDD');
womostring=womostring.replace(/27/g,'DDDDDDD');
womostring=womostring.replace(/26/g,'DDDDDDD');
womostring=womostring.replace(/25/g,'DDDDDDD');
womostring=womostring.replace(/24/g,'DDDDDDD');
womostring=womostring.replace(/23/g,'DDDDDDD');
womostring=womostring.replace(/22/g,'DDDDDDD');
womostring=womostring.replace(/21/g,'DDDDDDD');
womostring=womostring.replace(/20/g,'DDDDDDD');
womostring=womostring.replace(/19/g,'DDDDDDD');
womostring=womostring.replace(/18/g,'DDDDDDD');
womostring=womostring.replace(/17/g,'DDDDDDD');
womostring=womostring.replace(/16/g,'DDDDDDD');
womostring=womostring.replace(/15/g,'DDDDDDD');
womostring=womostring.replace(/14/g,'DDDDDDD');
womostring=womostring.replace(/13/g,'DDDDDDD');
womostring=womostring.replace(/12/g,'DDDDDDD');
womostring=womostring.replace(/11/g,'DDDDDDD');
womostring=womostring.replace(/10/g,'DDDDDDD');
womostring=womostring.replace(/9/g,'DDDDDDD');
womostring=womostring.replace(/8/g,'DDDDDDD');
womostring=womostring.replace(/7/g,'DDDDDDD');
womostring=womostring.replace(/6/g,'DDDDDDD');
womostring=womostring.replace(/5/g,'DDDDDDD');
womostring=womostring.replace(/4/g,'DDDDDDD');
womostring=womostring.replace(/3/g,'DDDDDDD');
womostring=womostring.replace(/2/g,'DDDDDDD');
womostring=womostring.replace(/1/g,'DDDDDDD');
womostring=womostring.replace(/DDDDDDD/g,document.getElementById('d').value);
if(document.getElementById('timwomo').innerHTML!=womostring)document.getElementById('timwomo').innerHTML=womostring;
}
function validaterepeat() {
if(document.getElementById('form1') && location.href.indexOf('s_order')<0) {
if(document.getElementById('timkarte')) {
if(document.getElementById('timkarte').selectedIndex==2)document.form1.kok.value=document.form1.kok.value*document.form1.timrepeat.value-0;
if(document.getElementById('timkarte').selectedIndex>0)document.form1.kar[0].click();
else document.form1.kar[1].click();
}
validateplz();
document.form1.kol.value=document.form1.kol.value*document.form1.timrepeat.value-0;
if(document.form1.kol.value==='NaN')document.form1.kol.value=7*document.form1.timrepeat.value-0;
if(document.form1.vas[0].checked)document.form1.kov.value=Math.floor((2.5*karte+0.2*document.form1.prechf.value/document.form1.timrepeat.value-0));
else document.form1.kov.value=0;
document.form1.kot.value=(document.form1.prechf.value-0)+(document.form1.kok.value-0)+(document.form1.kov.value-0)+(document.form1.kol.value-0);
}
}
function timrepval() {
document.form1.wae.value=document.form1.timwae.value
document.form1.pre.value=document.form1.timpre.value*document.form1.timrepeat.value
document.form1.timrem.value='Subscription Abo: '+document.form1.timrepeat.value+'x '+document.form1.timpre.value+' '+document.form1.timwae.value.toUpperCase()+' '+document.form1.timjeden.value+' '+document.form1.timwomo.value+'; '+document.form1.timclosed.value+' '+String.fromCharCode(11044)+' '+document.form1.timdesc.value+' '+String.fromCharCode(11044)+' '+document.form1.timkarte.value+' '+String.fromCharCode(11044)+' '+document.form1.timremnew.value+' ';
document.form1.timrem.value=document.form1.timrem.value.replace(/\s\s+/g,' ');
if(document.getElementById('proapri'))document.getElementById('proapri').style.display='none';
if(document.getElementById('timkarte')) {
if(document.getElementById('timkarte').selectedIndex==0) {
if(document.getElementById('trkar1'))document.getElementById('trkar1').style.display='none';
if(document.getElementById('trkar2'))document.getElementById('trkar2').style.display='none';
if(document.getElementById('trkar3'))document.getElementById('trkar3').style.display='none';
}
}
if(document.getElementById('TrScLf'))document.getElementById('TrScLf').style.display='none';
if(document.getElementById('destination'))document.getElementById('destination').style.display='none';
if(document.getElementById('ttitle1'))document.getElementById('ttitle1').innerHTML='First delivery on (arrival)';
}
function isInViewport(element) {
var rect = element.getBoundingClientRect();
var html = document.documentElement;
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || html.clientHeight) &&
rect.right <= (window.innerWidth || html.clientWidth)
);
}
function flashzeigtag() {
if(!isInViewport(document.getElementById('zeigwt'))){document.getElementById('zeigwt').scrollIntoView();window.scrollBy(0,-100);}
if(location.href.indexOf('mobile.php')>0)window.scrollBy(0,-50);
document.getElementById('zeigwt').style.background='yellow';
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*2);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*3);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*4);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*5);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*6);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*7);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*8);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*9);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*10);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*11);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*12);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*13);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*14);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*15);
setTimeout("document.getElementById('zeigwt').style.background='yellow'",777*16);
setTimeout("document.getElementById('zeigwt').style.background='transparent'",777*17);
}
if(document.getElementById('form1') && location.href.indexOf('s_order')<0) {
setTimeout("tagundmonatloop()",1111);
setTimeout("timrepval()",111);
setTimeout("tagundmonat()",222);
andererwochentag="In the selector for the periodicity the weekday of the date of the first delivery is taken which you set above.\n\nPlease set the date of the first delivery so that the weekday there (Monday to Saturday are possible) also fits for the subsequent deliveries.";
document.getElementById('trtimrem').innerHTML='\
\