﻿function ShowNHide(control)
{
    try
    {
        var objStyle = document.getElementById(control).style;
        
        if (objStyle.display == 'none')
        {
            objStyle.display = 'block';
        }
        else
        {
            objStyle.display = 'none';
        }
    }
    catch (e)
    {
    }
}

function CountChars(contentID, countID)
{
    try
    {
        $get(countID).innerHTML = $get(contentID).value.length;
    }
    catch (e)
    {
    }
}

function window_error()
{
    return true;
}

window.onerror = window_error;
