var debug = new Boolean(true);

var dom = {
	obj : Object,
	valid : Boolean,
		
	test : function() {
		this.valid = false;
		this.get();
		
		if (this.obj.getElementById && this.obj.getElementsByTagName) {
			this.valid = true;
		} else {
			throw new Error("The browser does not support the minimum requirements");
		}
		
		return this.valid;
	},
	
	get : function() {
		this.obj = self.document;
		return this.obj;
	}
};

var browser = {
	obj : Object,
	
	check : function() {
		this.obj = self.navigator;
		
		if (this.obj.appName == 'Microsoft Internet Explorer') {
			return true;
		}
	}
};

window.onload = function() {
	try {
		dom.test();
		browser.check();
	} catch (ex) {
		if (ex instanceof Error && ex.message != null && debug) {
			alert(ex.message);
		}
	}
};

window.onresize = function() {
	try {
		if (browser.check()) {
			window.location.reload();
		}
	} catch (ex) {
		if (ex instanceof Error && ex.message != null && debug) {
			alert(ex.message);
		}
	}
};