// A couple of javascript functions to pop up a window and create the link text
// which includes the comment count

function oarin_pop(domain, thread) 
{
// Pop up a box containing the comments
	newWin = window.open('http://www.oarin.net/oarin.php?dom=' + domain + '&thr=' + thread, 'pop', 'width=330,height=520,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes')

        newWin.focus()
}

function oarin_link(domain, thread) {
if (NuM[thread] == 1)
document.write('<a href="javascript:oarin_pop(\''+domain+'\',\'' + thread + '\')">There is 1 comment</a>')
else
if (NuM[thread] > 1)
document.write('<a href="javascript:oarin_pop(\''+domain+'\',\'' + thread + '\')">There are '+ NuM[thread] +' comments</a>')
else
document.write('<a href="javascript:oarin_pop(\''+domain+'\',\'' + thread + '\')">There are no comments yet</a>')
}
