var currentTab = 'guildrules';
var currentReqType = 'task';

function switchTab(_id) {	
	if (_id != currentTab) {
		
		$(_id + 'Link').style.fontStyle = 'italic';
		//$(_id + 'Link').style.color = '#660000';
		$(_id).style.display = 'block';
		
		$(currentTab + 'Link').style.fontStyle = 'normal';
		//$(currentTab + 'Link').style.color = '#660000';
		$(currentTab).style.display = 'none';

		currentTab = _id;
	}
}

function switchReqType(_id) {	
	if (_id != currentReqType) {
		
		$(_id).style.display = 'block';
		
		$(currentReqType).style.display = 'none';

		currentReqType = _id;
	}
}