function sffv(form, fieldList)
{
    var doAlert = false;

    try
    {
        for (i in fieldList)
        {
            if (form[fieldList[i]] && form[fieldList[i]].value.replace(/^\s*(\S*(\s+\S+)*)\s*$/, "$1") == "")
            {
                document.getElementById("l_"+fieldList[i]).style.color = "red";
                document.getElementById(fieldList[i]).onfocus = function() {document.getElementById("l_"+this.name).style.color = ""};
                doAlert = true;
            }
        }
    }
    catch (Exception)
    {
        //alert(Exception);
        return false;
    }

    if (doAlert)
    {
        alert("Please fill out all required fields.");
        return false;
    }
    return true;
}