function reference(node, clone)
			{
				clone.originalNode = node;
				
				node = node.firstChild;
				var child = clone.firstChild;
				
				while (node != null && child != null)
				{
					reference(node, child);
					node = node.nextSibling;
					child = child.nextSibling;
				}
				
				return clone;
			}
function reference(node, clone)
			{
				clone.originalNode = node;
				
				node = node.firstChild;
				var child = clone.firstChild;
				
				while (node != null && child != null)
				{
					reference(node, child);
					node = node.nextSibling;
					child = child.nextSibling;
				}
				
				return clone;
			}
function reference ( node , clone ) { clone . originalNode = node ; node = node . firstChild ; var child = clone . firstChild ; while ( node != null && child != null ) { reference ( node , child ) ; node = node . nextSibling ; child = child . nextSibling ; } return clone ; }
Adds a reference from the clone to the original node, recursively
Adds a reference from the clone to the original node recursively
Reference a node to a clone