/*
	THIS FILE IS NOT AUTHORIZED TO BE USED OUTSIDE OF highscorecentral.com OR sassilization.com
	DO NOT EDIT, COPY, OR OTHERWISE USE THIS FILE. IF YOU DO, YOU WILL BE PROSECUTED TO THE FULL
	EXTENT OF THE LAW
	
	(C) Copyright 2008 Sassilization Team
*/
function CallPage(callurl, params, callback, method) {
	var Response = '';
	var xmlHttp;
	try {
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	if (!xmlHttp) {
		alert('Cannot create XMLHTTP instance');
		return false;
	}
	this.stateChanged = function () {
		if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {
			Response = xmlHttp.responseText;
			eval(callback);
		}
	}
	this.getResponse = function () {
		return Response;
	}
	xmlHttp.onreadystatechange = this.stateChanged;
	if (method == "GET") {
		callurl = callurl + "?" + params;
		params = null;
		xmlHttp.open("GET", callurl, true);
	} else if (method == "POST") {	
		xmlHttp.open("POST", callurl, true);
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.setRequestHeader("Content-length", params.length);
		xmlHttp.setRequestHeader("Connection", "close");
	}
	xmlHttp.send(params);
}
/*
	THIS FILE IS NOT AUTHORIZED TO BE USED OUTSIDE OF highscorecentral.com OR sassilization.com
	DO NOT EDIT, COPY, OR OTHERWISE USE THIS FILE. IF YOU DO, YOU WILL BE PROSECUTED TO THE FULL
	EXTENT OF THE LAW
	
	(C) Copyright 2008 Sassilization Team
*/