var xmlhttp;
function stateChange ()
{
	if (xmlhttp.readyState == 4)
		{
		// 4 = "loaded"
		if (xmlhttp.status == 200)
			{
			// 200 = "OK"
			} else {
				// alert("Problem retrieving XML data");
			}
		}
	}
function refreshBanner ( linkId, imgId, grp, type )
	{
		var url = '/tuononews.nsf/RefreshObjURL?OpenAgent&GRP=' + grp + '&Type=' + type;
		var retStr;
		var BnrA = document.getElementById( linkId );
		var BnrI = document.getElementById( imgId );
		xmlhttp = null;
		
		if (window.XMLHttpRequest) {
			// code for all new browsers
 			xmlhttp = new XMLHttpRequest();
		} else if (window.ActiveXObject) {
			// code for IE5, IE6, etc.
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		if (xmlhttp != null) {
			xmlhttp.onreadystatechange = stateChange;
			xmlhttp.open("GET", url, false);
			xmlhttp.send(null);
			retStr = xmlhttp.responseText;
			
		} else {
			// alert("Your browser does not support XMLHTTP.");
		}
		
		lista = retStr.split('$&$');
		BnrA.href = lista[1];
		BnrI.src = lista[2];
		
	}
