Google Suche
eBay Suche
Werbung
Werbung
Lotto Zufallsgenerator
Lotto Zufallsgenerator
Lotto Zufallsgenerator
var Normalscheingrundgebuehr = new Array("","0.50","0.70","0.70","0.70","0.70","","","0.70");
var MItippreihePreis = new Array("","0.75","1.50","2.25","3.00","3.75","","","6.00");
var SAtippreihePreis = new Array("","0.75","1.50","2.25","3.00","3.75","","","6.00");
var MIspiel77Preis = new Array("","1.50","3.00","4.50","6.00","7.50","","","12.00");
var SAspiel77Preis = new Array("","1.50","3.00","4.50","6.00","7.50","","","12.00");
var MIsuper6Preis = new Array("","1.25","2.50","3.75","5.00","6.25","","","10.00");
var SAsuper6Preis = new Array("","1.25","2.50","3.75","5.00","6.25","","","10.00");
function BerechnePreis(submitFlag)
{
if (document.lottonormalschein.Super6.checked) var super6 = true; else var super6 = false;
if (document.lottonormalschein.Spiel77.checked) var spiel77 = true; else var spiel77 = false;
if (document.lottonormalschein.Teilnahme[0].checked) { var samstag = true; var mittwoch = false; }
if (document.lottonormalschein.Teilnahme[1].checked) { var samstag = false; var mittwoch = true; }
if (document.lottonormalschein.Teilnahme[2].checked) { var samstag = true; var mittwoch = true; }
var laufzeit = document.lottonormalschein.Laufzeit.options[document.lottonormalschein.Laufzeit.selectedIndex].value;
var preis = 0;
if(samstag) preis += Number(Normalscheingrundgebuehr[laufzeit]);
if(mittwoch) preis += Number(Normalscheingrundgebuehr[laufzeit]);
if(spiel77 && samstag) preis += Number(SAspiel77Preis[laufzeit]);
if(spiel77 && mittwoch) preis += Number(MIspiel77Preis[laufzeit]);
if(super6 && samstag) preis += Number(SAsuper6Preis[laufzeit]);
if(super6 && mittwoch) preis += Number(MIsuper6Preis[laufzeit]);
if ((isNaN(document.lottonormalschein.AnzahlQuicktippReihen.value))) {
document.lottonormalschein.AnzahlQuicktippReihen.value=12;
alert('Bitte geben Sie eine Zahl im Feld "Lottofelder" ein');
}
if (document.lottonormalschein.AnzahlQuicktippReihen.value > 12) {
document.lottonormalschein.AnzahlQuicktippReihen.value=12;
alert('Bitte geben Sie maximal 12 Lottofelder ein');
}
if (isNaN(document.lottonormalschein.AnzahlQuicktippScheine.value)){
document.lottonormalschein.AnzahlQuicktippScheine.value=1;
alert('Bitte geben Sie eine Zahl im Feld "Scheine" ein');
}
rowAmount=document.lottonormalschein.AnzahlQuicktippReihen.value;
if ((submitFlag == 1) && (rowAmount < 2)){
submitFlag = 0;
alert("Sie muessen mindestens 2 Lottofelder ausfuellen.");
}
var anzahlreihen = document.lottonormalschein.AnzahlQuicktippReihen.value;
if(samstag) preis += Number(SAtippreihePreis[laufzeit] * anzahlreihen);
if(mittwoch) preis += Number(MItippreihePreis[laufzeit] * anzahlreihen);
preis *= Number(document.lottonormalschein.AnzahlQuicktippScheine.value);
preis += 0.00001;
bla = String(preis).split(".");
if(bla[1])
if(bla[1].length == 1)
bla2 = bla[0] + "," + bla[1] + "0 EUR";
else
bla2 = bla[0] + "," + bla[1].slice(0,2) + " EUR";
else
bla2 = bla + ",00 EUR";
document.lottonormalschein.preis.value = bla2;
if (submitFlag == 1)
document.lottonormalschein.submit();
}
function TippreiheClear( Tippreihe ){
for ( x = 1; x <= 6; x++ ){
tippzahlname = ( "Tippreihe" + Tippreihe + "_Zahl" + x );
this.document.lottonormalschein[ tippzahlname ].value = "";
}
BerechnePreis();
}
function TippreiheZufall( Tippreihe ){
var ziehung = new Array();
for ( x = 0; x < 6; x++ ){
ziehung[x] = Math.round( (Math.random()*48)+1 );
}
for ( x = 0; x < 6; x++ ){
ref = ziehung[x];
for ( y = 0; y < 6; y++ ){
if ( ref == ziehung[y] && y != x ){
TippreiheZufall( Tippreihe );
return;
}
}
}
for ( z = 0; z < 5; z++ ){
for (x=0;x<5;x++){
zahl1 = ziehung[x];
zahl2 = ziehung[x+1];
beg = Math.min(zahl1,zahl2);
end = Math.max(zahl1,zahl2);
ziehung[x] = beg;
ziehung[x+1] = end;
}
}
for ( x = 1; x <= 6; x++ ){
tippzahlname = ( "Tippreihe" + Tippreihe + "_Zahl" + x );
this.document.lottonormalschein[ tippzahlname ].value = ziehung[x-1];
}
BerechnePreis();
return 1;
}
window.onload=BerechnePreis;
document.write('');
document.write('
');
document.write('
');
Lotto Zuffalsgenerator
zurück zum
Lottoservice
Navigation
Andere Preisvergleiche