	<!-- Hide script from old browsers
	scrWide = 600;
	scrLong = 450;

//    This function opens newUrl in a new navigable window
	function newSite(newUrl){

	if (screen) {
		scrWide = screen.width-180;
		scrLong = screen.height-180;
		}
	newWindow = window.open(newUrl, 'newWin', 'width='+scrWide+',height='+scrLong+',left=145,top=10,toolbar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,menubar=yes');
	newWindow.focus();
	}

//     This function allows close button in child windows - else BACK
	function closeWindow() {
		if (window.name == "newScr") {
			window.close()
		}
		else {
			history.back()
		}
	}

// this works in explorer - not in Netscape... changes colors in the menu table as mouse rolls over selection
	function onColor1(blah)
	{
		blah.style.backgroundColor='#b0b8c4';
	}

	function offColor1(blah)
	{
		blah.style.backgroundColor='#d0d8e4';
	}

// once entering validation field, check entry before releasing
      function valiDate(testForm) {
		lsVerify = testForm.verify.value.toUpperCase();
		testForm.verify.value = lsVerify;
		if (lsVerify != "P3F9E") {
			alert("Incorrect Validation Entry - please revalidate.");
			testForm.verify.focus();
			return false;
			}
		}
		
// Check form completion before sending data
      function processing(testForm) {
		if (testForm.realname.value == "") {
			alert("Please enter your name in the 'Name' field.");
			testForm.realname.focus();
			return false;
			}

		lnReason = testForm.reason.value.search(/listing/i);
		lnReason2 = testForm.reason.value.search(/add/i);
//		alert("lnReason2 is: " + lnReason2);
		if ((lnReason >= "9") && (testForm.company.value == "")) {
			alert("Please enter your company name when dealing with a listing\n or change the reason in the top box.");
			testForm.company.focus();
			return false;
			}

		if ((lnReason2 == "0") && (testForm.address.value == "")) {
			alert("Please enter your address when adding a listing\n or change the reason in the top box.");
			testForm.address.focus();
			return false;
			}

		if ((lnReason2 == "0") && (testForm.Phone.value == "") && (testForm.Mobile.value == "")) {
			alert("Please enter a phone number when adding a listing\n or change the reason in the top box.");
			testForm.Phone.focus();
			return false;
			}

		if (testForm.email.value == "") {
			alert("Please enter your e-mail address in the 'E-mail' field.");
			testForm.email.focus();
			return false;
			}
// the script below will do a preliminary check if the name is email
		else {
			var lcMail = testForm.email.value
			var lnAt = lcMail.split("@")
			if (lnAt.length < 2) {
				alert("Please enter a valid address for the 'E-mail' field.");
				testForm.email.focus();
				return false;
				}
			var lnAt1 = lnAt[1].split(".")
			if (lnAt1.length < 2) {
				alert("Please enter a valid address for the 'E-mail' field.");
				testForm.email.focus();
				return false;
				}
			}

		if ((testForm.Phone.value == "") && (testForm.Mobile.value == "")) {
			alert("Please enter either a phone or mobile contact number.");
			testForm.Phone.focus();
			return false;
			}
		if ((testForm.Phone.value != "") && (testForm.Phone.value.slice(0,1) != "0")) {
			alert("Please enter the area code with your phone number.");
			testForm.Phone.focus();
			return false;
			}
		if ((lnReason2 == "0") && (testForm.category.value == "") && (testForm.newcat.value == "For new category, type it here...")) {
			alert("Please enter at least 1 business\n category when adding a listing\n\n or change the reason in the top box.");
			testForm.category.focus();
			return false;
			}

		if (testForm.verify.value.toUpperCase() != "P3F9E") {
			alert("Incorrect Validation Entry - please revalidate.");
			testForm.verify.focus();
			return false;
			}

		if (testForm.newcat.value == "For new category, type it here...") {
			testForm.newcat.value = "";
			}
         testForm.submitButton.value = 'Thank you.  Sending information...'
         }
	

	function checkLen(formInput,lenInput) {
		var lnInput = formInput.value.length
		if (lnInput > lenInput) {
			alert("Length of input has exceeded the limit of " + lenInput + " characters.");
			formInput.value = formInput.value.slice(0,lenInput);
			formInput.focus();
	  		}
		}
	
	// End hiding script from old browsers -->
