// this works in explorer - not in Netscape... changes colors in the menu table as mouse rolls over selection>
	function onColor(blah)
	{
		blah.style.backgroundColor='#50b6ff';
	}

	function offColor(blah)
	{
		blah.style.backgroundColor='#ffffff';
	}


      function processing(testForm) {
		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.realname.value == "") {
			alert("Please enter your name in the 'Your Name' field.");
			testForm.realname.focus();
			return false;
			}
         testForm.submitButton.value = 'Thank you.  Sending request...'
         }
	

	function addDate(testForm) {
		strToday1 = Date();
		strToday = strToday1.substr(0,3) + ", " + strToday1.substr(8,3) + strToday1.substr(4,4) + strToday1.substr(20,4) + " at " + strToday1.substr(11,5) + " hours";
		testForm.booking.value = strToday;
//		alert(strToday);
		strBad = "You forgot to tell us the following information:\n\n";
		if (testForm.realname.value == "") {
			strBad = strBad + "Please tell us your name .\n\n";
			testForm.realname.focus();
			}

		if (testForm.email.value == "") {
			strBad = strBad + "Please tell us your email address.\n\n";
			}

		$strComments  = testForm.comments.value;
		if ($strComments == "") {
			strBad = strBad + "You did not leave any comment to be sent to us.\n\n";
			} 
		if ($strComments.length > 400) {
			testForm.comments.value = $strComments.substr(0,399);
			}

		if (testForm.verify.value == "") {
			strBad = strBad + "Please fill in the Validation code from the image.\n\n";
			}


		if (strBad != "You forgot to tell us the following information:\n\n") {
			alert(strBad);
			return false;
			}

        	testForm.submit.value = 'Preparing request - please wait...';
		}


      function valiDate(testForm) {
		testForm.verify.value = testForm.verify.value.toUpperCase();
		if (testForm.verify.value != "P3F9E") {
			alert("Incorrect Validation Entry - please revalidate to proceed.");
			testForm.verify.focus();
			return false;
			}
		}
		
      function selectedSubject(subjectObject) {
		var lsSubject = subjectObject.selectedIndex;
		document.SVS.submit.value = "Submit " + subjectObject.options[lsSubject].value;
		if (lsSubject == 1) {
			window.location = "http://www.svsmanagement.com.au/contacta.php";
			}
		if (lsSubject == 2) {
			window.location = "http://www.svsmanagement.com.au/contactd.php";
			}
		
		}

      function selectedMailing(testForm) {
		if (testForm.Ismailing[0].checked) {
			testForm.maddress.value = testForm.saddress.value;
			testForm.msuburb.value = testForm.ssuburb.value;
			testForm.mstate.value = testForm.sstate.value;
			testForm.mpostcode.value = testForm.spostcode.value;
		} else if (testForm.Ismailing[1].checked) {
			testForm.maddress.value = "";
			testForm.msuburb.value = "";
			testForm.mstate.value = "";
			testForm.mpostcode.value = "";
		} 
		}
	
	      function selectedMailingC(testForm) {
			if (testForm.IsmailingC[0].checked) {
				testForm.cmaddress.value = testForm.csaddress.value;
				testForm.cmsuburb.value = testForm.cssuburb.value;
				testForm.cmstate.value = testForm.csstate.value;
				testForm.cmpostcode.value = testForm.cspostcode.value;
			} else if (testForm.IsmailingC[1].checked) {
				testForm.cmaddress.value = "";
				testForm.cmsuburb.value = "";
				testForm.cmstate.value = "";
				testForm.cmpostcode.value = "";
			} 
			}
	
