Validate input for form
              This JavaScript checks if field input is not empty.            
                            function validateForm() {
        var x = document.forms["valForm"]["fname"].value;
        if (x == null || x == "") {
        	document.forms["valForm"]["fname"].style.border = "1px solid red";
            alert("Name must be filled out");
            return false;
        }
    } 
            