
function resize_img (obj, width) {
    if (obj.width > width)
        obj.width = width;
}

