
var req=null;
var READY_STATE_COMPLETE=4;

function sendReq(url, callback) {
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
    }
    if (req) {
        req.onreadystatechange = callback;
        req.open("GET", url, true);
        req.send(null);
    }
}

function GRTip (string) {
	Tip(string , WIDTH, 200, SHADOW, true, SHADOWWIDTH, 2, SHADOWCOLOR, '#303030', BGCOLOR, '#ffffee', PADDING, 8, FOLLOWMOUSE, false, FADEIN, 100, FADEOUT, 80)	
}

function toggleBox(boxid) {
	box = document.getElementById(boxid);
	if (box.style.display == "none") {
		box.style.display = "block";
	} else {
		box.style.display = "none";
	}
}
