

function accessCount()
{
    var access_agent=navigator.userAgent;
    if((access_agent.indexOf("Googlebot")==-1)
        &&(access_agent.indexOf("Baiduspider+")==-1)
        &&(access_agent.indexOf("msnbot")==-1)
        &&(access_agent.indexOf("AMZNKAssocBot")==-1)
        &&(access_agent.indexOf("Slurp")==-1)
       ){
       var access_point    = "/common/voyager/aft/action/AftLinkCountAction.php";
       var title           = document.title;
       var url             = document.URL;
       var titleList       = title.split("b");

       var vgr_tieupId     = "AMI";
       var vgr_stepNo      = 11;
       var vgr_areaCode    = "";
       var vgr_countryCode = "";
       var vgr_cityCode    = "";
       var vgr_hotelNo     = "";
       var vgr_title       = titleList.length > 1 ? titleList[0] : title;
       var vgr_url         = url;

       var parm            = '';
       parm += 'vgr_tieupId=' + vgr_tieupId + '&';
       parm += 'vgr_stepNo=' + vgr_stepNo + '&';
       parm += 'vgr_areaCode=' + vgr_areaCode + '&';
       parm += 'vgr_countryCode=' + vgr_countryCode + '&';
       parm += 'vgr_cityCode=' + vgr_cityCode + '&';
       parm += 'vgr_hotelNo=' + vgr_hotelNo + '&';
       parm += 'vgr_title=' + vgr_title + '&';
       parm += 'vgr_url=' + vgr_url;

       var ajax = new Ajax.Request(access_point , { method:'post', parameters: parm });
    }
}

Event.observe(window, "load", accessCount, false);