String.prototype.Trim = function(){return this.replace(/^\s+|\s+$/g,"");}
function onAction2(obj)
{
    if(obj.value==''){obj.value='请填写标题';}
}
function onAction1(obj)
{
    if(obj.value=='请填写标题'){obj.value='';}
}
function checkForm(oFrm)
{
    if(isNaN(parseInt(oFrm['authKey'].value)) || parseInt(oFrm['authKey'].value) < 10000 || oFrm['authKey'].value.length<5)
    {
        alert('验证码不正确！');
        return false;
    }
    if('' == oFrm['c_content'].value.Trim())
    {
        alert('评论内容不能为空！');
        return false;
    }
    return true;
}
function checkShowForm(oFrm)
{
    if('' == oFrm['c_content'].value.Trim())
    {
        alert('评论内容不能为空！');
        return false;
    }
    return true;      
}