﻿function chkTechMsg() {
    if (g("txt_cname").value == "") {
        alert("请输入留言标题！");
        g("txt_cname").focus(); 
        return false;
    }

    if (g("txt_cusername").value == "") {
        alert("请输入发布人！");
        g("txt_cusername").focus(); 
        return false;
    }

    if (g("txt_msg").value == "") {
        alert("请输入评论内容！");
        g("txt_msg").focus(); 
        return false;
    }

    return true;
}

function g(eId) {
    return document.getElementById(eId);
}


