function getInsideWindowHeight() {
	if (document.layers) {
		return window.innerHeight
	} else {
		return document.body.clientHeight
	}
}

function getInsideWindowWidth() {
	if (document.layers) {
		return window.innerWidth
	} else {
		return document.body.clientWidth
	}
}

// Check for original size
function checkPopupSize(width, height){
	if(getInsideWindowWidth!=width || getInsideWindowHeight!=height){
		if(document.layers){
			window.innerWidth = width;
			window.innerHeight = height;
			window.moveTo(parseInt((screen.width - width)/2),parseInt((screen.height - height)/3));
		} else {
			window.resizeTo(width+10, height+31);
			window.moveTo(parseInt((screen.width - width)/2),parseInt((screen.height - height)/3));
		}
	}
}

// Redirect using dropdown
function jumpTo(what){
	document.location.href = what.options[what.selectedIndex].value;
}
