function createWindow(cUrl,cName,cFeatures)
{
	var xWin = window.open(cUrl,cName,cFeatures)
}

var top = (screen.height-400)/2;
var left = (screen.width-450)/2;

function cWindow(num)
{
	var t = "kasi";
	createWindow ('http://blogs.rediff.com/comment/view.phtml?blogName=kasi&blogId=1063825209&postId=' + num +'',t,'toolbar=0,location=0,directories=0,status=0,menubar= 0,scrollbars=1,resizable=0,copyhistory=0,width=450,height=400,left='+left+',top='+top)
}

var nums = new Array();
nums[1063825304]=1;
nums[1063825347]=1;
nums[1063825395]=1;
nums[1064061773]=2;
nums[1064063210]=1;
nums[1064064101]=3;
nums[1064113620]=1;
nums[1064151893]=2;
nums[1064168973]=1;
nums[1064241575]=2;
nums[1064268908]=3;
nums[1064454053]=1;
nums[1064621501]=4;
nums[1065281631]=2;
nums[1065575248]=4;

function LinktoComments (num)
{
	var n = nums[num];

	if (n == 0 || !nums[num]) {
		var link = '0 Comments';
	}
	if (n == 1) {
		var link = '1 Comment';
	}
	if (n > 1) {
		var link = ''+n+' Comments';
	}
	document.write ('<a href="javascript:void(\''+num+'\')" target="_self" onClick="javascript:cWindow(\''+num+'\')">'+ link + '</a>');
}

function LinktoEditComments (num)
{
	var n = nums[num];

	if (n == 0 || !nums[num]) {
		var link = '';
	}
	if (n >= 1) {
		document.write ('[<a href="javascript:void(\''+num+'\')" target="_self" onClick="javascript:editComment(\''+num+'\')">Edit Comments</a>]');

	}

}

