<!--function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_jumpMenu(targ,selObj,restore){ //v3.0  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  if (restore) selObj.selectedIndex=0;}//Used to create rollovers on navigationfunction switchClass(obj, newclass) {	obj.className = newclass;}//Dropdown menufunction s_show() {	return false}function s_hide(){	return false}if(window.event+''=='undefined') event=0;// Clear search boxfunction clearsearch() {	obj = document.forms['searchform'].query;	if (obj.value == "Search") {		obj.value = "";	}}// Fill empty search boxfunction fillsearch() {	obj = document.forms['searchform'].query;	if (obj.value == "") {		obj.value = "Search";	}}// Clear county boxfunction clearcounty() {	obj = document.forms['theform'].member_county_new;	if (obj.value == "or create a new one") {		obj.value = "";	}}// Fill empty county boxfunction fillcounty() {	obj = document.forms['theform'].member_county_new;	if (obj.value == "") {		obj.value = "or create a new one";	}}// Clear country boxfunction clearcountry() {	obj = document.forms['theform'].member_country_new;	if (obj.value == "or create a new one") {		obj.value = "";	}}// Fill empty country boxfunction fillcountry() {	obj = document.forms['theform'].member_country_new;	if (obj.value == "") {		obj.value = "or create a new one";	}}// Check and Submit a searchfunction submitsearch() {	obj = document.forms['searchform'].query;	if (obj.value == "Search") {		alert("Please enter a search word before pressing 'GO'.");	}	else if (obj.value == "") {		alert("Please enter a search word before pressing 'GO'.");	}	else {		document.forms['searchform'].submit();	}}function reloader(){//	document.form["theform"].submit();	document.getElementsByName('theform')[0].submit();}function logpop(type) {	url = "log" + type + ".php?"	page = window.open(url, "LogWin", "width=400, height=250");	page.focus();}function logout() {	page = window.open("../logout_admin.php", "LogWin", "width=400, height=250");	page.focus();}function submitfilter() {	document.forms['filterform'].submit();}function feedback(feedbacktext){	if ((feedbacktext != null) && (feedbacktext != "")) {		alert(feedbacktext);	}}function hider(field) {	document.getElementById(field).style.display = "none";}function subcat_show(call, field) {	var current_cat = call.value;	var obj = document.getElementById("member_subcat" + field);	var container = document.getElementById("subcat" + field);		if (call.value == "") {		obj.options.length = 0;		//container.style.display = "none";	}	else {		obj.options.length = 0;		//category[current_cat].sort();		x=0;		for(key in category[current_cat]) {					obj.options[x] = new Option(category[current_cat][key], key, false, false);			x++;		}		//container.style.display = "";			}}function subcat_search(call, field) {	var current_cat = call.value;	var obj = document.getElementById(field);		if (call.value == "") {		obj.options.length = 0;		obj.style.display = "none";	}	else {		obj.options.length = 0;		//category[current_cat].sort();			obj.options[0] = new Option("All subcategories", "", false, false);		x=1;		for(key in category[current_cat]) {					obj.options[x] = new Option(category[current_cat][key], key, false, false);			x++;		}		obj.style.display = "";			}}//-->