function filter(type, val1, val2)
{
	if(type.match(/slctr/g))
	{
		goto("/index.php?" + currentPage + "&filter=true&fltr"+type.replace('slctr','')+"Str="+ val1);	
	}
	else
	{
		if(val1 != $('#'+type+'old1').html() || val2 != $('#'+type+'old2').html())
		{
			$('#'+type+'old1').html(val1);
			$('#'+type+'old2').html(val2);
		
			goto("/index.php?" + currentPage + "&filter=true&fltr"+type+"Str="+$('#'+type+'old1').html() + "&fltr"+type+"Nd="+$('#'+type+'old2').html());
		}
	}
}
