Which sux ofcourse, but you can use it (with screen.width and screen.height.....but you could make it like
var width = screen.width;
var height= screen.height;
window.location = "http://yourserver.com/index.php?width=" + width + "&height=" + height;
something like that....