// Java Document
function tri_AJAX(choice,objId) {
	var tri_xmlHttp = false;
	var parserSrc='tri/rss/rss-links.php';
	///////
	function createXMLHttpRequest() {
		if (window.XMLHttpRequest) {
				 tri_xmlHttp = new XMLHttpRequest(); 
				 if (tri_xmlHttp.overrideMimeType) { 
						 tri_xmlHttp.overrideMimeType('text/xml'); 
				 } 
		} else if (window.ActiveXObject) {
			try { 
				tri_xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); 
			} catch (e) { 
					try { 
						tri_xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
					} catch (e) {} 
			} 
		} 
		if (!tri_xmlHttp) { 
				 alert('Tsakise.'); 
				 return false;
		}
	}
	////////////////
	function pollCallback() {
		if (tri_xmlHttp.readyState == 4) {
			if (tri_xmlHttp.status == 200) {
				var trg=document.getElementById(objId);
				try { 
					trg.innerHTML=tri_xmlHttp.responseXML.getElementsByTagName("resp")[0].childNodes[1].nodeValue;
				} catch (e) { 
					trg.innerHTML=tri_xmlHttp.responseXML.getElementsByTagName("resp")[0].childNodes[0].nodeValue;
				} 
			}
		}
	}
	///////////////////	
	createXMLHttpRequest();
	var url=parserSrc+'?ch='+choice;
	tri_xmlHttp.open("GET", url, true);
	tri_xmlHttp.onreadystatechange = pollCallback;
	tri_xmlHttp.send(null);
}
///////////////////
function tab_clicked(obj,cho){
		if (x_clicked_tab) x_clicked_tab.className='';
		obj.setAttribute('class', 'activetab');
		obj.setAttribute('className', 'activetab');
		x_clicked_tab=obj;
		//==================		
		//alert(cho);
		tri_AJAX(cho,'tabbedrsssnewsfeed');
}
