function round(num,pos)
{
var num = Math.round (num*Math.pow(10,pos))/Math.pow(10,pos);
return num;
}
alert(22.6734578656345+" , "+round(22.6734578656345,2));
{
var num = Math.round (num*Math.pow(10,pos))/Math.pow(10,pos);
return num;
}
alert(22.6734578656345+" , "+round(22.6734578656345,2));