function rounds(d, n)
{
  return Math.round(d*n)/n
}
// преобразование строки в сумму
function strToSum(Str)
{
  re=/^[\d]+\.?[\d]?[\d]?/
  sum=re.exec(Str)
  if(!sum) return 0;
  return sum
}
// генерация страницы для печати
function openPrintWin(html)
{
  var sDesrc, w
  sDesrc = "width=800, height=600, status=yes, toolbar=no, menubar=yes, scrollbars=yes"
  w = window.open("about:blank", "displayWindow", sDesrc)
  //w.document.write(document.getElementById("content").innerHTML)
  w.document.write(html)
}