void GetAttribute( nsIXULWindow* inWindow, const nsAString& inAttribute, nsAString& outValue)
GetAttribute( nsIXULWindow* inWindow, const nsAString& inAttribute, nsAString& outValue)
void GetAttribute( nsIXULWindow* inWindow,                   const nsAString& inAttribute, nsAString& outValue){  nsCOMPtr<nsIDocShell> shell;  if ( inWindow &&  		NS_SUCCEEDED(inWindow->GetDocShell(getter_AddRefs(shell))))  {  		nsCOMPtr<nsIDOMNode> node( GetDOMNodeFromDocShell(shell)); 			  if (node)	  {	  	nsCOMPtr<nsIDOMElement> webshellElement( do_QueryInterface(node));  		if ( webshellElement.get())  			webshellElement->GetAttribute(nsAutoString(inAttribute), outValue);  	  }  }}