
<DIV id=s title=5 time="0" border="2"><TABLE border=0 height=40>
<TBODY>
<TR>
<TD vAlign=top>
<TABLE border=0>
<TBODY>
<TR style="BACKGROUND: #808080; COLOR: white">
<TD height=20 align=middle><BUTTON style="WIDTH: 25px; BACKGROUND: silver; HEIGHT: 20px; COLOR: yellow" onclick="document.getElementById('eva_s').value=''" ;>x</BUTTON> </TD>
<TD><B style="COLOR: white">Calculator&nbsp;&nbsp;&nbsp;&nbsp;~0.00</B> </TD></TR>
<TR>
<TD><TEXTAREA id=eva_s rows=14></TEXTAREA> </TD>
<TD>
<TABLE id=eva border=2>
<THEAD id=eva_b>
<TR style="BACKGROUND: #808080; COLOR: white">
<TD colSpan=5></TD></TR></THEAD>
<TBODY>
<TR>
<TD onclick1="eva_a(1)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">1</BUTTON></TD>
<TD onclick1="eva_a(2)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">2</BUTTON></TD>
<TD onclick1="eva_a(3)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">3</BUTTON></TD>
<TD onclick1="eva_a(4)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">4</BUTTON></TD>
<TD onclick1="eva_a(5)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">5</BUTTON></TD></TR>
<TR>
<TD onclick1="eva_a(6)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">6</BUTTON></TD>
<TD onclick1="eva_a(7)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">7</BUTTON></TD>
<TD onclick1="eva_a(8)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">8</BUTTON></TD>
<TD onclick1="eva_a(9)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">9</BUTTON></TD>
<TD onclick1="eva_a(0)"><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">0</BUTTON></TD></TR>
<TR>
<TD onclick1='eva_a(".")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white"><B>.</B></BUTTON></TD>
<TD onclick1='eva_a("+")'><BUTTON style="WIDTH: 25px; BACKGROUND: black; COLOR: white"><B>+</B></BUTTON></TD>
<TD onclick1='eva_a("-")'><BUTTON style="WIDTH: 25px; BACKGROUND: black; COLOR: white"><B>-</B></BUTTON></TD>
<TD onclick1='eva_a("*")'><BUTTON style="WIDTH: 25px; BACKGROUND: black; COLOR: white"><B>*</B></BUTTON></TD>
<TD onclick1='eva_a("/")'><BUTTON style="WIDTH: 25px; BACKGROUND: black; COLOR: white"><B>/</B></BUTTON></TD></TR>
<TR>
<TR>
<TD title=result onclick1="eva('r')"><BUTTON style="WIDTH: 25px; BACKGROUND: yellow; HEIGHT: 25px; COLOR: black"><B>&nbsp;=&nbsp;</B></BUTTON> </TD>
<TD style="BACKGROUND: white; HEIGHT: 23px; COLOR: red; FONT-SIZE: 17px" id=eva_r colSpan=4 align=middle>&nbsp;</TD></TR>
<TR>
<TD title=enter onclick1='eva_m("1-")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">e</BUTTON></TD>
<TD title=remember onclick1='eva_m("1+")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">s</BUTTON></TD>
<TD id=eva_m1 colSpan=3>0.00</TD></TR>
<TR>
<TD title=enter onclick1='eva_m("2-")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">e</BUTTON></TD>
<TD title=remember onclick1='eva_m("2+")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">s</BUTTON></TD>
<TD id=eva_m2 colSpan=3>0.00</TD></TR>
<TR>
<TD title=enter onclick1='eva_m("3-")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">e</BUTTON></TD>
<TD title=remember onclick1='eva_m("3+")'><BUTTON style="WIDTH: 25px; BACKGROUND: #808080; COLOR: white">s</BUTTON></TD>
<TD id=eva_m3 colSpan=3>0.00</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD>Left field is computing data. <BR>Right panel input buttons and controls. <BR>To enter evaluates arithmetic expressions: <BR>from keyboard, click the field calculation, enter the numbers and operations on them, <BR>from buttons, clicking a button on the calculator, type a number and action on them. <BR>For the results, click "=". <BR>For storing the results, click one of the "s". <BR>To enter the result in the field of computing click the desired "e". <BR>To erase the computing field click "x". </TD></TR></TBODY></TABLE>
<SCRIPT type=text/javascript>
function eva(p)
{msstr1=" ,0,1,2,3,4,5,6,7,8,9,+,-,*,/,.,";
mmm=document.getElementById("eva_s").value.split("");
mm="";
for(var i=0; i<=mmm.length-1; i++)
{if (escape(mmm[i])=="%0D" || escape(mmm[i])=="%0A")
{}else{mm=mm+mmm[i]}}
msstr=mm.split("");
if (msstr.length==0){alert("No expression !");return};
document.getElementById("eva_r").innerHTML="ERROR !";
ks=msstr[0];
if (ks=="/" || ks=="*" || ks=="."){alert("Invalid character at the beginning of the expression !");return}
ks=msstr[msstr.length-1];
kpp=0;
if (ks=="+" || ks=="-" || ks=="/" || ks=="*" || ks=="."){alert("Invalid character at the end of the expression!");return}
for(var i=0; i<=msstr.length-1; i++)
{if (msstr1.indexOf(","+msstr[i]+",")<0){alert(msstr[i]+ " invalid character in the expression!");return}
ks=msstr[i];
ks8=msstr[i+1];
if (ks=="."){kpp++}
if (kpp>0 && (ks=="+" || ks=="-" || ks=="/" || ks=="*")) {kpp--}
if (kpp>1) {alert("Many points in the operand!");return}
if ((ks=="+" || ks=="-" || ks=="/" || ks=="*" || ks==".") && (ks8=="+" || ks8=="-" || ks8=="/" || ks8=="*" || ks8==".")){alert(ks+ks8+" invalid characters in the expression!");return}
};
evares=eval(document.getElementById("eva_s").value).toFixed(2);
document.getElementById("eva_r").innerHTML=evares;
}




function eva_a(p)
{
eva1=document.getElementById("eva_s").value;
if (p=="+" || p=="-")
{document.getElementById("eva_s").value=eva1+"rn"+p;
document.getElementById("eva_s").scrollTop=9999;
}
else
{document.getElementById("eva_s").value=eva1+p;}
}

function eva_c(p)
{document.getElementById("eva_s").value="";}

function eva_m(p)
{
eva1=document.getElementById("eva_s").value;
switch (p)
{
case "1+" : document.getElementById("eva_m1").innerHTML=document.getElementById("eva_r").innerHTML;break;
case "1-" : document.getElementById("eva_s").value=eva1+document.getElementById("eva_m1").innerHTML;break;
case "2+" : document.getElementById("eva_m2").innerHTML=document.getElementById("eva_r").innerHTML;break;
case "2-" : document.getElementById("eva_s").value=eva1+document.getElementById("eva_m2").innerHTML;break;
case "3+" : document.getElementById("eva_m3").innerHTML=document.getElementById("eva_r").innerHTML;break;
case "3-" : document.getElementById("eva_s").value=eva1+document.getElementById("eva_m3").innerHTML;break;
}}
</SCRIPT>
</DIV>