﻿function MaxLengthIs500(ctl, args)
{
    //alert(args.Value);
    if (args.Value.length <= 500)
    {
        args.IsValid = true;
    }
    else
    {
        args.IsValid = false;
    }
    
}

function MaxLengthIs250(ctl, args)
{
    //alert(args.Value);
    if (args.Value.length <= 250)
    {
        args.IsValid = true;
    }
    else
    {
        args.IsValid = false;
    }
    
}

function MaxLengthIs100(ctl, args)
{
    if (args.Value.length <= 100)
    {
        args.IsValid = true;
    }
    else
    {
        args.IsValid = false;
    }
    
}

function MaxLengthIs50(ctl, args)
{
    if (args.Value.length <= 50)
    {
        args.IsValid = true;
    }
    else
    {
        args.IsValid = false;
    }
    
}

function Link_ChangeColor()
{
    color = window.event.srcElement.style.color;
    window.event.srcElement.style.color='#D3232D';
    window.event.srcElement.style.fontWeight='bold';
    window.event.srcElement.style.cursor='pointer';
}
        
function Link_RestoreColor()
{
    color = window.event.srcElement.style.color;
    window.event.srcElement.style.color='#D3232D';
    window.event.srcElement.style.fontWeight='normal';
    window.event.srcElement.style.cursor='default';
}
        
function ChangeMouseCursor()
{
    window.event.srcElement.style.cursor='pointer';
}
        
function RestoreMouseCursor()
{
    window.event.srcElement.style.cursor='default';
} 
