var body  = document.getElementById('mbody');
var but   = document.getElementById('mbutton');
var check = document.getElementById('yes');
var link  = document.getElementById('exit').getElementsByTagName('a');

window.onresize = function() {
	var balls = document.getElementById('circle');
	var w = Math.floor((document.body.offsetWidth - 835)/29)*29;
	balls.style.width = w+'px';
}
window.onresize();

but.onclick = function() {
	if (!check.checked) {
		return false;
	}
	return true;
}

function openPopup() {
	body.className = "veil";
	return false;
}

function closePopup() {
	body.className = "gyuitgui";
	return false;
}
