Hola, gagarin. (¿Eres tú el primer astronauta?

Debes estar ya un poco mayor

)
Bueno, al grano. Mira este código:
Código PHP:
<html>
<head>
<title>Untitled Document</title>
<script>
function cerrar() {
window.close(); }
</script>
</head>
<body onLoad="setTimeout('cerrar()',[COLOR=red]5000[/COLOR] )">
<input type="button" value="cerrar" onClick="window.close()">
</body>
</html>
Se cerrará la ventana cuando pulses el botón o pasen 5 segundos. En rojo tienes el dato que deberás cambiar para poner más o menos tiempo (en milisegundos)
Espero que te funcione. Saludos,