function getWMID(){
        wm = ""
        URLstr = location.href;
        if(URLstr.indexOf("wm=")!=-1){
                tmpStr = URLstr.split("wm=");
                tmpWm = tmpStr[1];
                wm = tmpWm.substring(0,7);
        }else{
                tmpStr = document.cookie;
                tmpWm = tmpStr.split(";");
                for(i=0;i<tmpWm.length;i++){
                        if(tmpWm[i].indexOf("PNWMID")!=-1){
                          tmpCk = tmpWm[i].split("=");
                          wm = tmpCk[1];
                        }
                }
        }
URL = "<img src='http://www.partypoker.com/ss?TRKR="+wm+"' width='1' height='1'>";
document.write(URL);
}
document.onload = getWMID();