<!--
function GetNodeText (obj) {
// return the data of obj if its a text node
    if (obj.nodeType == 3) return obj.nodeValue;
    var txt = new Array(),i=0;
    // loop over the children of obj and recursively pass them back to this function
   while(obj.childNodes[i]) {
		txt[txt.length] = GetNodeText(obj.childNodes[i]);
		i++;
	}
    // return the array as a string
    return txt.join("");
}
	
function HideDiv (TextToHide) 
{
if (!document.getElementsByName) return null;
var i, CurrentDiv, CommentForm, Children, ci, NewDiv
CommentForm = document.getElementsByName("comment");
if (CommentForm.length > 0)
	{
	for(i = 0;i < CommentForm.length;i++)
		{
			if (CommentForm[i].hasChildNodes())
			{
				Children = CommentForm[i].childNodes;
				for(ci = 0; ci < Children.length; ci++)
				{
				if (Children[ci].nodeName == 'DIV')
					{
					CurrentDiv = GetNodeText(Children[ci]);
					if (CurrentDiv.indexOf(TextToHide) != -1)
						{
						// if div contents should be replaced
						if (TextToHide == 'email will not be displayed on the site')
							{
							NewDiv = document.createElement("DIV");
							NewDiv.appendChild(document.createTextNode("Contact information will not be displayed on the site since it is solely for the blog owner."));
							NewDiv.id = 'commentNotice';
							CommentForm[i].replaceChild(NewDiv, Children[ci]);
							}
						else 
							{
							Children[ci].style.display = 'none';
							}
						}
					}
				}			
			}
		}
	}			 
} 
//--> 