//<!-- Please Do Not Remove or Modify This Comment
//If you can add an improvement or enhancement to this script you're 1000% free to go ahead with it, just please
//send your updates to vbgunz about your modifications to dexterslab@vbgunz.com... If you need the official script
//you can try Geeklog for "dynamic resizable iframe" or email dexterslab@vbgunz.com for a copy.
//Please Do Not Remove or Modify This Comment-->

function iFrameHeight(framename, defaultHeight) {
	try {
		if(document.getElementById && !(document.all)) {
			h = document.getElementById(framename).contentDocument.body.scrollHeight;
			document.getElementById(framename).style.height = h;
		} else if(document.all) {
			h = document.frames(framename).document.body.scrollHeight;
			document.all(framename).style.height = h;
		}
	} catch (e) {
		//do nothing<br>

		if(document.getElementById && !(document.all)) {
			document.getElementById(framename).style.height = defaultHeight;
		} else if(document.all) {
			document.all(framename).style.height = defaultHeight;
		}

	}
}