<!--
function showStatus(msg) {
		window.status = msg
		return true
	}
    function submit_page(form) {
        foundError = false;
        nameError = "";
        
        if(form.name.value == "") {
            nameError = "Name blank \n";
            foundError = true;
        }

        messageError = "";
        
        if(form.message.value == "") {
            messageError = "Message blank \n";
            foundError = true;
        }

        emailError = ""
				
        if(form.email.value == "") {
            emailError = "E-mail field blank \n";
            foundError = true;
        }

        if((emailError == "") && (isValidEmail(form.email) == false)) { // see function below
            emailError = "Email address invalid \n";
            foundError = true;
        }
        

        if(foundError == false) {
             return true;
        }
        else {
            errorMessage = nameError + emailError + messageError;
            alert (errorMessage)
            if (nameError != "") {
								form.name.focus()
                form.name.select()
            }
            else if (emailError != "") {
                form.email.focus()
                form.email.select()
            }   
            else if (messageError != "") {
                form.message.focus()
                form.message.select()
            }   
            return false;                       
        }   
    }

    function isValidEmail(theField) {
        if((getFront(theField.value,"@") != null) && (getEnd(theField.value,"@") != ""))
            return true;
        else
            return false;
    }

    function getFront(mainStr,searchStr){
        foundOffset = mainStr.indexOf(searchStr)
        if (foundOffset <= 0)
            return null
        else
            return mainStr.substring(0,foundOffset)
    }

    function getEnd(mainStr,searchStr) {
        foundOffset = mainStr.indexOf(searchStr)
        if (foundOffset <= 0)
            return ""
        else
            return mainStr.substring(foundOffset+searchStr.length,mainStr.length)
    }

    function clearTrailingSpace(theField) {
			newValue = theField.value;
			lastChar = newValue.charAt(newValue.length - 1);
			while (lastChar == " ") {;
				endingChar = (newValue.length) - 1;
				newValue = newValue.substring(0,endingChar);
				lastChar = newValue.charAt(newValue.length - 1);
			}
			theField.value = newValue;
			return true;
    }
// -->