function switchsearchOption(active) {
	if (typeof(active) == undefined || (active != 'all' && active != 'gadgets' && active != 'articles' && active != 'video' && active != 'comments'))
	{
		active == 'all';
	}
	var coll = document.getElementById('searchOption').childNodes;
	collLength = coll.length;
	for (var i = 0; i < collLength; i+=2) {
		coll[i].onclick = activateOpt;
		if (coll[i].title == active)
		{
			coll[i].className = 'active';
			window.activeOptSearch = coll[i];
		}
	}
}
function activateOpt() {
	if (window.activeOptSearch) {
		window.activeOptSearch.className = '';
	}
	window.activeOptSearch = this;
	this.className = 'active';
	document.getElementById('opt').value = window.activeOptSearch.title;
	document.getElementById('searchform').submit();
}