Bueno, insisto que a mi no me da error....... sin embargo te doy soluciones ....
1. la mas rapida, es que lo cambies a codigo php, y listo!!
2. que el javascript lo pongas fuera, entre las etiquetas head y que lo pintes con innerHTML dentro de un div todo el select, asi ya no te daria el problema.
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript">
function setSelect(){
doc = '<select name="resolucion" id="resolucion">';
doc+= '<option value="ninguno" disabled="disabled"> [Seleccionar Resolucion] </option>';
var res=new Array("1024x768", "800x600", "1280x800", "1280x1024", "1440x900", "1152x864");
var resol = screen.width + "x" + screen.height;
for(a = 1; a < res.length; a++){
selected = (res[a] == resol) ? 'selected="selected"' : '';
doc += '<option value="' + res[a] + '" ' + selected + '>' + res[a] + '</option>';
}
doc+= '</select>';
document.getElementById('select').innerHTML = doc;
}
</script>
</head>
<body onload="setSelect()">
<div id="ver-left"><img class="vista" src="http://localhost/fondos/vista/1.jpg" width="310px" height="233px" alt="Vista Previa"/>
<div class="separar-ordenados"></div>
<div class="texto-ver2">Tamaños Disponibles:</div>
<form id="form1" action="http://localhost/fondos/autos/juegosn/aaaa/ver/1/" method="post">
<div id="select"></div>
<input name="descargar" type="submit" class="conectarse" value="Descargar" />
</form>
</div>
</body>
</html>
suerte.