function __O(id) {
	return document.getElementById(id);
	}

function __GET() {
	if (typeof getObj == 'object') { return getObj; }
	var queryInx = document.location.toString().indexOf('?');
	if ( queryInx == -1) return {};
	var query = document.location.toString().substr(queryInx + 1);
	getArray = query.split ('&');
	
	if (getArray.length == 0) return {};
 	getObj = {};

	for (var i = 0; i < getArray.length; ++i) {
		var paramArray = getArray[i].split ('=', 2);
		getObj [paramArray[0]] = (paramArray.length == 2) ? paramArray [1] : '';
	}
	return getObj;
}

function __CE(element) {
	return document.createElement(element);
	}

function __CTN(text) {
	return document.createTextNode(text);
	}

function showGraph() {
	__O('loadingImg').style.display = 'none';
	__O('graphImg').style.display = 'block';
	}

function openGraphWindow(params) {
	window.open('showgraph.php?' + params, '', 'resizable=0, scrollbars=0, width=500, height=350, titlebar=0, menubar=0, toolbar=0, left=100, right=100, screenX=100, screenY=100');
	}