var oneStyle={
backgroundColor: "lime"
};
function change(el, obj)
{
for(var k in obj)
{
el.style[k] = obj[k];
}
}
document.addEventListener("DOMContentLoaded", function(event) {
var el = document.getElementById("some");
change( el, oneStyle )
});
function multFloats(a,b){
var atens = Math.pow(10,String(a).length - String(a).indexOf('.') - 1),
btens = Math.pow(10,String(b).length - String(b).indexOf('.') - 1);
var result = (a * atens) * (b * btens) / (atens * btens);
return result;
}