﻿function checkMaxLength(Control, Length)
{   
    // ASP.NET TextBoxes
    if (Control.value.length > Length)
        Control.value = Control.value.substring(0, Length)
}

function myAlert()
{
    alert(1);
}