
function changeiframesize(targetIframe, height) 
{   
	var FFextraHeight=(window.isFirefox)? 16 : 0  ;     
	if (targetIframe)
	{   
		//begin resizing iframe   
		targetIframe.style.display="block";
		if (window.isGecko)
		{targetIframe.height = height + FFextraHeight  ;}
		else
		{targetIframe.height = height ;}
	}   
}
function chkiframesize(iframeobj,Anchorname)
{
	var url = String(window.location);	
	var iframeflag = "#{'resize':'" + iframeobj.id + "'";
	var iframeflagidx = url.indexOf(iframeflag) ;
	if ( iframeflagidx > 0)
	{
		var tmpiframe = url.substring(iframeflagidx);
		var iframeinfo = tmpiframe.substring(1,tmpiframe.indexOf("}")+1);
		changeiframesize(iframeobj,eval('('+ iframeinfo +')').height);
			
		restoreLocation(iframeinfo,Anchorname);
	}	
	
}
function restoreLocation(iframeinfo,Anchorname)
{
	var anchor = "#" + Anchorname;
	window.location =  String(window.location).replace(eval("/#" + iframeinfo + "/gi"),"").replace(eval("/" + anchor + "/gi"),"") + anchor;
}
