context: function awCopyNodeAndChildren(node){	var newNode;		if ( node.nodeName == "#text" )	{		// create new text node		newNode = document.createTextNode(node.data);	}	else	{		// create new node		if ( node.nodeName[0] >= 'A' && node.nodeName[0] <= 'Z' )			newNode = createHTML(node.nodeName);		else			newNode = document.createElement(node.nodeName);				var attributes = node.attributes;				if ( attributes && attributes.length )		{			var attrNode, name, value;						// copy attributes into new node			for ( var index = 0; index < attributes.length; index++ )			{				attrNode = attributes.item(index);				name = attrNode.nodeName;				value = attrNode.nodeValue;								if ( name != 'id' )					newNode.setAttribute(name, value);			}		}			if ( node.nodeName == "SELECT" )		{			// copy options inside of SELECT			if ( newNode )			{				for ( var index = 0; index < node.options.length; index++ )				{					var option = new Option(node.options.item(index).text,											node.options.item(index).value)					newNode.add(option, null);				}			}		}		else		{			// children of nodes			if ( node.childNodes )			{				var childNode;								for ( var child = 0; child < node.childNodes.length; child++ )				{					childNode = awCopyNodeAndChildren(node.childNodes[child]);									newNode.appendChild(childNode);				}			}		}	}		return newNode;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/434cd9706488b9739a30a8008b4b0c8c518c4de0/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js