﻿function openPrint(value,UrlRoot)
    {
        var iwidth=1000;
        var     iheight=600;        
        var xTop=(screen.height -iheight)/2;
        var xLeft=(screen.width-iwidth)/2;
   
        open(UrlRoot+"print_email/print.aspx?id="+value, "_blank", "width=" + iwidth + ", height=" + iheight + ", top=" + xTop + ", left=" + xLeft + ",status=no, resizable=yes, scrollbars=yes, toolbar= no,location= no, menubar= no");
    }

    function openRss(value, UrlRoot) {
        var iwidth = 1000;
        var iheight = 600;
        var xTop = (screen.height - iheight) / 2;
        var xLeft = (screen.width - iwidth) / 2;

        open(UrlRoot + "rss/detail/" + value + ".xml", "_blank", "width=" + iwidth + ", height=" + iheight + ", top=" + xTop + ", left=" + xLeft + ",status=no, resizable=yes, scrollbars=yes, toolbar= no,location= no, menubar= no");
    }
    
    
    function openEmail(UrlRoot)
    {
        var iwidth=600;
        var     iheight=400;        
        var xTop=(screen.height -iheight)/2;
        var xLeft=(screen.width-iwidth)/2;
     
        open(UrlRoot+"print_email/Email.aspx?id="+ window.location.href, "_blank", "width=" + iwidth + ", height=" + iheight + ", top=" + xTop + ", left=" + xLeft + ",status=no, resizable=yes, scrollbars=yes, toolbar= no,location= no, menubar= no");
    }


    function share_twitter(content) {
        window.open("http://twitter.com/home?status=" + encodeURIComponent(document.title) + " " + encodeURIComponent(location.href));
    }
    function share_facebook() {
        u = location.href;
        t = document.title;
        window.open("http://www.facebook.com/share.php?u=" + encodeURIComponent(u) + "&t=" + encodeURIComponent(t));        
    }
    function share_google() {
        u = location.href;
        t = document.title;        
        window.open("https://www.google.com/bookmarks/mark?op=edit&bkmk=" + encodeURIComponent(u) + "&title=" + encodeURIComponent(t) + "&annotation=" + encodeURIComponent(t) + "&labels=" + encodeURIComponent(t));
    }
    function share_go() {
        u = location.href;
        t = document.title;
        window.open("http://my.goonline.vn/share.aspx?url=" + encodeURIComponent(u));
    }
    
    
    
 
    
    
