function fnActiveXUtil(txtId) {
	src = eval("document.getElementById('"+txtId+"').value");
	document.write(src);
}

var ifBody = "";
function iFrameReSize(){
	var IE = false ;
    if (window.navigator.appName.indexOf("Explorer") !=-1) IE = true;

    try {
    	var objFrame = document.getElementById(ifBody);
      	if(IE) {
      		objBody = eval(ifBody+".document.body");
      	} else {      		
      		objBody = objFrame.contentWindow.document.body;
      	}        

  		var ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
      	if (ifrmHeight > 300) {      		
        	objFrame.style.height = ifrmHeight;
      	} else {
        	objFrame.style.height = 300;
      	}
	} catch(e) {};
}

function iFrameRetry(){
	iFrameReSize();
	setTimeout('iFrameRetry()',500);
}

function iFrameInit(fBody) {
	ifBody = fBody;
	iFrameRetry();
}