function goToPage(numeroPage){
	var instanceId ='';
	var topicId ='';
	var nbPublis ='';
	var showPaginator ='';
	var targetURL = '';
	var recursive = '';
	var subTopicId = '';
	var showCombo = '';
	var onlyThisForm = '';
	
	instanceId=document.getElementById('instanceId').value;
	topicId=document.getElementById('topicId').value;
	nbPublis=document.getElementById('nbPublis').value;
	showPaginator=document.getElementById('showPaginator').value;
	targetURL=document.getElementById('listPublisThemeTargetURL').value;
	recursive=document.getElementById('recursive').value;
	subTopicId=document.getElementById('subTopicId').value;
	showCombo=document.getElementById('showCombo').value;
	onlyThisForm=document.getElementById('onlyThisForm').value;
	
	sParams="instanceId="+instanceId+"&topicId="+topicId+"&nbPublis="+nbPublis+"&showPaginator="+showPaginator+"&showCombo="+showCombo+"&subTopicId="+subTopicId+"&recursive="+recursive+"&numeroPage="+numeroPage+"&onlyThisForm="+onlyThisForm;
	RequeteAjax(sParams,targetURL,'post','publicationsId');
}

function onBlurAction(countPage) {
	var page=document.getElementById('pageCourante').value-1; 
	if(page>=0 && page <=countPage) { 
		goToPage(page); 
	}
}

function detectKey(evt, countPage) {
    if (evt.keyCode==13) { 
    	var page=document.getElementById('pageCourante').value-1; 
    	if(page>=0 && page <=countPage) { 
    		goToPage(page); 
    	}
	}
}
