var xmlhttp;

function simpleRequest(myUrl)  {	
	var strResult="";
	
	if(window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest(); // Gecko (Firefox, Moz), KHTML (Konqueror, Safari), Opera
	} else if(window.ActiveXObject) {
		xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); // Internet Explorer
	} else {
		return false;
	}
	
	xmlhttp.open("GET", myUrl, true); // Open a connection. Replace GET with HEAD in order to do a HEAD request.
	xmlhttp.setRequestHeader("Content-Type", "text/plain;charset=ISO-8859-1");
	if (xmlhttp.overrideMimeType) {
		xmlhttp.overrideMimeType("text/html; charset=ISO-8859-1");
	}
	xmlhttp.onreadystatechange=callBack;
	
	xmlhttp.send(null); // send() is used to initiate the transfer. No actual data have to be sent in this case.
}

function clearSelectBox(objBox) {
	for(i=0; objBox.options.length>0;i++) {
		objBox.options[0]=null;
	}
}

function addOptionToSelectBox(objBox, strOption, strValue) {
	var objOption = new Option(strValue, strOption);
	objBox.options[objBox.options.length] = objOption
}
