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 = "ajithasif";
	createWindow ('http://blogs.rediff.com/comment/view.phtml?blogName=ajithasif&blogId=1074769498&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[1078296288]=3;
nums[1078311049]=3;
nums[1078478120]=2;
nums[1078727619]=2;
nums[1078749185]=2;
nums[1078808787]=4;
nums[1078824112]=3;
nums[1078980101]=2;
nums[1079089568]=5;
nums[1079418250]=13;

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>]');

	}

}

