// JavaScript Document
function setpage(section, page, totalpages, guid){	
	$.get("../_include/ssi/voisse/_"+section+".cfm?time="+Math.random(), { page: page, sectionpage: section, guid:guid }, function (data){
		$("."+section+"_"+guid+"_list").html(data);
	});
	
	$.get(dotdotpath + "_include/ssi/paging.cfm", { page: page, sectionpage: section, guid:guid, totalpages:totalpages }, function (data){
		$("."+section+"_"+guid+"_paging").html(data);
	});
	
}
function nextpage(section, page, totalpages, guid){
	currentpage=parseInt(page)+1;
	setpage(section, currentpage, totalpages, guid);
}

function previouspage(section, page, totalpages, guid){
	currentpage=parseInt(page)-1;
	setpage(section, currentpage, totalpages, guid);
}

function deletecomment(section, page, totalpages, guid, commentid){	
	if (confirm("Are you sure you want to delete this comment ?"))
	{
		$.get("../_include/ssi/voisse/commentdelete.cfm", { page: page, sectionpage: section, guid:guid, commentid:commentid}, function (data){
		});
		
		$.get("../_include/ssi/voisse/_"+section+".cfm", { page: page, sectionpage: section, guid:guid }, function (data){
			$("."+section+"_"+guid+"_list").html(data);
		});		
		
		$.get(dotdotpath + "_include/ssi/paging.cfm", { page: page, sectionpage: section, guid:guid, totalpages:totalpages }, function (data){
			$("."+section+"_"+guid+"_paging").html(data);
		});
	}
}