if (document.theForm.fenshu.value==""){
alert('请输入问题的悬赏分!');
document.theForm.fenshu.focus();
return false;
}
if (isNaN(document.theForm.fenshu.value)){
alert('请正确输入问题的悬赏分!');
document.theForm.fenshu.focus();
return false;
}
if ((document.theForm.fenshu.value.indexOf("-") == 0)||!(document.theForm.fenshu.value.indexOf(".") == -1)){
alert("分数不能为小数或负数");
document.theForm.fenshu.focus();
return false;
}
alert('请输入问题的悬赏分!');
document.theForm.fenshu.focus();
return false;
}
if (isNaN(document.theForm.fenshu.value)){
alert('请正确输入问题的悬赏分!');
document.theForm.fenshu.focus();
return false;
}
if ((document.theForm.fenshu.value.indexOf("-") == 0)||!(document.theForm.fenshu.value.indexOf(".") == -1)){
alert("分数不能为小数或负数");
document.theForm.fenshu.focus();
return false;
}