﻿function AutoSizeImages(d, e, c) { var a, b, f; if (d != undefined && d != null) { a = c.height; b = c.width; f = a / b; if (b >= d) { b = d; a = b * f } c.height = a; c.width = b } if (e != undefined && e != null) { a = c.height; b = c.width; f = a / b; if (a >= e) { a = e; b = a / f } c.height = a; c.width = b } };
