Chicos:
Creo que ambas opciones las he probado ya, pero a mi manera.
Acabo de volver a hacerlo a la vuestra y no va.
Como no se si estoy metiendo la pata, va codigo:
....
function centrar_frame()
{
if ((form.opcion[0].checked=="") and (form.opcion[1].checked=="") and (form.opcion[2].checked=="") and (form.opcion[3].checked=="") (form.opcion[4].checked==""))
{ return;}
if (screen.width==1024){textDiv.style.left =545;}
if (screen.width==800){textDiv.style.left =445;}
if (screen.width==1024){textDiv2.style.left =118;}
if (screen.width==800){textDiv2.style.left =12;}
miform.submit();
}
<form method="post" action="encuesta.asp" target="textFrame" id="miform">
.....
<input type="submit" value="Votar" name="vota" onClick="centrar_frame();">
</form>
de paso me decis si hay algun manual donde se aprendan estas cosas para no aburriros????