function ShowTab(div,nrMax) {
	for (var i=0;i<nrMax;i++) {
		if (div==i) {
			document.getElementById('tab_'+i).className='activeTab';
			document.getElementById('divContent_'+i).style.display='block';
		} else {
			document.getElementById('tab_'+i).className='inactiveTab';
			document.getElementById('divContent_'+i).style.display='none';
		}
	}
}
function ShowTabbanner(div,nrMax) {
	for (var i=0;i<nrMax;i++) {
		if (div==i) {
			document.getElementById('bannerTab_'+i).className='tabBannerActive';
			document.getElementById('bannerDiv_'+i).style.display='block';
		} else {
			document.getElementById('bannerTab_'+i).className='tabBannerInactive';
			document.getElementById('bannerDiv_'+i).style.display='none';
		}
	}
}
function searchArticles() {
	if ($val('searchVal')=='') {
		window.location=window.siteroot+"Articole.html";
	} else {
		window.location=window.siteroot+"Anchete.html?s="+eurl($val('searchVal'));
	}
}
function searchVideo() {
	if ($val('sval')=='') {
		window.location=window.siteroot+"Video.html";
	} else {
		window.location=window.siteroot+"Video.html?s="+eurl($val('sval'));
	}
}
function articlesArchive(value) {
	if (value!='') {
		window.location=window.siteroot+"articles/?d="+eurl(value);
	} else {
		window.location=window.siteroot+"articles";
	}
}