﻿// JScript 文件

   function check_back(){
        var title=document.getElementById("TextBox3");
        var content=document.getElementById("TextBox4");
        var username=document.getElementById("TextBox1");
//         if(title.value=="" || Alltrim(title.value)=="" ){
//            alert("this title can't null");
//            return false;
//        }
 if(username.value=="" || Alltrim(username.value)=="" ){
            alert("请输入用户名!");
            return false;
        }
        if(title.value=="" || Alltrim(title.value)=="" ){
            alert("请输入密码提示问题!");
            return false;
        }
        
        if(content.value=="" || Alltrim(content.value)=="" ){
            alert("请输入密码提示问题答案!");
            return false;
        }
    }
    function Alltrim(str) 
    { 
        while (str.charAt(0) == " " || str.charAt(0) == "　")
        {
            str = str.substr(1);
        }
        while (str.charAt(str.length - 1) == " " || str.charAt(0) == "　")
        {
            str = str.substr(0, str.length - 1);
        }
        return (str); 
    } 

