<!-- //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";
function info(obj){
win = window.open("","Rechner","width=220,height=280,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no,resizable=yes");
win.moveTo(230,230);
win.document.write("<html><head><title> MiniRechner </title>");
win.document.write("<style>input{width:28px;height:28px;margin:3;border-width: 1pt;border-bottom:#909090 2px solid;border-right:#AAAAAA 2px solid;font: 14pt arial;}</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=#EFEFF5><center><form method=post><table cellspacing=0 cellpadding=0 bgColor=#6F6F6F style='border-bottom:#CCCCCC 3px solid;border-right:#BBBBBB 3px solid;' width=185><tr><td align=center height=45 vAlign=bottom><input style='width:155px;height:26px;margin:3;border-bottom:#AAAAAA 2px solid;border-right:#AAAAAA 2px solid;'></td></tr><tr><td align=center><table cellpadding=2 border=0>");
    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=\" = \" style='width:70px;font-weight:bold;' onclick='Ergebnis(0,0)'></td><td colspan=2><input type=reset value=\" C \" style='width:70px;font-weight:bold;'></td>");
win.document.write("</tr></table></td></tr></table></body></html>");
win.document.close();
}
//-->
