document.write('');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' 发表评论:');
document.write(' | ');
document.write('
');
document.write(' ');
document.write(' ');
document.write('');
document.write(' ');
document.write(' |
');
document.write('
');
function IsEmail(str)
{
var nLen;
var nCnt1, nCnt2;
nCnt1=0;
nCnt2=0;
nLen = str.length;
for(var i=0; i' )
{
return false;
}
if(str.charAt(i)=='@')
{
nCnt1++;
}
if(str.charAt(i)=='.')
{
nCnt2++;
}
}
if( nCnt1=1 || nCnt2<1)
{
return false;
}
else
return false;
}
function ValidateInput()
{
if(document.commentform.username.value == '' && !document.commentform.chkhide.checked) {
alert("请填写笔名");
document.commentform.username.focus();
return false;
}
if(document.commentform.content.value == '') {
alert("请填写评论内容");
document.commentform.content.focus();
return false;
}
if(document.commentform.chkhide.checked) {
document.commentform.username.value="网友";
return false;
}
return false;
}