function filt_m(flt) {
	var cookie_string = flt.id + "=" + flt.selectedIndex;
	var expire_date = new Date();
	expire_date.setTime(expire_date.getTime() + 6 * 1000);
	cookie_string += "; expires=" + expire_date.toGMTString();
	document.cookie = cookie_string;
	flt.options[0].selected = true;
	window.location = "news.htm"
}
function news_init() {
	var Tt = document.getElementById('Tab');
	var coo = " " + document.cookie + ";";
	var fc = coo.indexOf("sel");
	if (fc != -1) {
		f = document.getElementById("sel" + coo.substring(fc + 3, fc + 4));
		var fci = coo.substring(fc + 5, coo.indexOf(";", fc + 5));
		f.options[fci].selected = true;
	  for (i = 1; i < Tt.rows.length-1; i++)
			Tt.rows[i].style.display=(Tt.rows[i].id.indexOf(f[fci].value) != -1)? "" : "none";
	}
  return true;
}
function is_row_visible(i) {
	var coo = " " + document.cookie + ";";
	var Tt = document.getElementById("Tab");
	var f1 = document.getElementById("sel1");
	var f2 = document.getElementById("sel2");
	var s1v = f1.value == "000_"; 
	var s2v = f2.value == "all_"; 
	var s1= Tt.rows[i].id.indexOf(f1.value) != -1; 
	var s2= Tt.rows[i].id.indexOf(f2.value) != -1; 
  return (s1v && s2) || (s2v && s1) || (s1v && s2v) || (s1 && s2);
}
function filt() { 
	var Tt = document.getElementById('Tab');
	  for (i = 1; i < Tt.rows.length-1; i++)
			Tt.rows[i].style.display=(is_row_visible(i))? "" : "none";
  return true;
}