l'ID deve essere univoco, mentre il name puoi applicarlo a tutti quelli che vuoi.
Io lo farei così:
metti un id anche all'iFrame:
<iframe id="MyFrame" src="..." />
Poi fai
codice:window.onload = function(){ document.getElementById("nextLink").onclick = function(){ var testo=incrpagina(); document.getElementById('MyFrame').src = 'consiglio_'+testo+'.php'; return false; } }