function client_size() {
	if (window.innerHeight >= 0) {
		return [window.innerWidth, window.innerHeight];
	} else if (document.documentElement && document.documentElement.clientWidth > 0) {
		return [document.documentElement.clientWidth,document.documentElement.clientHeight]
	} else if (document.body.clientHeight > 0) {
		return [document.body.clientWidth,document.body.clientHeight]
	} else {
		return [0, 0]
	}
}
function set_size(id)
{
	var box = document.getElementById(id).style;
	var clientSize = client_size();
	if (document.all && !window.innerWidth) {
		box.pixelLeft = (clientSize[0] - box.width.replace('px',''))/2;
		box.pixelTop = 50 + ( document.body.scrollTop || document.documentElement.scrollTop );
	} else {
		box.left = (clientSize[0] - box.width.replace('px',''))/2 + 'px';
		box.top = ( 50 + window.pageYOffset ) + 'px';
		
	}
}
