function ResizeImage()
{
	max = 100;
	for ( cnt in document.images )
	{
		if ( document.images[cnt].className != 'ResizeImage' )
			continue;

		width = document.images[cnt].width;
		height = document.images[cnt].height;

		if ( width > height && width > max )
			document.images[cnt].width = max;
		else if ( height > max )
			document.images[cnt].height = max;
	}
}

