﻿function openPopup() {
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
	windowWidth = self.innerWidth;
	windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}
	
	var divPopup = document.getElementById("divPopup");
	divPopup.style.height = windowHeight;
	//divPopup.style.width = windowWidth;
	divPopup.style.visibility = "visible";
	
	document.getElementById("divGreenTop").style.width = Math.floor((windowWidth-450)/2+420);
	document.getElementById("divGreenDown").style.width = Math.floor((windowWidth-450)/2+450);	
	
	}

function closePopup() {
	var divPopup = document.getElementById("divPopup");
	divPopup.style.visibility = "hidden";
 }
