function roundNumber(num, dec) {
	var result = Math.round(num * Math.pow(10, dec)) / Math.pow(10, dec);
	return result;
}

function isInteger(s) {
	return (s.toString().search(/^-?[0-9]+$/) == 0);
}
