	<!--

		/* --------------------------- 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 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, "");
		}

		/* ---------------------------- STORE CATEG ADMIN -------------------------- */

		function GetCategNav() {
			GetItem("../modules/moStoreCategNav.php?r=" + Math.random(), "categnav", "");
		}

		function GetCategViewer(tmp) {
			GetItem("../modules/moStoreCategViewer.php?id=" + tmp + "&r=" + Math.random(), "categbox", "");
		}

		function GetCategNew() {
			GetItem("../modules/moStoreCategNew.php?r=" + Math.random(), "categbox", "");
		}

		function WriteNewCateg() {
			if (CheckNull('frmCateg','cat1name','Enter the Category Name first.')) {
				return false;
			}
			PostItem("../modules/moStoreCategNav.php", "frmCateg", "categnav");
			var theStuff = "<span class=\"pageCopy\">The new category has been added.</span>";
			SwapText("categbox", theStuff);
		}

		function CancelNewCateg1() {
			var theStuff = "<span class=\"pageCopy\">Use the controls at right to add or edit your categories.</span>";
			SwapText("categbox", theStuff);
		}

		function GetCategEditor(type, id, sid) {
			var inDiv = "in" + type + "-" + sid;
			var outDiv = "out" + type + "-" + sid;
			GetItem("../modules/moStoreCategEditor.php?type=" + type + "&id=" + id + "&sid=" + sid + "&r=" + Math.random(), inDiv, "");
			showMenu(outDiv);
		}

		function GetSubcatForm(type, id, parentid) {
			var inDiv = "insub" + type + "-" + parentid;
			var outDiv = "outsub" + type + "-" + parentid;
			GetItem("../modules/moStoreCategSubcat.php?type=" + type + "&id=" + id + "&pid=" + parentid + "&r=" + Math.random(), inDiv, "");
			showMenu(outDiv);
		}

		function SaveCateg(type) {
			var theField = "cat" + type + "name";
			if (CheckNull('frmCateg',theField,'Please enter the Category Name.')) {
				return false;
			}
			if (!Math.round(document.frmCateg.sortno.value)) {
				document.frmCateg.sortno.value = "0";
			} else {
				document.frmCateg.sortno.value = Math.round(document.frmCateg.sortno.value);
			}
			PostItem("../modules/moStoreCategViewer.php", "frmCateg", "categbox");
			setTimeout("GetCategNav()", 2000);
		}

		function CancelSub(type, parentid) {
			var inDiv = "insub" + type + "-" + parentid;
			var outDiv = "outsub" + type + "-" + parentid;
			SwapText(inDiv, "");
			hideMenu(inDiv);
			hideMenu(outDiv);
		}

		function WriteNewSub(type) {
			var theField = "cat" + type + "name";
			if (CheckNull('frmCateg',theField,'Please enter the Subcategory Name.')) {
				return false;
			}
			if (!Math.round(document.frmCateg.sortno.value)) {
				document.frmCateg.sortno.value = "0";
			} else {
				document.frmCateg.sortno.value = Math.round(document.frmCateg.sortno.value);
			}
			PostItem("../modules/moStoreCategViewer.php", "frmCateg", "categbox");
		}

		function CancelSave(type, id) {
			var inDiv = "in" + type + "-" + id;
			var outDiv = "out" + type + "-" + id;
			SwapText(inDiv, "");
			hideMenu(inDiv);
			hideMenu(outDiv);
		}


		function CategsDone() {
			document.location.href="../vasdf/admMenu.php";
		}


		/* ------------------------------ PRODUCT LISTS ---------------------------- */

		function ShowList(tmp, id) {
			GetItem("../modules/moListShow.php?list=" + tmp + "&id=" + id + "&r=" + Math.random(), "box" + tmp, "");
		}

		function EditList(tmp, id) {
			GetItem("../modules/moListProduct.php?list=" + tmp + "&id=" + id + "&r=" + Math.random(), "box" + tmp, "");
		}

		function SaveList(tmp) {
			PostItem("../modules/moListShow.php", "frmList" + tmp, "box" + tmp);
		}

		function GetList(tmp) {
			GetItem("../modules/moListEdit.php?listid=" + tmp + "&r=" + Math.random(), "listbox", "");
		}

		function WriteList() {
			var item = "";
			var sortno = 0;
			var numString = document.frmList.numstring.value;
			if (numString.indexOf(",") > -1) {
				numArray = numString.split(",");
				for (i = 0; i < numArray.length; i++) {
					item = document.frmList["item-" + numArray[i]].value;
					item = item.replace(/ /g, "");
					if (item == "") {
						alert("Please don't replace an existing item with nothing.");
						document.frmList["item-" + numArray[i]].focus();
						return false;
					}
					sortno = document.frmList["sort-" + numArray[i]].value;
					sortno = sortno.replace(/ /g, "");
					if ((sortno == "") || (isNaN(sortno)) || (sortno.indexOf(".") > -1)) {
						document.frmList["sort-" + numArray[i]].value = "0";
					}
				}
			} else {
				if (numString !== "") {
					item = document.frmList["item-" + numString].value;
					item = item.replace(/ /g, "");
					if (item == "") {
						alert("Please don't replace an existing item with nothing.");
						document.frmList["item-" + numString].focus();
						return false;
					}
					sortno = document.frmList["sort-" + numString].value;
					sortno = sortno.replace(/ /g, "");
					if ((sortno == "") || (isNaN(sortno)) || (sortno.indexOf(".") > -1)) {
						document.frmList["sort-" + numString].value = "0";
					}
				}
			}
			var showItem = document.frmList.newitem.value;
			var theItem = document.frmList.newitem.value;
			theItem = theItem.replace(/ /g, "");
			if (theItem !== "") {
				var msg = "This will add the item \"" + showItem + "\" and save all other changes.";
			} else {
				var msg = "This will record any changes you just made.";
			}
		//	if (confirm(msg)) {
				PostItem("../modules/moListEdit.php", "frmList", "listbox");
		//	}
		}

		function KillItem(listid, id) {
			GetItem("../modules/moListEdit.php?listid=" + listid + "&del=" + id + "&r=" + Math.random(), "listbox", "");
		}

		function ClearList() {
			SwapText("listbox", "");
		}


		/* ----------------------------- SHOPPING STUFF ---------------------------- */

		function FixPic(tmp, w, h) {
			var theStuff = "<img src=\"../uploads/" + tmp + "\" width=\"310\" class=\"thumbBox\" onClick=\"DoBox('../uploads/" + tmp + "','" + w + "','" + h + "','20','250');\">";
			SwapText("picBox", theStuff);
		}

		function BuyCheck() {
			var optString = "size,color,style";
			optArray = optString.split(",");
			for (i = 0; i < optArray.length; i++) {
				if (document.frmBuy["use" + optArray[i]].value == "1") {
					if (document.frmBuy[optArray[i]].value == "") {
						alert("Please select a " + optArray[i] + ".");
						document.frmBuy[optArray[i]].focus();
						return false;
					}
				}
			}
			var num = document.frmBuy.quantity.value;
			num = num.replace(/ /g, "");
			if ((isNaN(num)) || (num.indexOf(".") > -1) || (num < 1)) {
				alert("Please enter a quantity of one or more.");
				document.frmBuy.quantity.focus();
				return false;
			}
		}

		function GetTax() {
			var taxString = document.frmCustomer.taxstring.value;
			var tax = 0;
			if (taxString.indexOf(",") > -1) {
				taxArray = taxString.split(",");
				for (i = 0; i < taxArray.length; i++) {
					shortArray = taxArray[i].split("::");
					if (shortArray[1] == document.frmCustomer.state.value) {
						tax = (tax + (shortArray[2] * shortArray[0]));
					}
				}
			} else {
				shortArray = taxString.split("::");
				if (shortArray[1] == document.frmCustomer.state.value) {
					tax = (tax + (shortArray[2] * shortArray[0]));
				}
			}
			var ship = (document.frmCustomer.shipping.value * 1);
			var total = ((tax * 1) + (ship * 1) + (document.frmCustomer.subtotal.value * 1) * 1);

			document.frmCustomer.x_amount.value = FixNumber(total);
			document.frmCustomer.tax.value = FixNumber(tax);

			var theStuff = "<span class=\"pageCopy\">$" + FixNumber(tax) + "</span>";
			SwapText("taxbox", theStuff);
			
			theStuff = "<span class=\"pageCopy\">$" + FixNumber(total) + "</span>";
			SwapText("total", theStuff);
		}

		function FixNumber(tmp) {
			tmp += "";
			if (tmp.indexOf(".") > -1) {
				numArray = tmp.split(".");
				if (numArray[1].length !== 2) {
					if (numArray[1].length > 2) {
						numArray[1] = numArray[1].substr(0, 2);
					} else if (numArray[1].length == 1) {
						numArray[1] += "0";
					}
				}
				tmp = numArray[0] + "." + numArray[1];
			} else {
				tmp += ".00";
			}
			return tmp;
		}

		function CheckOrder() {

			if (CheckNull('frmCustomer','fname','Please enter your First Name.')) {
				return false;
			}
			if (CheckNull('frmCustomer','lname','Please enter your Last Name.')) {
				return false;
			}
			if (CheckNull('frmCustomer','email','Please enter your Email.')) {
				return false;
			}
			if (CheckEmail('frmCustomer','email','That Email doesn\'t look valid.')) {
				return false;
			}
			if (CheckNull('frmCustomer','addr1','Please enter your Address.')) {
				return false;
			}
			if (CheckNull('frmCustomer','city','Please enter your City.')) {
				return false;
			}
			if (CheckNull('frmCustomer','state','Please select your State.')) {
				return false;
			}
			if (CheckNull('frmCustomer','zip','Please enter your Zip code.')) {
				return false;
			}

			var inv = document.frmCustomer.custid.value + "-";
			inv += document.frmCustomer.cookieid.value + "-";
			inv += document.frmCustomer.shipping.value + "-";
			inv += document.frmCustomer.tax.value;

			document.frmCustomer.x_invoice_num.value = inv;

		//	PostItem("../modules/moStoreCustomerWrite.php", "frmCustomer", "trashcan");

			document.frmCustomer.submit();


		}

		/* ----------------------------- MAIL LIST STUFF --------------------------- */


		function MailerTest() {
			if (CheckNull('frmMail','mailsubject','Please enter the message\'s Subject.')) {
				return false;
			}
			if (CheckNull('frmMail','mailmessage','Please enter your Message first.')) {
				return false;
			}
			PostItem("../modules/moMailerTest.php", "frmMail", "testIn");
			showMenu("testIn");
			setTimeout("hideMenu('testIn')", 4000);
			document.frmMail.tested.value = "1";
		}

		function MailerSend() {
			if (document.frmMail.tested.value == "0") {
				alert("You must test this email prior to sending it.");
				return false;
			}
			if (CheckNull('frmMail','mailsubject','Please enter the message\'s Subject.')) {
				return false;
			}
			if (CheckNull('frmMail','mailmessage','Please enter your Message first.')) {
				return false;
			}
		}

		function GetSignupForm() {
			GetItem("../modules/moSignup.php?r=" + Math.random(), "signup", "");

		}

		function WriteSignupForm() {
			var fname = document.frmSignup.fname.value;
			var lname = document.frmSignup.lname.value;
			fname = fname.replace(/ /g, "");
			lname = lname.replace(/ /g, "");
			fname = fname.toLowerCase();
			lname = lname.toLowerCase();
			if (document.frmSignup.fname.value == "first") {
				document.frmSignup.fname.value = "";
			}
			if (document.frmSignup.lname.value == "last") {
				document.frmSignup.lname.value = "";
			}
			if (CheckNull('frmSignup','fname','Please enter your first name.')) {
				return false;
			}
			if (CheckNull('frmSignup','lname','Please enter your last name.')) {
				return false;
			}
			if (CheckEmail('frmSignup','email','That email address doesn\'t look valid')) {
				return false;
			}
			PostItem("../modules/moSignupWrite.php", "frmSignup", "signup");
			setTimeout("GetSignupForm()", 4000);
		}


		/* ------------------------------ CONTACT FORMS ---------------------------- */

		function GetContact(pagecode) {
			GetItem("../modules/moContactForm.php?pagecode=" + pagecode + "&r=" + Math.random(), "contactbox", "");
		}

		function WriteContact(pagecode) {
			if (CheckNull('frmContact','fname','Please enter your First Name.')) {
				return false;
			}
			if (CheckNull('frmContact','lname','Please enter your Last 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;
				}
			}
			if (CheckNull('frmContact','msg','Please enter your Message.')) {
				return false;
			}
			var prePost = "GetContact(\"" + pagecode + "\")";
			PostItem("../modules/moContactWrite.php", "frmContact", "contactbox");
			setTimeout(prePost, 6000);
		}

		function GetMessage(tmp) {
			var theWhere = "msg" + tmp;
			GetItem("../modules/moContactView.php?id=" + tmp + "&r=" + Math.random(), theWhere, "");
		}

		function KillMessage(tmp) {
			var theWhere = "msg" + tmp;
			SwapText(theWhere, "");
			hideMenu(theWhere);
		}

		/* -------------------------- ADD/EDIT PRODUCT FORM ------------------------ */

		function MakeBox(box) {
			var parent = document.frmProduct["categ" + (box -1)].value;
			var where = "cat" + box + "box";
			GetItem("../modules/moStoreCategBox.php?box=" + box + "&parent=" + parent + "&r=" + Math.random(), where, "");
			if (box == "2") {
				var theStuff = "<span class=\"formBox\">N/A</span>";
				SwapText("cat3box", theStuff);
			}
		}


		/* ----------------------------- SCRIPT SPECIFIC --------------------------- */

		function CheckSearch() {
			if (CheckNull('frmSearch','query','Please enter one or more search terms first.')) {
				return false;
			}
		}

		function NoCookie() {
			alert("Cookies must be enabled to use this feature.");
		}

		function ShowTips(tmp) {
			showMenu(tmp);
		}

		function KillTips(tmp) {
			hideMenu(tmp);
		}

	-->
