function ValidateRequirementField(source,clientside_arguments){var id=$(source).attr("ControlValidateName"),controlToValidate=document.getElementById(id);clientside_arguments.IsValid=true;if(controlToValidate!=null)if(controlToValidate.value=="")clientside_arguments.IsValid=false}function ValidateEmailValue(source,clientside_arguments){var id=$(source).attr("ControlValidateName"),control=document.getElementById(id);clientside_arguments.IsValid=true;if(control!=null)if(control.value=="")clientside_arguments.IsValid=true;else{var pattern=new RegExp($(source).attr("ValidationExpression"));clientside_arguments.IsValid=pattern.test(control.value)}}function ReplaceAll(strText,oldValue,newValue){var strReplaceAll=strText,intIndexOfMatch=strReplaceAll.indexOf(oldValue);while(intIndexOfMatch!=-1){strReplaceAll=strReplaceAll.replace(oldValue,newValue);intIndexOfMatch=strReplaceAll.indexOf(oldValue)}return strReplaceAll};
