
    function isComment(){
       
        if( document.xform.nickname.value.trim().length == 0){
        
            alert('請輸入姓名！');
            document.xform.nickname.focus();
            return false;
        
        }
        
        if( document.xform.code.value.trim().length == 0){
            
            alert('請輸入驗證碼！');
            document.xform.code.focus();
            return false;
            
        }
        
        if( document.xform.code.value != document.xform._code.value){
            
            alert('驗證碼錯誤，請重新輸入！');
            document.xform.code.focus();
            return false;
            
        }
        
        if( document.xform.content.value.trim().length == 0){
            
            alert('請輸入回應內容！');
            document.xform.content.focus();
            return false;
            
        }        
        
        if( document.xform.content.value.trim().length > 1000){
            
            alert('回應內容最為為 1000 字！');
            document.xform.content.focus();
            return false;
            
        }        
        
        if( ! confirm('您確定要送出此回應內容！')){
            
            return false;             
            
        }
        
    }

    function willComment(){
    
        document.getElementById('send-comment').focus();    
        
    }

