if (document.location.href.substring(document.location.href.lastIndexOf(".")) == ".html"
	|| document.location.href.substring(document.location.href.lastIndexOf("/")) == "/forum.php")
{
	var a = document.location.href.lastIndexOf("/")+1;
	var e = document.location.href.lastIndexOf(".");
	var m = document.location.href.substring(a,e);
	document.location.href = "index.php?"+m;
}
