﻿function $g(_sId)
{                      
	return document.getElementById(_sId);
}  
function reHeightFrame()
    {
        if(top.location != self.location)
        {
            var a = window.parent.document.getElementsByTagName('iframe');
            for (var i=0; i<a.length; i++)
            {
                if (a[i].name == self.name) 
                {
                    a[i].height = document.body.scrollHeight||document.documentElement.scrollHeight; 
                    return false;
                }
            }
        }
  } 
  function TuneHeight() 
  {   
    var frm = document.getElementById("comment");   
    var subWeb = document.frames ? document.frames["comment"].document : frm.contentDocument;   
    if(frm != null && subWeb != null) {
       frm.height = subWeb.body.scrollHeight||subWeb.documentElement.scrollHeight;
    }   
}                                        
