function httpObject() {
	var req = false;
    	// branch for native XMLHttpRequest object
    	if(window.XMLHttpRequest) {
    		try {
			req = new XMLHttpRequest();
        	} catch(e) {
			req = false;
        	}
	// branch for IE/Windows ActiveX version
	} else if(window.ActiveXObject) {
       		try {
        		req = new ActiveXObject("Msxml2.XMLHTTP");
      		} catch(e) {
        		try {
          			req = new ActiveXObject("Microsoft.XMLHTTP");
        		} catch(e) {
          			req = false;
        		}
		}
    	}
    	return req;
}


function load(url) {
	try{
	var req = httpObject();
	if(req) {
		req.open("GET", url, false); //true for async
		req.send(null);
		return req.responseText;
	}
		} catch(e) { alert('3' + e.description); }
	return "";
}

function updiv(div, url, frwidth, frheight) {
	try {
	var div = document.getElementById(div);
} catch(e) { alert('1' + e.description); }
	
	try {
		document.write('<iframe name="rssbus_widget_frame" width="' + frwidth + '" height="' + frheight + '" frameborder="no" src="' + url + '" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">');
		document.write('</iframe>');

	} catch(e) { alert('2' + e.description); }
	return false;
}
