//game.js - this is to call up the PHP file gameprocess.php and let them know wtf is up
// JavaScript Document
//Browser Support Code
function loadBoxes(){
	var ajax_boxes;
	try{
		// Opera 8.0+, Firefox, Safari
		ajax_boxes = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajax_boxes = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajax_boxes = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	ajax_boxes.onreadystatechange = function(){
	if(ajax_boxes.readyState == 4){
		document.getElementById('game_container').innerHTML = ajax_boxes.responseText
		}
	}
	ajax_boxes.open("GET", "gameprocess.php?loadgame=true", true);
	ajax_boxes.send(null);
}