function adjustFrame()
{
	if(document.body.scrollHeight !=0) 
	{ 
		height = parseInt(document.body.scrollHeight)+30; 
		parent.window.document.getElementById('portal').style.height = height +"px";
	
	}
	
}

function ajdustCaseHeight()
{
	document.getElementById("attach_note").style.display = "block"; 
	document.getElementById("attachbutton").style.display = "none";
	if(document.body.scrollHeight !=0) 
		{ 
			height = parseInt(document.body.scrollHeight)+60; 
			parent.window.document.getElementById('portal').style.height = height +"px";
		}
	
 return false;
}

function adjustForumHeight()
{
	document.getElementById("create_new_thread").style.display = "block"; 
	document.getElementById("createthread").style.display = "none"; 
	if(document.body.scrollHeight !=0) 
		{ 
			height = parseInt(document.body.scrollHeight)+100; 
			parent.window.document.getElementById('portal').style.height = height +"px";
		}
	
 return false;
}

function adjustForumReplyHeight()
{
	document.getElementById("create_reply").style.display = "block"; 
	document.getElementById("createreply").style.display = "none"; 
	if(document.body.scrollHeight !=0) 
		{ 
			height = parseInt(document.body.scrollHeight)+100;
			parent.window.document.getElementById('portal').style.height = height +"px";
		}
	
 return false;
}
