1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105: | <table width=519>
<tr>
<td class=c colspan=2>Flotte verschicken </td>
</tr>
<tr>
<th>Geschwindigkeit</th>
<th><select name='s' size=1 onchange='y()'>
<option value='10'>100%
<option value='9'>90%
<option value='8'>80%
<option value='7'>70%
<option value='6'>60%
<option value='5'>50%
<option value='4'>40%
<option value='3'>30%
<option value='2'>20%
<option value='1'>10%
</select></th>
</tr>
<tr>
<th>Entfernung bis zum nächsten Handelssprungtor</th>
<th><div id='w'>-</div></th>
</tr>
<tr>
<th>Dauer (eine Strecke)</th>
<th><div onblur='y()' id='x'>-</div></th>
</tr>
<tr>
<th>Treibstoffverbrauch</th>
<th><div id='z'>-</div></th>
</tr>
<tr>
<th>Max. Geschwindigkeit</th>
<th>$geschwindigkeit</th>
</tr>
<tr>
<th>Ladekapazität</th>
<th>250000 Einheiten</th>
</tr>
<tr>
<th colspan=2>
<input type=submit name='cha' value='Zur Auswahl'>
<input type=submit value='Weiter' name='dr'></th>
</tr>
</table>
<script type='text/javascript'>
document.onkeyup = y;
document.onchange = y;
function tp(ac){
ei=ac+'';
au='';
while(ei.length>3){
au='.'+ei.substring(ei.length-3,ei.length)+au;
ei=ei.substring(0,ei.length-3)
}
au=ei+au;
return au
}
function y(){
astate=$a;
bstate=$b;
cstate=$c;
p=this.aa.s.value;
a=$a;
b=0;
c=0;
m=0;
h=0;
en='';
if(bstate>250){
b=500}
if(b!=413){
d=2700+5*Math.abs((b-bstate)*19)
}
else if(c!=5){
d=1000+Math.abs((c-cstate)*5)
}
e=Math.round(($c202*10+$c203*50)*d/35000*((p/10)+1)*((p/10)+1))+1;
s=Math.round(35000/p*Math.sqrt(d*10/$geschwindigkeit))+10;
if(s>59){
m=Math.floor(s/60);
s=s-m*60}
if(m>59){
h=Math.floor(m/60);
m=m-h*60}
if(s<10){
s='0'+s;}
if(m<10){
m='0'+m}
u='00FF';
if(e>250000){
u='FF00'}
if(e>1){
en='en'}
document.getElementById('w').innerHTML=tp(d)+'.000 km';
document.getElementById('x').innerHTML=tp(h)+':'+m+':'+s;
document.getElementById('z').innerHTML='<font color='+u+'00>'+tp(e)+' Einheit'+en+'</font>'
}
</script>
</form>"; |