function CheckCode(url) {
	var xmlHttp = XmlHttp.create();
	var info = "";
	xmlHttp.open("GET", url, false);	// async
	xmlHttp.onreadystatechange = function () {
		if (xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200){ 
					info= xmlHttp.responseText; 
 			}
		}
	};
	// call in new thread to allow ui to update
	//window.setTimeout(function () {
	//	xmlHttp.send(null);
	//}, 10);
	xmlHttp.send(null);
	return info;
}
