function doIframe(){
	o = document.getElementsByTagName('iframe');
	for(i=0;i<o.length;i++){
		if (/\bautoHeight\b/.test(o[i].className)){
			setHeight(o[i]);
			addEvent(o[i],'load', doIframe);
		}
	}
	adjustBlocksDivHeights();
}

function adjustBlocksDivHeights() {
  hFeatures = $('#Cliframe').height(); // Get height
  mHeight = hFeatures + 110;  // Set mHeight to the larger of the two heights
  $('#blocksPage').height(mHeight);  // Set both to equal heights
}
  	
function setHeight(e){
	if(e.contentDocument){
		e.height = e.contentDocument.body.offsetHeight + 35;
	} else {
		e.height = e.contentWindow.document.body.scrollHeight;
	}
}

function addEvent(obj, evType, fn){
	if(obj.addEventListener)
	{
	obj.addEventListener(evType, fn,false);
	return true;
	} else if (obj.attachEvent){
	var r = obj.attachEvent("on"+evType, fn);
	return r;
	} else {
	return false;
	}
}

if (document.getElementById && document.createTextNode){
 addEvent(window,'load', doIframe);	
/*
Usage:
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" language="javascript" charset="utf-8" ></script>

Include this Script:
<script type="text/javascript" src="autoHeight.js"></script>

Define the iFrame with the "autoHeight" classname
<iframe id="myframe" name="myframe" class="autoHeight" scrolling="auto" frameborder="0" width="100%" src="http://example.com/iframe.php"></iframe>

Add to Head:
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" language="javascript" charset="utf-8" ></script>
  <script type="text/javascript" src="/rw_common/themes/lbv5/autoHeight.js"></script>
Set border-style: none for id0_outside Div
Add to iFrame 
id="Cliframe" name="Cliframe" class="autoHeight" scrolling="auto"
i.e.
<iframe id="Cliframe" name="Cliframe" class="autoHeight" scrolling="auto" align=Left height=540 width=100% frameborder=0 src="/webreg/index.htm"></iframe>   
*/
}

