function statgo() {
	// get the value from the input element
	var debug=false;
	var obj = document.getElementById("domemain");
	var val = obj.value;
	val = "awstats/awstats.pl?config=" + val + "&amp;update=1";
	jumpr(val,debug,false);
	}

function ackgo() {
	// get the value from the input element
	var debug=false;
	var obj = document.getElementById("ackcount");
	var val = obj.value;
	jumpr(val,debug,true);
	}
function jumpr(val,debug,termflag) {
	// lowercase it
	val = val.toLowerCase();
	// if it's got .com, .org, .net, etc., remove it.
	var stripdomes = new Array(".biz",".com",".info",".net",".org",".tv");
	for (i=0;i<stripdomes.length;i++) {
		t = stripdomes[i]
		pos = val.lastIndexOf(t);
		if (pos!=-1) {
			if ((pos+t.length) == val.length) {
				//alert(t + " is at the end of the string");
				val = val.substr(0,pos);
				//alert(val);
				// exit loop
				i=stripdomes.length + 1;
				}
			}
		}
	if (val.length>1) {
		var dest = "http://client.mayo-wells.com/" + val;
		if (termflag) {dest  += "/";}
		if (debug) {alert(dest);}
		document.location.href=dest;
		}
	}

