function checkPreviewImgSize()
{
	for (i = 1; i <= document.images.length; i++) {
		img = document.getElementById('photoPreview' + i)
		if (img)
			if (img.width > img.height) {
				if (img.width > 110)
					img.width = 110
			} else {
				if (img.height > 110)
					img.height = 110
			}
	}
}
