function get_commenter_info() { var expires = new Date(); var expdate = expires.getTime(); expdate += 60*1000; //expires in 1 minutes expires.setTime(expdate); var path = "/"; document.cookie = 'commenter_share' + "=" + escape("failed") + ((path) ? "; path=" + path : "") + ((expires) ? "; expires=" + expires.toGMTString() : ""); } function commenter_share_addLoadEvent() { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload=get_commenter_info; } else { window.onload=function() { if(oldonload){oldonload();} get_commenter_info(); } } } commenter_share_addLoadEvent();