    Nokia_Widget = function(displayString, targetURL)
    {
        var m_displayString = displayString;
        var m_targetURL = targetURL;
        var self = this;
        var m_parent = null;
        var m_windowReference;
      
        this.SetParent = function(parent){ m_parent = parent; }
        

        /* Display the new window */
        this.ShowWindow = function()
        {   
            if(m_windowReference == null || m_windowReference.closed)
            {
                var w = 1020;
                var h = 667;
                wleft = (screen.width - w) / 2;
                wtop = (screen.height - h - 95) / 2;
                if (wleft < 0) wleft = 0;
                if (wtop < 0) wtop = 0;
                m_windowReference = window.open(m_targetURL, "windowslive", "height="+h+",width="+w+",left="+wleft+",top="+wtop+",scrollbars=yes,menubar=yes,directories=yes,toolbar=yes,location=yes,directories=yes,status=1,resizable=1",true);

                if (m_windowReference==null || typeof(m_windowReference)=="undefined") {
                      alert("You have a pop-up blocker that blocked the console window from being opened.\rPlease configure your pop-up blocker to allow pop-ups from this site.");
                }
            }
            else
            {
                if (m_windowReference.location = m_targetURL)
                {
                    m_windowReference.focus();
                }
                else
                {
                    m_windowReference.location = m_targetURL;
                }
            }
       }

        /* On Click Widget Icon either to Show or Hide the Widget Iframe */
        this.DoClick = function()
        {
            self.ShowWindow();
            
            return false;
        }
        
        this.DisplayWidget = function()
        {
            var parentElement;
            if (m_parent != null)
                parentElement = document.getElementById (m_parent);
            else
                parentElement = document.body;
            if (parentElement == null) return;

            var elLabelSendToMobile = document.createElement("a");
            elLabelSendToMobile.innerHTML = m_displayString;
            elLabelSendToMobile.href = "javascript:void(0)";
            elLabelSendToMobile.style.cursor = document.all ? "hand" : "pointer";
            elLabelSendToMobile.style.verticalAlign = "middle";
            elLabelSendToMobile.onclick = self.DoClick;
            
            parentElement.appendChild (elLabelSendToMobile);
        }

    }