// JavaScript Document
function validate(type){

var ErrorMessage = "Please fill in the following fields:" +"\n";
var SubmitForm = "true";
var RadioChecked = false;
var str = "";


if (document.afc.f01_FacilityName.value == ""){
    ErrorMessage = ErrorMessage + "+ Facility Name" +"\n";
    SubmitForm = "false";
}


if (document.afc.f08_Comments.value == ""){
    ErrorMessage = ErrorMessage + "+ Comments" +"\n";
    SubmitForm = "false";
}


if (SubmitForm == "false"){
    alert(ErrorMessage);
    return false;
    }
else{
    return true;
    }
}