/// <summary>
        /// Adds a link node.
        /// </summary>
        /// <param name="root"> The root node.</param>
        /// <param name="text"> The node text.</param>
        /// <param name="tag"> The HtmlALinkTag.</param>
        public void AddALink(FormEditorNode root, string text,HtmlALinkTag tag)
        {
            FormEditorNode node = new FormEditorNode();

            // add it to root node
            root.Nodes.Add(node);
            node.BaseHtmlTag = tag;
            node.Text = text;
        }
        private void AddALinkNode(FormEditorNode node, HtmlALinkTag a)
        {
            if ( a.HRef.IndexOf("javascript") > -1 )
            {
                string label;

                label = "<a ";
                label +=" href="+ a.HRef;
                label +=" id="+ a.Id;
                label +=" onclick="+ a.OnClick;
                label +="/>";

                formEditor.AddALink(node,label,a);
            }
        }
        /// <summary>
        /// Creates a link tag.
        /// </summary>
        /// <param name="currentNode"> The XPathNavigator node.</param>
        /// <returns> A HtmlALinkTag.</returns>
        private HtmlALinkTag CreateLinkTag(XPathNavigator currentNode)
        {
            HtmlALinkTag tag = new HtmlALinkTag();

            tag.Class=currentNode.GetAttribute("class",currentNode.NamespaceURI);
            tag.Id=currentNode.GetAttribute("id",currentNode.NamespaceURI);
            tag.OnClick=currentNode.GetAttribute("onclick",currentNode.NamespaceURI);
            tag.Style=currentNode.GetAttribute("style",currentNode.NamespaceURI);
            tag.Title=currentNode.GetAttribute("title",currentNode.NamespaceURI);
            tag.HRef=currentNode.GetAttribute("href",currentNode.NamespaceURI);

            if ( tag.OnClick.Length == 0 )
            {
                tag.OnClick = currentNode.GetAttribute("onClick",currentNode.NamespaceURI);
            }

            return tag;
        }