Come non puoi utilizzare lo stesso valore per più variabili??
Certo che puoi!
L'errore era aver scritto window.resize() come hai scritto tu anziché window.resizeTo().
Così corretto funziona tranquillamente:
codice:
<html>
<head>
<title>jslab</title>
<script language="javascript" type="text/javascript">
<!--
function wcenter() {
var x = Math.round(screen.width/3);
var y = Math.round(screen.height/3);
window.resizeTo(x,y);
window.moveTo(x,y);
}
//-->
</script>
</head>

<body>
Resize window: <input type="button" value="center window" onclick="wcenter();">
</body>
</html>
Prova da te.
Ecco dove l'ho scoperto: http://www.javascripter.net/faq/resizing.htm
Ciao