jsgo=(typeof new Number(1).toFixed()!='undefined' && document.getElementById);


//bankers rounding%5
function dm_bank(lngS)
{
  ba=[0,-1,-2,2,1,0,-1,-2,2,1];
  lngS=Math.round((lngS*100));
  bd=(
        Number((lngS%5)/100).toFixed(2)*100
      );
  return Number((lngS+ba[bd])/100).toFixed(2);
}


//kill chars in o
function str_rpl(o,s,m)
{
  o.value=String(o.value).replace(new RegExp(s,m),'');
}

function DOMOBJ(x,s,i)
{
  switch(x)
    {
      case 'i': return document.getElementById(s);
    }
}
