http://www.ivegeta.com/jordo_pm.txt That text file works as i have tested it out.
DIO: If you look at the first 'document.writeln' line. That prints out if the user doesn't have a pm cookie or one that doesn't have a valid value. The second one prints out if it does, even if the value is '0'.
If think what your looking for is to:
quote:
replace:
if(''==pms_cookie || null==pms_cookie) {
with:
if(''==pms_cookie || null==pms_cookie || '0'==pms_cookie) {
That should print '0 new', when the user has 0 new pms.