﻿// JScript File
function charCount(textbox, reportitem)
{
    

    // Count the number of characters in the box
    var text = eval(document.getElementById(textbox)).innerText;
    alert(text);
    count = text.length;
    
    // Subtract from total of 3200
    newCount = 3200 - count;
    
    // Rewrite the display
    eval(document.getElementById(reportitem)).innerHTML = "Characters: " + newCount + "/3200";
    
}

