function open_Calc(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/1.05;
  var wint = (screen.height-h)/1.55;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

function what(dir) {
if (event.button == 2) { Help(dir) }
}
function Help(dir) {
  var ex;
  if (dir == 'eq') { ex = ' = : Equals\n\n Calculates the result of an equation.' }
  else if (dir == '/') { ex = ' ÷ : Division\n\n Divides one number by another.\n\n\ i.e.: 8 / 2 = 4' }
  else if (dir == 'x') { ex = ' x : Multiplication\n\n Multiplies two numbers.\n\n\ i.e.: 2 x 4 = 8' }
  else if (dir == '+') { ex = ' + : Addition\n\n Adds two numbers together.\n\n\ i.e.: 3 + 4 = 7' }
  else if (dir == '-') { ex = ' - : Subtraction\n\n Subtracts one number from another.\n\n\ i.e.: 7 - 4 = 3' }
  else if (dir == '%') { ex = ' % : Percent\n\n Displays the percentage of a number.\n\n\tTo find the percentage of one number in relation to another,\n\tenter the first number, hit the X key, enter a second number,\n\thit the % key.\n\n\tex: 40 x 10% = 4' }
  else if (dir == '.') { ex = ' . : Decimal\n\n Adds a decimal point to a number in DISPLAY screen.' }
  else if (dir == '1') { ex = ' 1 : Number 1\n\n Places the number 1 onto DISPLAY screen.' }
  else if (dir == '2') { ex = ' 2 : Number 2\n\n Places the number 2 onto DISPLAY screen.' }
  else if (dir == '3') { ex = ' 3 : Number 3\n\n Places the number 3 onto DISPLAY screen.' }
  else if (dir == '4') { ex = ' 4 : Number 4\n\n Places the number 4 onto DISPLAY screen.' }
  else if (dir == '5') { ex = ' 5 : Number 5\n\n Places the number 5 onto DISPLAY screen.' }
  else if (dir == '6') { ex = ' 6 : Number 6\n\n Places the number 6 onto DISPLAY screen.' }
  else if (dir == '7') { ex = ' 7 : Number 7\n\n Places the number 7 onto DISPLAY screen.' }
  else if (dir == '8') { ex = ' 8 : Number 8\n\n Places the number 8 onto DISPLAY screen.' }
  else if (dir == '9') { ex = ' 9 : Number 9\n\n Places the number 9 onto DISPLAY screen.' }
  else if (dir == '0') { ex = ' 0 : Zero\n\n Places the numerical value 0 onto DISPLAY screen.' }
  else if (dir == 'DZ') { ex = ' 00 : Double Zero\n\n Adds two zeros to any number.' }
  else if (dir == 'c') { ex = ' C : Clear\n\n Clears the DISPLAY screen\n Remember to clear after each calculation.' }
  else if (dir == 'Del') { ex = ' Del : Delete\n\n Clears the last digit entered.' }
  else if (dir == 'M') { ex = ' M : Memory \n\n Copies number in DISPLAY screen to MEMORY.' }
  else if (dir == 'RM') { ex = ' RM : Recall Memory\n\n Recalls number stored in MEMORY and places it onto\n the DISPLAY screen..' }
  else if (dir == 'M+') { ex = ' M+ : Memory Add\n\n Adds number in DISPLAY screen to MEMORY.' }
  else if (dir == 'M-') { ex = ' M- : Memory Subtract\n\n Subtracts number in DISPLAY screen  from MEMORY.' }
  else if (dir == 'MC') { ex = ' MC : Memory Clear \n\n Clears number stored in MEMORY.' }
  else if (dir == 'NW') { ex = ' New Window : \n\n Opens a popup window containing a new CALCULATOR.\n\nMultiple CALCULATORS can be open at the same time. This is useful in comparing different scenarios of calculations.\n\n\NOTE: If you have a popup stopper on your system, you will need to disable it to view the NEW WINDOW.' }
  else if (dir == 'H') { ex = 'SeveredBytes Custom Ratio Calculator 1.0\n\nLeft click to push a  button or key.\nRight click on any button for a description and help with that function (Internet Explorer only).\n\n\Use the Ratio Converter to get your amount in bytes, then use this calculator to do the math.\n\nClick the Window Button to Float the Calculator!\n'
}

alert(ex);
}