function resizeImages(maxwidth,maxwidthquotes) {
	$("div.postbody > img").each(
		function() {
			// If image is too big, bind click to go to open the image URL in a new window.
			if(this.width > maxwidth) {
				$(this).width(maxwidth - 3)
				$(this).before('<div class="resizedimage_desc">This image is too wide and has been resized. Click to view full size.</div>').addClass('resizedimage').bind("click",
					function() {
						window.open($(this).attr("src"));
					}
				);
			}
		}
	);
	$("div.postbody div.quotecontent > img").each(
		function() {
			// If image is too big, bind click to go to open the image URL in a new window.
			if(this.width > maxwidthquotes) {
				$(this).width(maxwidthquotes - 3)
				$(this).before('<div class="resizedimage_desc">Click to view full size.</div>').addClass('resizedimage').bind("click",
					function() {
						window.open($(this).attr("src"));
					}
				);
			}
		}
	);
}