﻿// JScript File
function cbAgree_ValidateFunc(oSrc, args)
{
    args.IsValid = false;
    // document.all['cbAgree'].checked;
}
function validateInputField(objName, objValue, strError)
{
    var charpos = objValue.search("[^a-zA-Z0-9\)\(\^\?\.\$\[\]#&':-_]"); 
	if (objValue.length > 0 && charpos >= 0)
	{	
		strError += "The input value for " + objName + " contains some invalid characters.\nOnly alphanumeric and the following characters: $, #, ^, ?, &, ', :, -, ], [ and _ are allowed.\nPlease try again.\n";
	}
	return strError;
}
