//Change to another tab, identified using an id
function go(tabid){
	var sep = articleUrl.indexOf("?") < 0 ? '?' : '&';
	var url = articleUrl + sep + SHOW_FIELD + '=' + tabs[tabid];
	Ext.Ajax.request({
		url : url + '&' + AJAX_FIELD + '=true', //This is added separately so we can still use the url in the event of a failure 
		params : {},
		method: 'GET',
		success: function ( result, request ) { 
			//Replace the tabpane with the contents of the response 
			Ext.get('tabpane').dom.innerHTML = result.responseText;
			
			if(tabid!=selected){
				Ext.get('tab'+selected).dom.className = 'taboff';
				Ext.get('tab'+tabid).dom.className = 'tabon';
				selected = tabid;
			}
		},
		failure: function ( result, request) {
			//If the request fails, just redirect the page 
			window.location = url;
		} 
	});
	return false;
}
