function resize_images()
{
	imgs = document.getElementsByName("UserImage");
	for (var i = 0;i < imgs.length;i++)
	{
		if (imgs[i].width > 1024)
			imgs[i].width = 1024;
	}
}

window.onload = resize_images;
