/*
語法變換
*/
var addH=1; 
function addHeight() { 
  if (!document.getElementById('article')) return false; 
    var comment = document.getElementById('article'); 
    var nowH = parseInt(comment.style.height); 
    if (nowH < 1000) {     
        nowH+=5; 
        comment.style.height=nowH+"px"; 
        addH++; 
        if (addH > 25){  
            addH=1; 
        } else { 
        window.setTimeout("addHeight()","10"); 
        } 
    } 
} 
function minHeight() { 
  if (!document.getElementById('article')) return false; 
    var comment = document.getElementById('article'); 
    var nowH = parseInt(comment.style.height); 
    if (nowH > 50) { 
        nowH-=5; 
        comment.style.height=nowH+"px"; 
        addH++; 
        if (addH > 25){  
            addH=1; 
        } else { 
        window.setTimeout("minHeight()","10"); 
        } 
    } 
}

/* REPLY */
var addH=1; 
function addHeight_reply() { 
  if (!document.getElementById('article')) return false; 
    var comment = document.getElementById('article'); 
    var nowH = parseInt(comment.style.height); 
    if (nowH < 1000) {     
        nowH+=5; 
        comment.style.height=nowH+"px"; 
        addH++; 
        if (addH > 25){  
            addH=1; 
        } else { 
        window.setTimeout("addHeight_reply()","10"); 
        } 
    } 
} 
function minHeight_reply() { 
  if (!document.getElementById('article')) return false; 
    var comment = document.getElementById('article'); 
    var nowH = parseInt(comment.style.height); 
    if (nowH > 50) { 
        nowH-=5; 
        comment.style.height=nowH+"px"; 
        addH++; 
        if (addH > 25){  
            addH=1; 
        } else { 
        window.setTimeout("minHeight_reply()","10"); 
        } 
    } 
} 
