global $r,$rn,$p1,$p2,$p3,$s1,$s2,$s3,$s4,$s1o,$s2o,$s3o,$s4o,$sum1,$sum,$besch,$einw,$naecht;
echo<<
var r = $r;
var p1 = $p1;
var p2 = $p2;
var p3 = $p3;
var s1 = $s1;
var s2 = $s2;
var s3 = $s3;
var s4 = $s4;
var s1o = $s1o;
var s2o = $s2o;
var s3o = $s3o;
var s4o = $s4o;
var sum1 = $sum1;
var sum = $sum;
var besch = $besch;
var einw = $einw;
var naecht = $naecht;
function refresh(e)
{
p1 = parseFloat(document.getElementById("p1").value);
p2 = parseFloat(document.getElementById("p2").value);
p3 = parseFloat(document.getElementById("p3").value);
var psum = p1 + p2 + p3;
document.getElementById("p1div").innerHTML = Math.round((p1 / Math.max(1,psum) * 100.0),0) + " Prozent";
document.getElementById("p2div").innerHTML = Math.round((p2 / Math.max(1,psum) * 100.0),0) + " Prozent";
document.getElementById("p3div").innerHTML = Math.round((p3 / Math.max(1,psum) * 100.0),0) + " Prozent";
if (psum == 0)
return;
s1 = parseFloat(document.getElementById("s1").value);
s2 = parseFloat(document.getElementById("s2").value);
s3 = parseFloat(document.getElementById("s3").value);
s4 = parseFloat(document.getElementById("s4").value);
sum = Math.round((sum1 - (s1o - s1) - (s2 - s2o) - (s3o - s3) - (s4o - s4)) * 100.0) / 100.0;
document.getElementById("sum").innerHTML = "" + sum;
document.getElementById("ilink").setAttribute("href","?r=" + r + "&p1=" + p1 + "&p2=" + p2 + "&p3=" + p3 + "&s1=" + s1 + "&s2=" + s2 + "&s3=" + s3 + "&s4=" + s4);
svg.setps(p1,p2,p3,sum,besch,einw,naecht);
document.getElementById("svg").width = 575;
document.getElementById("svg").height = 500;
}
VALUES;
?>
Jetzt zum Newsletter anmelden!
global $r,$rn,$p1,$p2,$p3,$s1,$s2,$s3,$s4,$s1o,$s2o,$s3o,$s4o,$sum1,$sum;
if ($r == 0)
echo '
';
else
echo '
';
echo '
Wähle eine Region: ';
if ($r == 0)
echo '
';
else
echo '';
echo '
';
if ($r != 0)
{
echo<<
Wie werden die Kosten aufgeteilt?
Fahrscheinerlöse: $sum Mio. Euro
Weitere Einnahmen: