	function BuildPages(Pos) {
		try {
			var	table	= d.getElementById("MemberList"),
				PDisp	= d.getElementById("PageNumbers"),
				Max	= 8,
				Num	= table.rows.length / Max,
				Pages	= (Num > Math.round(Num))?Math.round(Num)+1:Math.round(Num)
				newTb	= d.createElement("table");
			PDisp.innerHTML	= "";
			PDisp.appendChild(newTb);
			newTb.insertRow(0);
			newTb.id		= "PageTable";
			newTb.border		=
			newTb.cellPadding	=
			newTb.cellSpacing	= 0;
			for(i= 0; i < table.rows.length;i++)
				table.rows[i].style.display="none";

			for(i= 1; i < Pages+1;i++) {
				var	a	= d.createElement("a"),
					span	= d.createElement("span");
				span.innerHTML	= "&nbsp;&nbsp;";
				newTb.rows[0].insertCell(newTb.rows[0].cells.length);
				newTb.rows[0].cells[newTb.rows[0].cells.length-1].appendChild(a);
				a.innerHTML	= i;
			}
			if(Pos == "Last")
				GotoPage(Pages);
			else
				GotoPage(1);
		}catch(e) {
			try {
				d.getElementById("PrevSec").style.display	=
				d.getElementById("PrevPage").style.display	=
				d.getElementById("NextPage").style.display	=
				d.getElementById("NextSec").style.display	= "none";
			}catch(e) {
			}
		}
	}
	function GotoPage(I) {
		var	table	= d.getElementById("MemberList"),
			sPrev	= d.getElementById("PrevSec"),
			sNext	= d.getElementById("NextSec"),
			PPrev	= d.getElementById("PrevPage"),
			PNext	= d.getElementById("NextPage"),
			Pages	= d.getElementById("PageNumbers"),
			tb	= d.getElementById("PageTable"),
			A	= Pages.getElementsByTagName("a"),
			max	= 10;
			
		for(i= 0; i < table.rows.length;i++)
			table.rows[i].style.display="none";
		for(i = (I-1)*8; i < ((I-1)*8 + 8); i++)
			if(i < table.rows.length)
				table.rows[i].style.display	= "";
		for(i= 0; i < A.length;i++) {
			tb.rows[0].cells[i].style.display	= ( i >= (Math.round(I/max - 0.55)*max) && i <= (Math.round(I/max-0.55)*max+max) -1 )?((navigator.appName=="Opera" || navigator.appName=="Netscape")?"table-cell":"block"):"none";
			
			if( I != i+1 ) {
				A[i].href	= "javascript:GotoPage(" + (i+1) + ");";
				A[i].className	= "page_div";
				A[i].onmouseover	= function(){this.className ="page_div_hover";};
				A[i].onmouseout		= function(){this.className ="page_div";};
			}else{
				A[i].removeAttribute("href");
				A[i].onmouseover	= function(){};
				A[i].onmouseout		= function(){};
				A[i].className	= "page_div_dead";
			}
		}
		if( (Math.round(I/max - 0.55)*max) < (Math.round(A.length/max - 0.55)*max) ) {
			sNext.href	= "javascript:GotoPage(" + (Math.round(I/max - 0.55)*max+max+1) + ");";
			sNext.className	= "page_div";
			sNext.onmouseover	= function(){this.className="page_div_hover";};
			sNext.onmouseout	= function(){this.className="page_div";};
		}else{
			sNext.removeAttribute("href");
			sNext.removeAttribute("onmouseover");
			sNext.removeAttribute("onmouseout");
			sNext.className		= "page_div_dead";
			sNext.onmouseover	= function(){};
			sNext.onmouseout	= function(){};
		}
		if( (Math.round(I/max - 0.55)*max) > 0 ) {
			sPrev.href	= "javascript:GotoPage(" + (Math.round(I/max - 0.55)*max-max+1) + ");";
			sPrev.className	= "page_div";
			sPrev.onmouseover	= function(){this.className="page_div_hover";};
			sPrev.onmouseout	= function(){this.className="page_div";};
		}else{
			sPrev.removeAttribute("href");
			sPrev.removeAttribute("onmouseover");
			sPrev.removeAttribute("onmouseout");
			sPrev.className		= "page_div_dead";
			sPrev.onmouseover	= function(){};
			sPrev.onmouseout	= function(){};
		}
		if( I > 1 ) {
			PPrev.href	= "javascript:GotoPage(" + (I-1) + ");";
			PPrev.className	= "page_div";
			PPrev.onmouseover	= function(){this.className="page_div_hover";};
			PPrev.onmouseout	= function(){this.className="page_div";};
		}else{
			PPrev.removeAttribute("href");
			PPrev.removeAttribute("onmouseover");
			PPrev.removeAttribute("onmouseout");
			PPrev.className		= "page_div_dead";
			PPrev.onmouseover	= function(){};
			PPrev.onmouseout	= function(){};
		}
		if( I  < A.length ) {
			PNext.href		= "javascript:GotoPage(" + (I+1) + ");";
			PNext.className		= "page_div";
			PNext.onmouseover	= function(){this.className="page_div_hover";};
			PNext.onmouseout	= function(){this.className="page_div";};
		}else{
			PNext.removeAttribute("href");
			PNext.removeAttribute("onmouseover");
			PNext.removeAttribute("onmouseout");
			PNext.className		= "page_div_dead";
			PNext.onmouseover	= function(){};
			PNext.onmouseout	= function(){};
		}
	}
		function SelectMethod(id,Obj) {
			switch(Obj.tagName) {
				case "DIV":
					var	divs	= Obj.parentNode.getElementsByTagName("div");
					for(var i = 0; i < divs.length; i++) {
						divs[i].className	= "Category";
						d.getElementById(id.replace("{0}",divs[i].id)).style.display	= "none";
					}
					Obj.className	= "CategorySelected";
					d.getElementById(id.replace("{0}",Obj.id)).style.display	= "";
					break;
				case "SELECT":
					for(var i = 0; i < Obj.options.length;i++)
						d.getElementById(id.replace("{0}",Obj.options[i].value)).style.display	= (Obj.options[i].selected)?"":"none";
					break;
			}
		}
		function PreSelectMethod(txt,el) {
			var	Pre	= null,
				id	= "",
				Obj	= d.getElementById(el);

			switch(txt) {
				case "Name":
				case "List":
				case "Category":
					BuildPages(1);
					break;
			}
			switch(Obj.id) {
				case "Action":
					id		= "PanelBy{0}";
					var	divs	= Obj.getElementsByTagName("div");
					for(i=0;i<divs.length;i++)
						if(divs[i].id==txt) {
							Pre=divs[i];
							break;
						}
					break;
				case "SelectByCategory":
					id	= "{0}_panel";
					Pre	= d.getElementsByTagName("select")[0];
					for(i=0;i<Pre.options.length;i++)
						if(Pre.options[i].value==txt) {
							Pre.options[i].selected = true;
							break;
						}
					break;
			}
			SelectMethod(id,Pre);
		}
		function MemberHover(Obj,Action) {
			Obj.className	= (Action == "Hover")?"PanelHover":"Panel";
		}
