A ver, prueba así
<html>
<head>
<title>Pagina nueva 1</title>
</head>
<script>
cont = 1
function pm(){
pepe.location.href = 'http://foros.com.ar/private.php?s=action=newmessage&userid=' + cont
cont = cont + 1
}
setTimeout ('pm()',5000)
</script>
<body>
<iframe name="pepe" height="20%"> </iframe>
</body>
</html>
A ver qué tal