﻿

function doFocus(el, initialValue) {
    if (el.value == initialValue) {
        el.value = "";
    }
}
function doBlur(el, initialValue) {
    if (el.value == "") {
        el.value = initialValue;
    }
}
function MyoeTextValidateClient(sender, args) {
    var el = document.getElementById(sender.controltovalidate);
    var focusValue = sender.getAttribute('focusValue');
    if (args.Value != "" && args.Value != focusValue) {
        args.IsValid = true;
    } else {
        args.IsValid = false;
    }
}
function MyoeSelectValidateClient(sender, args) {
    var el = document.getElementById(sender.controltovalidate);
    if (args.Value != "" && args.Value != 0) {
        args.IsValid = true;
    } else {
        args.IsValid = false;
    }
}
