﻿// JScript File
function ValidationCheckNumber(source, args)
{
	var val = parseInt(args.Value, 10);
	if (isNaN(val))
	{
		args.IsValid = false;
	}
	else
	{
		args.IsValid = true;// ((val % 2) == 0);
	}
}

function ValidationCheckPassword(source, args)
{
    for ( i=0; i < document.forms[0].elements.length; i++ )
    {
        if (document.forms[0].elements[i].id.match("txtPassword") == "txtPassword" )
        {
            if ( document.forms[0].elements[i].value == args.Value )
            {
                args.IsValid = true;
            }
            else
            {
                args.IsValid = false;
            }
            
        }   
    }
    
    
   
//	if (document.getElementById('txtPassword').Value == "112")
//	{
//    	args.IsValid = false;
//	}
//	else
//	{
//		args.IsValid = true;// ((val % 2) == 0);
//	}
}
