//var height = document.all.FrameSrc.scrollHeight;
//window.parent.document.getElementById("CooperationAreaContainer").style.height = height;
//alert("Loading...");

function setIFrameHeight_plus20pixel(iFrameId) {
	//alert("iFrameId == " + iFrameId);
	var pTar = null;
	if(document.getElementById) {
		pTar = document.getElementById(iFrameId);
	} else{
		eval('pTar = ' + iFrameId + ';');
	}
	
	if (pTar && !window.opera){
		//begin resizing iframe
		//pTar.style.display = "block";
		if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight) {
			//ns6 syntax
			pTar.height = pTar.contentDocument.body.offsetHeight + 20; // original value +20
			//pTar.width = pTar.contentDocument.body.scrollWidth + 20; // original value +20
		} else if (pTar.Document && pTar.Document.body.scrollHeight) {
			//ie5+ syntax
			pTar.height = pTar.Document.body.scrollHeight;
			//pTar.width = pTar.Document.body.scrollWidth;
		}
	}
}

function setIFrameHeight_plus1pixel(iFrameId) {
	//alert("iFrameId == " + iFrameId);
	var pTar = null;
	if(document.getElementById) {
		pTar = document.getElementById(iFrameId);
	} else{
		eval('pTar = ' + iFrameId + ';');
	}
	
	if (pTar && !window.opera){
		//begin resizing iframe
		//pTar.style.display = "block";
		if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight) {
			//ns6 syntax
			pTar.height = pTar.contentDocument.body.offsetHeight + 1; // original value +20
			//pTar.width = pTar.contentDocument.body.scrollWidth + 1; // original value +20
		} else if (pTar.Document && pTar.Document.body.scrollHeight) {
			//ie5+ syntax
			pTar.height = pTar.Document.body.scrollHeight;
			//pTar.width = pTar.Document.body.scrollWidth;
		}
	}
} 
