tils.js,validator.js"}
<script>
var date_error = '{$lang.date_error}';
</script>
{literal}
<script language="JavaScript">
<!--
document.forms['theForm'].elements['vote_name'].focus();
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("vote_name",      vote_name_empty);
    if(document.getElementById('start_time').value > document.getElementById('end_time').value)
    {
      alert(date_error);
      return false;
    }
    return va