﻿function getViewCount(alid, phid, doflag ,gtype, spanID , OEID,userid,nickname) {
    $.post("/js/viewCount.ashx",
        {
            aid: alid,
            pid: phid,
            fid: doflag,
            type: gtype,
            aOEID: OEID,
            auserid: escape(userid),
            anickname: escape(nickname)
        },
        function(msg) {
            if (spanID != "") {
                //document.getElementById(spanID).innerText = msg;
            }
        }
    );
   }
   
   function doRecommend(atid,aOEID, spanID) {
       $.post("/js/viewCount.ashx",
       {
           aid: atid,
           OEID: aOEID,
           flag: 1
       },
        function(msg) {
            var str = "#" + spanID;
            var me = $(str).html("已推荐");
            alert("感谢你的参与。");
        }
       );
       }

       function getFileName(str) {
           var pos = str.lastIndexOf("/") * 1;
           return str.substring(pos + 1);
       }

