var ids = new Array("", "1032", "1040", "1051", "1088", "1121", "1176", "1186", "1204", "1211", "1294", "132", "1335", "1394", "1404", "1411", "1448", "149", "1490", "1539", "1667", "1696", "1757", "1759", "1902", "1969", "1994", "2011", "2017", "2029", "2036", "2172", "2185", "219", "2296", "2306", "2328", "2360", "2401", "257", "2607", "2610", "2622", "2682", "2696", "2752", "278", "2875", "2931", "2976", "300", "3016", "3134", "314", "3157", "3211", "323", "3277", "3328", "3355", "3469", "348", "359", "3627", "3679", "3754", "3785", "3841", "3905", "3908", "3913", "396", "4012", "4122", "4179", "42", "4264", "4358", "448", "4618", "4778", "494", "4963", "510", "5201", "5236", "5564", "5775", "5841", "60", "6137", "6340", "66", "6644", "6679", "6736", "6977", "7172", "7228", "7250", "737", "772", "822", "887", "919", "974", "999");
var nums = new Array(0, 1, 2, 3, 1, 1, 1, 2, 2, 3, 1, 4, 1, 2, 1, 1, 2, 6, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 2, 1, 1, 2, 1, 3, 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 3, 1, 1, 3, 1, 1, 4, 3, 1, 1, 1, 4, 1, 2, 3, 1, 2, 1, 1, 2, 5, 2, 1, 1, 1, 3, 1, 2, 3, 1, 3);

function indexOfID (id) {
  for (var i = 1; i < ids.length; i++)
    if (ids[i] == id)
      return i;
  return 0;
}

function linkComments (id, txt) {
  var n = nums[indexOfID(id)] || 0;
  document.write('<a href="javascript:void(0);" target="_self" '
    + 'onmouseover="window.status=\'\'; return true;" '
    + 'onclick="openComments(\''+id+'\');">'
    + (txt || (n
      ? (n == 1
        ? "1"
        : ""+n+""
        )
      : "-"
      )
    ) + '</a>');
}

function openComments (id) {
  void(window.open('http://www.9031.com/ivisited/comments/script/index.cgi?id='+escape(id)+'&amp;mode=view',
    'commentscomments',
    'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,left=' + parseInt((screen.availWidth - 500)/2) + ',top=' + parseInt((screen.availHeight - 300)/2) + ',width=500,height=300'));
}
