if (ctrl_value == "") { ValidatorSucceeded (validator); return true; } 
function CompareValidatorEvaluateIsValid (validator){	var ControlToCompare = validator.getAttribute ("controltocompare");	var ValueToCompare = validator.getAttribute ("valuetocompare");	var Operator = validator.getAttribute ("operator").toLowerCase();	var ControlToValidate = validator.getAttribute ("controltovalidate");	var DataType = validator.getAttribute ("datatype");	var ctrl_value = ValidatorTrim (ValidatorGetValue (ControlToValidate));	var compare = (ControlToCompare != null && ControlToCompare != "") ? ValidatorTrim (ValidatorGetValue (ControlToCompare)) : ValueToCompare;	var left = Convert (ctrl_value, DataType, validator); 	if (left == null) {		ValidatorFailed (validator);		return false;	}      	var right = compare != null ? Convert (compare, DataType, validator) : null;	if (right == null) {		ValidatorSucceeded (validator);		 return true;	}	var result = false;   	if (Operator == "equal") {		result = (left == right);	}	else if (Operator == "notequal") {		result = (left != right);	}	else if (Operator == "lessthan") {		result = (left < right);	}	else if (Operator == "lessthanequal") {		result = (left <= right);	}	else if (Operator == "greaterthan") {		result = (left > right);	}	else if (Operator == "greaterthanequal") {		result = (left >= right);	}	if (result == false) {		ValidatorFailed (validator);		return false;	}	else {		ValidatorSucceeded (validator);		return true;	}}
7338	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7338/b5ab83977c87c82c3293ac67f6449ed958e4d00c/WebUIValidation_2.0.js/clean/mcs/class/System.Web/resources/WebUIValidation_2.0.js