function winW() {
	if (document.all) {
		return document.body.offsetWidth
	} else {
		return window.innerWidth
	}
}

function winH() {
	if (window.innerWidth) {
		  return window.innerHeight;
	} else if (document.documentElement && document.documentElement.offsetHeight) {
		return document.documentElement.offsetHeight
	} else if (document.body) {
		  return document.body.offsetHeight
	}
}

function getObj(name){
	if(document.getElementById){
		return document.getElementById(name);
	}else if(document.all){
		return document.all[name];
	}
}

function getStyle(name){
	return getObj(name).style;
}
