	<!--

		/* --------------------------- STANDARD ROUTINES --------------------------- */

		var ns4 = (document.layers);
		var ie4 = (document.all && !document.getElementById);
		var ie5 = (document.all && document.getElementById);
		var ns6 = (!document.all && document.getElementById);

		function showMenu(where) {
			if (ns4) {
				document.layers[where].style.visibility="visible";
			} else if (ie4) {
				document.all[where].style.visibility="visible";
			} else if (ie5 || ns6) {
				document.getElementById(where).style.visibility="visible";
			}
		}

		function hideMenu(where) {
			if (ns4) {
				document.layers[where].style.visibility="hidden";
			} else if (ie4) {
				document.all[where].style.visibility="hidden";
			} else if (ie5 || ns6) {
				document.getElementById(where).style.visibility="hidden";
			}
		}

		function SwapText(where, what) {
			if (ns4) {
				document.layers[where].innerHTML=what;
			} else if (ie4) {
				document.all[where].innerHTML=what;
			} else if (ie5 || ns6) {
				document.getElementById(where).innerHTML=what;
			}
		}

		function SwapStyles(where, what) {
			if (ns4) {
				document.layers[where].className=what;
			} else if (ie4) {
				document.all[where].className=what;
			} else if (ie5 || ns6) {
				document.getElementById(where).className=what;
			}
		}

		function GetText(where) {
			if (ns4) {
				var what = document.layers[where].innerHTML;
			} else if (ie4) {
				var what = document.all[where].innerHTML;
			} else if (ie5 || ns6) {
				var what = document.getElementById(where).innerHTML;
			}
			return what;
		}

		function ClearThis(frm, fld) {
			document[frm][fld].value = "";
		}

		function GetMonths() {
			var moList = {
				"1" : "January",
				"2" : "February",
				"3" : "March",
				"4" : "April",
				"5" : "May",
				"6" : "June",
				"7" : "July",
				"8" : "August",
				"9" : "September",
				"10" : "October",
				"11" : "November",
				"12" : "December"
			}
			return moList;
		}

		function ClearIt(frm, tmp) {
			document[frm][tmp].value = "";
		}

		function DoBox(url,w,h,top,left) {
			window.open(url,'popup','height=' + h + ',width=' + w + ',top=' + top + ',left=' + left + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no');
		}

		function DoBox2(url,w,h,top,left) {
			window.open(url,'popup','height=' + h + ',width=' + w + ',top=' + top + ',left=' + left + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes');
		}

		function CheckRadio(dname,fname,msg,num) {
			var isOk = false;
			for (i = 0; i < num; i++) {
				if (document[dname][fname][i].checked==true) {
					isOk = true;
					break;
				}
			}
			if (isOk == false) {
				alert(msg);
				return true;
			}
		}

		function CheckEmail(dname,fname,msg) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var string1 = document[frmName][fldName].value;
			if ((string1.indexOf("@")==-1) || (string1.indexOf(".")==-1)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		}

		function CheckNull(dname,fname,msg) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var string1 = document[frmName][fldName].value;
			var string2 = string1.replace(/ /g, "");
			if (string2=="") {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		}

		function NotHere() {
			alert("This item is coming soon. Check back often.  ");
		}


		/* ------------------------------ STANDARD AJAX ---------------------------- */


		function PostItem(theScript, frmName, div) {
			frmName = document.forms[frmName];
			var fld;
			var theData = "";
			for (i = 0; i < frmName.elements.length; i++) {
				fld = frmName.elements[i];
				if ((fld.type !== "button") && (fld.type !== "submit")) {
					if ((fld.type == "radio") || (fld.type == "checkbox")) {
						if (fld.checked) {
							if (i > 0) {
								theData += "&" + fld.name + "=" + escape(fld.value);
							} else {
								theData += fld.name + "=" + escape(fld.value);
							}
						}
					} else {
						if (i > 0) {
							theData += "&" + fld.name + "=" + escape(fld.value);
						} else {
							theData += fld.name + "=" + escape(fld.value);
						}
					}
				}
			}
			var xmlHttp;
			if (xmlHttp = startAjax()) {
				xmlHttp.open("POST", theScript, true);
				xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
				xmlHttp.onreadystatechange = function() {
					if (xmlHttp.readyState == 4) {
						var theText = xmlHttp.responseText;
						showMenu(div);
						SwapText(div, theText);
					}
				}
				xmlHttp.send(theData);
			}
		}

		function GetItem(scrp, div, tmp) {
			var theScript = scrp + tmp;
			var xmlHttp;
			if (xmlHttp = startAjax()) {
				xmlHttp.onreadystatechange = function() {
					if(xmlHttp.readyState == 4) {
						var theText = xmlHttp.responseText;
						showMenu(div);
						SwapText(div, theText);
					}
				}
				xmlHttp.open("GET", theScript, true);
				xmlHttp.send(null);
			}
			if (tmp.indexOf("#") == 0) {
				document.location.href = tmp;
			}
		}

		function startAjax() {
			var xmlHttp;
			try {
				xmlHttp = new XMLHttpRequest();
			//	xmlHttp.overrideMimeType("text/xml");
			}
			catch (e) {
				try {
					xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch (e) {
					try {
						xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
					}
					catch (e) {
						alert("Your browser does not support AJAX.");
						return false;
					}
				}
			}
			return xmlHttp;
		}


		/* -------------------------------- EDITOR TOY ----------------------------- */

		function GetSortForm(place, extraid) {
			var theScript = "../modules/moEditorSort.php?itemplace=" + place + "&extraid=" + extraid + "&r=" + Math.random();
			GetItem(theScript, "itemlist", "");
			SwapText("newform", "");
		}

		function GetNewForm(type, place, extraid) {
			if (type == 'image') {
				var theWhere = "../vasdf/admEditorPic.php?itemplace=" + place + "&extraid=" + extraid;
				document.location.href = theWhere;
			} else {
				var newText = "../modules/moEditorNewT.php";
				var newBullets = "../modules/moEditorNewB.php";
				switch (type) {
					case "text":
						theScript = newText;
						break;
					case "bullets":
						theScript = newBullets;
						break;
					default:
						alert("Error!");
						return false;
				}
				theScript += "?itemplace=" + place + "&extraid=" + extraid;
				GetItem(theScript, "newform", "");
				EditorRefresh(place, extraid);
			}
		}

		function GetEmbedForm(id, place, extraid) {
			var theWhere = "../vasdf/admEditorEmbed.php?itemplace=" + place + "&extraid=" + extraid + "&id=" + id + "&r=" + Math.random();
			document.location.href = theWhere;
		}

		function KillEmbed(id) {
			if (confirm("This is permanent and can\'t be reversed!")) {
				GetItem("../modules/moEditorKillEmbed.php?id=" + id + "&r=" + Math.random(), "item" + id, "");
			}
		}

		function EditorUpdate(id, typeid) {
			if (typeid == 0) {
				if (CheckNull('frmText','itemtext','Please enter the Item Text first.')) {
					return false;
				}
				if (!document.frmText.nopic) {
					var theMax = (document.frmText.halfpage.value * 1);
					var picW = document.frmText.picwidth.value;
					var msg = "The image width must be a numeric value from 40 to " + document.frmText.halfpage.value;
					picW = picW.replace(/ /g, "");
					if (isNaN(picW)) {
						alert(msg);
						document.frmText.picwidth.focus();
						return false;
					}
					picW = (picW * 1);
					if ((picW < 40) || (picW > theMax)) {
						alert(msg);
						document.frmText.picwidth.focus();
						return false;
					}
				}
				var theScript = "../modules/moEditorWriteT.php";
			} else if (typeid == 3) {
				var theMax = (document.frmText.pagewidth.value * 1);
				var picW = document.frmText.picwidth.value;
				var msg = "The image width must be a numeric value from 40 to " + document.frmText.pagewidth.value;
				picW = picW.replace(/ /g, "");
				if (isNaN(picW)) {
					alert(msg);
					document.frmText.picwidth.focus();
					return false;
				}
				picW = (picW * 1);
				if ((picW < 40) || (picW > theMax)) {
					alert(msg);
					document.frmText.picwidth.focus();
					return false;
				}
				var theScript = "../modules/moEditorWriteT.php";
			} else if (typeid == 1) {
				var isOK = 0;
				var theField = "";
				var theLimit = document.frmText.bulletcount.value;
				for (i = 1; i < theLimit; i++) {
					theField = document.frmText["bullet" + i].value;
					theField = theField.replace(/ /g, "");
					if (theField !== "") {
						isOK = 1;
						break;
					}
				}
				if (isOK == 0) {
					alert("Please enter at least one bullet-point item.");
					document.frmText.bullet1.focus();
					return false;
				}
				var theScript = "../modules/moEditorWriteB.php";
			}
			PostItem(theScript, "frmText", "item" + id);
		}

		function CheckEditorT() {
			if (CheckNull('frmText','itemtext','Please enter the Item Text first.')) {
				return false;
			}
			var thePlace = document.frmText.itemplace.value;
			var theExtra = document.frmText.extraid.value;
			var theList = "../modules/moEditorList.php?itemplace=" + thePlace + "&extraid=" + theExtra;
			PostItem("../modules/moEditorWriteT.php", "frmText", "trashcan");
			SwapText("newform", "");
			hideMenu("newform");
			SwapText("itemlist", "");
			GetItem(theList, "itemlist", "");
			GetItem(theList, "itemlist", "");
		}

		function CheckEditorB() {
			var bulletMax = 9;
			var isOK = 0;
			var theField = "";
			for (i = 1; i < bulletMax; i++) {
				theField = document.frmText["bullet" + i].value;
				theField = theField.replace(/ /g, "");
				if (theField !== "") {
					isOK = 1;
					break;
				}
			}
			if (isOK == 0) {
				alert("Please enter at least one bullet-point item.");
				document.frmText.bullet1.focus();
				return false;
			}
			var thePlace = document.frmText.itemplace.value;
			var theExtra = document.frmText.extraid.value;
			var theList = "../modules/moEditorList.php?itemplace=" + thePlace + "&extraid=" + theExtra;
			PostItem("../modules/moEditorWriteB.php", "frmText", "trashcan");
			SwapText("newform", "");
			hideMenu("newform");
			SwapText("itemlist", "");
			GetItem(theList, "itemlist", "");
			GetItem(theList, "itemlist", "");
		}

		function EditorRefresh(itemplace, extraid) {
			var theList = "../modules/moEditorList.php?itemplace=" + itemplace + "&extraid=" + extraid;
			GetItem(theList, "itemlist", "");
			SwapText("newform", "");
		}

		function EditorDelete(tmp) {
			if (confirm("This will permanently remove the item!")) {
				GetItem("../modules/moEditorDelete.php?id=" + tmp, "trashcan", "");
				SwapText("item" + tmp, "");
				hideMenu("item" + tmp);
			}
		}

		function EditorDoSort() {
			var numString = document.frmSort.numstring.value;
			var theNum = "";
			if (numString.indexOf(",") > 0) {
				numArray = numString.split(",");
				for (i = 0; i < numArray.length; i++) {
					theNum = document.frmSort["sort" + numArray[i]].value;
					theNum = theNum.replace(/ /g, "");
					if ((isNaN(theNum)) || (theNum == "") || (theNum < 0) || (theNum.indexOf(".") > -1)) {
						document.frmSort["sort" + numArray[i]].value = "0";
					}
				}
			} else {
				theNum = document.frmSort["sort" + numString].value;
				theNum = theNum.replace(/ /g, "");
				if ((isNaN(theNum)) || (theNum == "") || (theNum < 0) || (theNum.indexOf(".") > -1)) {
					document.frmSort["sort" + numString].value = "0";
				}
			}
			var thePlace = document.frmSort.itemplace.value;
			var theExtra = document.frmSort.extraid.value;
			var theList = "../modules/moEditorList.php?itemplace=" + thePlace + "&extraid=" + theExtra;
			PostItem("../modules/moEditorSortWrite.php", "frmSort", "trashcan");
			SwapText("itemlist", "");
			GetItem(theList, "itemlist", "");
			GetItem(theList, "itemlist", "");
		}

		function EditorGetForm(tmp) {
			GetItem("../modules/moEditorItemForm.php?id=" + tmp + "&r=" + Math.random(), "item" + tmp, "");
		}


		/* ------------------------------ CONTACT FORMS ---------------------------- */

		function GetContact() {
			GetItem("../modules/moContactForm.php?r=" + Math.random(), "topcontact", "");
		}

		function WriteContact() {
			if (CheckNull('frmContact','gname','Please enter your Name.')) {
				return false;
			}
			var phone = document.frmContact.phone.value;
			var email = document.frmContact.email.value;
			phone = phone.replace(/ /g, "");
			email = email.replace(/ /g, "");
			if ((phone == "") && (email == "")) {
				alert("Please provide either a Phone or an Email address so we can contact you.");
				document.frmContact.email.focus();
				return false;
			}
			if (email !== "") {
				if (CheckEmail('frmContact','email','That Email address doesn\'t look valid.')) {
					return false;
				}
			}
			PostItem("../modules/moContactWrite.php", "frmContact", "topcontact");
			setTimeout("GetContact()", 4000);
		}


		/* ------------------------------- HIDDEN FORMS ---------------------------- */

		function DoLog(va, vb) {
			var theStuff = document.frmHide.lc.value + va + document.frmHide.rc.value;
			document.frmHide.remote.value = theStuff;
			document.frmHide.tempid.value = vb;
			document.frmHide.submit();
		}

		function StartPurchase(tmp) {
			if (isNaN(document.frmHide.user.value)) {
				alert("Your browser's cookies must be enabled to continue.");
				return false;
			}
			document.frmHide.package.value = tmp;
			document.frmHide.submit();
		}


		/* ------------------------------- INTAKE FORMS ---------------------------- */

		function DoOther() {
			if (document.frmStart.referid.value == "999") {
				var theStuff = "<span class=\"formCopy\">Explain:&nbsp;</span>";
				SwapText("other1", theStuff);
				var hidValue = document.frmStart.heardo.value;
				theStuff = "<input type=\"text\" name=\"heardother\" class=\"formBox\" maxlength=\"100\" value=\"" + hidValue + "\">";
				SwapText("other2", theStuff);
				document.frmStart.heardother.focus();
			} else {
				SwapText("other1", "");
				SwapText("other2", "");
			}
		}

		function DoCalc() {
			var theStuff = "";
			var logofee = (document.frmStep2.logofee.value * 1);
			var flashfee = (document.frmStep2.flashfee.value * 1);
			var setup = (document.frmStep2.setup.value * 1);
			var monthly = (document.frmStep2.monthly.value * 1);
			var discamount = (document.frmStep2.discamount.value * 1);
			var total = Math.round(setup - discamount);
			if (discamount > 0) {

				theStuff = "<span class=\"pageCopy\"><font color=\"#883300\">Discount</font></span>";
				SwapText("disctxt", theStuff);

				theStuff = "<span class=\"pageCopy\"><font color=\"#883300\">-" + discamount + ".00</font></span>";
				SwapText("discamt", theStuff);
			}
			if (document.frmStep2.dologo[0].checked == true) {
				theStuff = "<span class=\"pageCopy\">Logo Fee</span>";
				SwapText("logotxt", theStuff);
				theStuff = "<span class=\"pageCopy\">" + logofee + ".00</span>";
				SwapText("logoamt", theStuff);
				total = Math.round(total + logofee);
			} else {
				SwapText("logotxt", "");
				SwapText("logoamt", "");
			}
			if (document.frmStep2.doflash[0].checked == true) {
				theStuff = "<span class=\"pageCopy\">Flash Fee</span>";
				SwapText("flashtxt", theStuff);
				theStuff = "<span class=\"pageCopy\">" + flashfee + ".00</span>";
				SwapText("flashamt", theStuff);
				total = Math.round(total + flashfee);
			} else {
				SwapText("flashtxt", "");
				SwapText("flashamt", "");
			}
			theStuff = "<span class=\"pageCopy\"><b>Total*</b></span>";
			SwapText("totaltxt", theStuff);
			theStuff = "<span class=\"pageCopy\"><b>" + total + ".00</b></span>";
			SwapText("totalamt", theStuff);
			document.frmStep2.total.value = total;
		}

		function DoDomain(tmp) {
			ClearDomain();
			var theWord = "";
			var theStuff = "";
			switch (tmp) {
				case "1":
					ShowDomain("dom", "*Domain", "domainname");
					ShowDomain("host", "Registrar", "domainhost");
					ShowDomain("id", "Login ID", "logid");
					ShowDomain("pw", "Password", "logpw");
					break;
				case "2":
					ShowDomain("dom", "*Domain", "domainname");
					break;
				case "3":
					break;
				case "0":
			}
			ShowExplain(tmp);
		}

		function ShowExplain(tmp) {
			var theStuff = "<span class=\"pageCopy\">";
			switch (tmp) {
				case "1":
					theStuff += "*Please enter your domain name above. Don't feel obliged to use the other fields unless you happen to know that information.";
					break;
				case "2":
					theStuff += "*We'll tell you whether the domain you enter here is available, and help you register it if it is.";
					break;
				case "3":
					theStuff += "We can get you started just fine without your domain. We'll discuss it with you later.";
			}
			theStuff += "</span>";
			SwapText("explain", theStuff);
		}

		function ShowDomain(theDiv, theWord, theField) {
			var theStuff = "<span class=\"formCopy\">" + theWord + ":&nbsp;</span>";
			SwapText(theDiv + "txt", theStuff);
			theStuff = "<input type=\"text\" name=\"" + theField + "\" class=\"formBox3\" maxlength=\"50\" value=\"" + document.frmStep2["x-" + theField].value + "\">";
			SwapText(theDiv + "fld", theStuff);
		}

		function ClearDomain() {
			var fieldArray = new Array("dom","host","id","pw");
			for (i = 0; i < fieldArray.length; i++) {
				SwapText(fieldArray[i] + "txt", "");
				SwapText(fieldArray[i] + "fld", "");
			}
		}

		/* ----------------------------- CONTROL PANELS ---------------------------- */

		function GetAcctC(type, id) {
			GetItem("../modules/moCPAccount.php?type=" + type + "&id=" + id + "&r=" + Math.random(), "acct", "");
		}

		function EditAcctC(type, id) {
			GetItem("../modules/moCPAccountForm.php?type=" + type + "&id=" + id + "&r=" + Math.random(), "acct", "");
		}

		function WriteAcctC(type) {
			if (CheckNull('frmAcct','fname','Please enter your First Name.')) {
				return false;
			}
			if (CheckNull('frmAcct','lname','Please enter your Last Name.')) {
				return false;
			}

			if (type !== "agency") {
				if (CheckNull('frmAcct','sitename','Please enter the Site Name.')) {
					return false;
				}
			}

			if (CheckNull('frmAcct','company','Please enter your Company Name.')) {
				return false;
			}
			if (CheckNull('frmAcct','phone','Please enter your Phone number.')) {
				return false;
			}
			if (CheckNull('frmAcct','email','Please enter your Email address.')) {
				return false;
			}
			if (CheckEmail('frmAcct','email','That Email address doesn\'t look valid.')) {
				return false;
			}
			if (CheckNull('frmAcct','addr','Please enter your Address.')) {
				return false;
			}
			if (CheckNull('frmAcct','city','Please enter your City.')) {
				return false;
			}
			if (CheckNull('frmAcct','state','Please select your State.')) {
				return false;
			}
			if (CheckNull('frmAcct','zip','Please enter your Zip code.')) {
				return false;
			}
			PostItem("../modules/moCPAccount.php", "frmAcct", "acct", "");
		}

		function GetCardC(type, id) {
			GetItem("../modules/moCPCard.php?type=" + type + "&id=" + id + "&r=" + Math.random(), "card", "");
		}

		function EditCardC(type, id) {
			GetItem("../modules/moCPCardForm.php?type=" + type + "&id=" + id + "&r=" + Math.random(), "card", "");
		}

		function WriteCardC() {
			if (CheckNull('frmCard','ccnum','Please enter the Credit Card Number.')) {
				return false;
			}
			if (document.frmCard.ccmonth.value == "0") {
				alert("Please select the card's Expiration Month.");
				return false;
			}
			if (document.frmCard.ccyear.value == "0") {
				alert("Please select the card's Expiration Year.");
				return false;
			}
			PostItem("../modules/moCPCard.php", "frmCard", "card", "");
		}

		function GetStats(type, id) {
			GetItem("../modules/moStats.php?type=" + type + "&id=" + id + "&r=" + Math.random(), "stats", "");

		}

		function KillStats() {
			SwapText("stats", "");
		}


		/* ------------------------------ LANDING PAGES ---------------------------- */

		function GetAliasForm(id) {
			GetItem("../modules/moAliasForm.php?id=" + id + "&r=" + Math.random(), "contact", "");


		}

		function WriteAliasForm(id) {
			if (CheckNull('frmContact','gname','Please enter your Name.')) {
				return false;
			}
			if (CheckNull('frmContact','email','Please enter your Email address.')) {
				return false;
			}
			if (CheckEmail('frmContact','email','That email doesn\'t look valid.')) {
				return false;
			}
			var toDo = "GetAliasForm('" + id + "')";
			PostItem("../modules/moAliasForm.php", "frmContact", "contact");
			setTimeout(toDo, 7000);
		}

		/* ----------------------------- SCRIPT SPECIFIC --------------------------- */

		function GetDesignPics(id) {
			GetItem("../modules/moDesignPics.php?id=" + id + "&r=" + Math.random(), "uploads", "");
		}

		function GetDesignPics2(id) {
			GetItem("../modules/moDesignPicsReview.php?id=" + id + "&r=" + Math.random(), "uploads", "");
		}

		function KillDesignPic(id, pic) {
			if (confirm("This will remove the image.")) {
				GetItem("../modules/moDesignPicsReview.php?func=del&id=" + id + "&pic=" + pic + "&r=" + Math.random(), "uploads", "");
			}
		}

	-->
