	<!--

		/* --------------------------- 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 CheckTime(dname,fname) {
			msg = "Please enter a valid time in\n\'0:00 AM\' or \'0:00 PM\' format.";
			tmp = document[dname][fname].value;
			tmp = tmp.toUpperCase();
			if (!tmp.indexOf(":")) {
				alert(msg);
				document[dname][fname].focus();
				return true;
			}
			if (tmp.indexOf(" ")) {
				timeArray = tmp.split(" ");
				if (timeArray.length !== 2) {
					alert(msg);
					document[dname][fname].focus();
					return true;
				} else {
					dayPart = timeArray[1];
					if ((dayPart !== "AM") && (dayPart !== "PM")) {
						alert(msg);
						document[dname][fname].focus();
						return true;
					}
				}
			}
			numArray = timeArray[0].split(":");
			if (numArray.length !== 2) {
				alert(msg);
				document[dname][fname].focus();
				return true;
			} else {
				var hr = numArray[0];
				var mn = numArray[1];
				if ((hr.length !== 1) && (hr.length !== 2)) {
					alert(msg);
					document[dname][fname].focus();
					return true;
				}
				if ((mn.length !== 1) && (mn.length !== 2)) {
					alert(msg);
					document[dname][fname].focus();
					return true;
				}
				if (hr.substr(0, 1) == "0") {
					hr = hr.substr(1, 1);
				}
				if (mn.substr(0, 1) == "0") {
					mn = mn.substr(1, 1);
				}
				if ((isNaN(hr)) || (isNaN(mn))) {
					alert(msg);
					document[dname][fname].focus();
					return true;
				}
				if ((hr < 1) || (hr > 12) || (mn < 0) || (mn > 59)) {
					alert(msg);
					document[dname][fname].focus();
					return true;
				}
			}
		}

		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 CheckDate(dname,fname,msg) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var string1 = document[frmName][fldName].value;
			if (string1.indexOf("/")==-1) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
		        var dateArray = string1.split('/');
			if (dateArray.length !== 3) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			if ((isNaN(dateArray[0])) || (isNaN(dateArray[1])) || (isNaN(dateArray[2]))) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			var vMonth = dateArray[0];
			var vDay = dateArray[1];
			var vYear = dateArray[2];
			if ((vMonth > 12) || (vMonth < 1)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			if ((vDay < 1) || (vDay > 31)) {
				alert(alertText);
				document[frmName][fldName].focus();
				return true;
			}
			if (vMonth == 2) {
				var febMax = 28;
				var startYear = 1004;
				for (count = 0; count < 1000; count++) {
					startYear = startYear + 4;
					if (vYear == startYear) {
						febMax = 29;
						break;
					}
				}
				if (vDay > febMax) {
					alert(alertText);
					document[frmName][fldName].focus();
					return true;
				}
			}
			if ((vMonth == 4) || (vMonth == 6) || (vMonth == 9) || (vMonth == 11)) {
				if (vDay > 30) {
					alert(alertText);
					document[frmName][fldName].focus();
					return true;
				}
			}
			if ((vMonth == 1) || (vMonth == 3) || (vMonth == 5) || (vMonth == 7) || (vMonth == 8) || (vMonth == 10) || (vMonth == 12)) {
				if (vDay > 31) {
					alert(alertText);
					document[frmName][fldName].focus();
					return true;
				}
			}
			if ((vYear < 1000) || (vYear > 9999)) {
				alert(alertText);
				document[frmName][fldName].focus();
				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 CheckLength(dname,fname,msg,max) {
			var frmName = dname;
			var fldName = fname;
			var alertText = msg;
			var maxLen = max - 0;
			var string1 = document[frmName][fldName].value;
			if (string1.length > maxLen) {
				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, "");
		}

		/* ------------------------------- RIGHT MOUSE ----------------------------- */

		function clickIE4() {
			if (event.button == 2) {
				alert(message);
				return false;
			}
		}

		function clickNS4(e) {
			if (document.layers || document.getElementById && !document.all) {
				if (e.which == 2 || e.which == 3) {
					alert(message);
					return false;
				}
			}
		}

		if (document.layers) {
			document.captureEvents(Event.MOUSEDOWN);
			document.onmousedown = clickNS4;
		} else if (document.all && !document.getElementById) {
			document.onmousedown=clickIE4;
		}

		document.oncontextmenu = new Function("return false");


		/* ------------------------------- GALLERY TOY ----------------------------- */

		function GalleryStart() {
			SwapText("gallerythumbs", "");
			SwapText("gallerycontent", "");
			var theForm = document.frmTitles.id.value;
			theArray = theForm.split("-");
			var theID = theArray[0];
			var theType = theArray[1];
			if (theID > 0) {
				switch (theType) {
					case "0":
						GetItem("../modules/moGalleryFirstPic.php?id=" + theID + "&r=" + Math.random(), "gallerycontent", "");
						GetItem("../modules/moGalleryThumbs.php?id=" + theID + "&r=" + Math.random(), "gallerythumbs", "");
						break;
					case "1":
						GetItem("../modules/moGalleryVids.php?id=" + theID + "&r=" + Math.random(), "gallerycontent", "");
				}
			}
		}

		function GalleryGetPic(pic, picW, picH, maxW, maxH) {
			var popW = picW;
			var popH = picH;
			picW = (picW - 0);
			picH = (picH - 0);
			maxW = (maxW - 0);
			maxH = (maxH - 0);
			var ratio = (picH / picW);
			var orient = "width";
			if (picH > picW) {
				orient = "height";
			}
			switch (orient) {
				case "width":
					if (picW > maxW) {
						picW = maxW;
					}
					var theDim = picW;
					picH = Math.round(picW * ratio);
					if (picH > maxH) {
						picH = maxH;
						theDim = picH;
						orient = "height";
					}

					break;
				case "height":
					if (picH > maxH) {
						picH = maxH;
					}
					var theDim = picH;
			}

			if (orient == "height") {
				var capW = maxW;
			} else {
				var capW = picW;
			}

			var theStuff = "<table cellpadding=\"2\" cellspacing=\"2\"><tr><td class=\"galThumb\">";
			theStuff += "<img src=\"../uploads/" + pic + "\" " + orient + "=\"" + theDim + "\" onClick=\"DoBox('../products/prPop.php?pic=../uploads/" + pic + "', '" + popW + "', '" + popH + "', '30', '30');\" onMouseOver=\"this.className='miscHandOn';\" onMouseOut=\"this.className='';\">";
			theStuff += "</td></tr></table>";
			theStuff += "<table cellpadding=\"2\" cellspacing=\"2\"><tr><td><div id=\"caption\"></div></td></tr></table>";
			SwapText("gallerycontent", theStuff);
			GetItem("../modules/moGalleryCaption.php?pic=" + pic + "&r=" + Math.random(), "caption", "");
		}



		/* -------------------------------- NAVIGATION ----------------------------- */

		function DoNav(where, what) {
			var theWhat = "<img src=\"../graphics/nav-" + what + "-" + where + ".gif\">";
			SwapText("nav-" + where, theWhat);
		}

		function GetAbout(tmp) {
			GetItem("../modules/moAboutNav.php?where=" + tmp + "&r=" + Math.random(), "leftnav", "");
		}

		function GetProductNav(tmp, id) {
			GetItem("../modules/moProductNav.php?categid=" + tmp + "&r=" + Math.random(), "leftnav", "");
			GetProduct(id);
		}

		function GetRecentNav(num) {
			GetItem("../modules/moRecentNav.php?num=" + num + "&r=" + Math.random(), "leftnav", "");
		}

		function GetState(tmp) {
			GetItem("../modules/moProjectState.php?state=" + tmp + "&r=" + Math.random(), "titlethree", "");
			GetDateNav(tmp);
			GetStateNav(tmp, "", 1460);
		}

		function GetDateNav(tmp) {
			GetItem("../modules/moProjectDate.php?state=" + tmp + "&r=" + Math.random(), "datenav", "");
		}

		function GetStateNav(state, city, days) {
			SwapText("projectbox", "");
			GetItem("../modules/moProjectNav.php?state=" + state + "&city=" + city + "&days=" + days + "&r=" + Math.random(), "leftnav", "");
		}

		/* ------------------------------ CONTACT FORMS ---------------------------- */

		function GetContact(tmp) {
			GetItem("../modules/moContactForm.php?clientid=" + tmp + "&r=" + Math.random(), "contactbox", "");
		}

		function WriteContact() {
			if (document.frmContact.clientid.value == "0") {
				var proNoun = "we";
			} else {
				var proNoun = "I";
			}

			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 " + proNoun + " 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", "contactbox");
		}

		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);
		}


		/* ----------------------------- CATALOG REQUESTS -------------------------- */

		function GetRequest(tmp) {
			var theWhere = "req" + tmp;
			GetItem("../modules/moRequestView.php?id=" + tmp + "&r=" + Math.random(), theWhere, "");
		}

		function KillRequest(tmp) {
			var theWhere = "req" + tmp;
			SwapText(theWhere, "");
			hideMenu(theWhere);
		}


		/* ----------------------------- SCRIPT SPECIFIC --------------------------- */

		function ExpandProject(id) {
			GetItem("../modules/moRecentShow.php?id=" + id + "&r=" + Math.random(), "detail" + id, "");
			SwapStyles("detail" + id, "projectShow");
		}

		function CollapseProject(id) {
			SwapText("detail" + id, "");
			SwapStyles("detail" + id, "projectHide");
		}

		function ExpandProject_DIV(id) {
			SwapStyles("detail" + id, "projectShow");
		}

		function CollapseProject_DIV(id) {
			SwapStyles("detail" + id, "projectHide");
		}

		function GetProject(tmp) {
			GetItem("../modules/moProjectView.php?id=" + tmp + "&r=" + Math.random(), "projectbox", "");
		}

		function DoProductPic(tmp) {
			if (isNaN(tmp)) {
				var theType = "next";
			} else {
				var theType = "first";
			}
			GetItem("../modules/moProductPic.php?type=" + theType + "&id=" + tmp + "&r=" + Math.random(), "mainpic", "");
		}

		function GetProduct(tmp) {
			GetItem("../modules/moProductTitleTwo.php?id=" + tmp + "&r=" + Math.random(), "titletwo", "");
			GetItem("../modules/moProductTitleThree.php?id=" + tmp + "&r=" + Math.random(), "titlethree", "");
			DoProductPic(tmp);
			GetItem("../modules/moProductThumbs.php?id=" + tmp + "&r=" + Math.random(), "scroller", "");
			GetItem("../modules/moProductView.php?id=" + tmp + "&r=" + Math.random(), "productbox", "");
		}

		function ProductScroll(id, page) {
			GetItem("../modules/moProductThumbs.php?id=" + id + "&thispage=" + page + "&r=" + Math.random(), "scroller", "");
			DoProductPic(id);
		}

		function DoRequest() {
			if (document.frmRequest.fname.value == "first") {
				document.frmRequest.fname.value = "";
			}
			if (CheckNull('frmRequest','fname','Please enter your First Name.')) {
				return false;
			}
			if (document.frmRequest.lname.value == "last") {
				document.frmRequest.lname.value = "";
			}
			if (CheckNull('frmRequest','lname','Please enter your Last Name.')) {
				return false;
			}
			if (document.frmRequest.company.value == "company") {
				document.frmRequest.company.value = "";
			}
			if (CheckNull('frmRequest','company','Please enter your Company.')) {
				return false;
			}
			if (document.frmRequest.addr.value == "street") {
				document.frmRequest.addr.value = "";
			}
			if (CheckNull('frmRequest','addr','Please enter your Street Address.')) {
				return false;
			}
			if (document.frmRequest.city.value == "city") {
				document.frmRequest.city.value = "";
			}
			if (CheckNull('frmRequest','city','Please enter your City.')) {
				return false;
			}
			if (document.frmRequest.state.value == "state") {
				document.frmRequest.state.value = "";
			}
			if (CheckNull('frmRequest','state','Please enter your State.')) {
				return false;
			}
			if (document.frmRequest.zip.value == "zip") {
				document.frmRequest.zip.value = "";
			}
			if (CheckNull('frmRequest','zip','Please enter your Zip code.')) {
				return false;
			}
			if (document.frmRequest.email.value == "email") {
				document.frmRequest.email.value = "";
			}
			var email = document.frmRequest.email.value;
			email = email.replace(/ /g, "");
			if (email !== "") {
				if (CheckEmail('frmRequest','email','That Email doesn\'t look valid.')) {
					return false;
				}
			}
			if (document.frmRequest.suite.value == "suite") {
				document.frmRequest.suite.value = "";
			}
			if (document.frmRequest.phone.value == "phone") {
				document.frmRequest.phone.value = "";
			}
			PostItem("../modules/moProductRequest.php", "frmRequest", "requestform");
		}

		function DoContact() {
			if (document.frmContact.fname.value == "first") {
				document.frmContact.fname.value = "";
			}
			if (CheckNull('frmContact','fname','Please enter your First Name.')) {
				return false;
			}
			if (document.frmContact.lname.value == "last") {
				document.frmContact.lname.value = "";
			}
			if (CheckNull('frmContact','lname','Please enter your Last Name.')) {
				return false;
			}
			if (document.frmContact.company.value == "company") {
				document.frmContact.company.value = "";
			}
			if (CheckNull('frmContact','company','Please enter your Company.')) {
				return false;
			}
			if (document.frmContact.message.value == "comments") {
				document.frmContact.message.value = "";
			}

			if (CheckNull('frmContact','message','Please enter your Comments.')) {
				return false;
			}
			if (document.frmContact.email.value == "email") {
				document.frmContact.email.value = "";
			}
			var email = document.frmContact.email.value;
			email = email.replace(/ /g, "");
			if (email !== "") {
				if (CheckEmail('frmContact','email','That Email doesn\'t look valid.')) {
					return false;
				}
			}
			if (document.frmContact.phone.value == "phone") {
				document.frmContact.phone.value = "";
			}
			if ((document.frmContact.phone.value == "") && (email == "")) {
				alert("Please provide either a phone number or an\nemail address so we can respond to you.");
				return false;

			}
			PostItem("../modules/moContactWrite.php", "frmContact", "contactform");
		}

		function ShowTips() {
			showMenu("tips");
		}

		function KillTips() {
			hideMenu("tips");
			document.location.href = "#top";
		}

	-->

