<!-- //JavaScript-Programm kleiner Taschenrechner
var Wert = new Array (7,8,9,".",4,5,6,"/",1,2,3,"*",0,"  ","+","-");
var def = "document.forms[0].elements[0].value";
var w = screen.width
function info(obj){
win = window.open("","Rechner","width=220,height=300,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no,resizable=yes");
win.moveTo(w-w*.24 ,30);
win.document.write("<html><head><title> MiniRechner </title>");
if (navigator.appName=="Netscape")
w=Math.floor(screen.width*0.014);
else
w=Math.floor(screen.width*0.012)
win.document.write("<style>INPUT {font-size:"+ w + "pt;}</style><script>\n");
win.document.write(" function Ergebnis() \n {\n   var x = 0;\n   x = eval("+def+");\n" + def + " = x;\n }\n  function add(a,b,Zeichen)\n {\n" + def + " = \n   " + def + "+ Zeichen; \n } \n");
win.document.write("</script></head><body bgcolor=#ffe1b0><center><form method=post><table width=100% height=100% cellspacing=6 cellpadding=0><tr><td align=center><input size=16 maxlength=16></td></tr><tr><td align=center><table cellspacing=10>");
    a=0;
      for (z=1;z<=4;z++){
          win.document.write("<tr>\n");
              for (i=a;i<=a+3;i++) {
              win.document.write("<td><input type=button value=\" " + Wert[i] + " \"  onclick=\"add(0,0,'" + Wert[i] + "')\"></td>\n");
          }
              a+=4;
              win.document.write("</tr>\n");
       }
win.document.write("<tr><td colspan=2 ><input type=button value=\"    =   \" onclick='Ergebnis(0,0)'></td><td colspan=2><input type=reset value=\"   C   \"></td>");
win.document.write("</tr></table></td></tr></table></body></html>");
win.document.close();
}
//-->
