function ValidateRequiredField (source, arguments)
{
    var textbox = document.getElementById(source.controltovalidate);
    if (arguments.Value == '')
    {
        textbox.style.background = "#ef3e42";
    }
    else
    {
        textbox.style.background = "#FFFFFF";
    }
}

function ValidateEmailAddress(source, arguments)
{
    var textbox = document.getElementById(source.controltovalidate);
    var re = new RegExp("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$", "g");
    if (!arguments.Value.match(re))
    {
        textbox.style.background = "#ef3e42";
    }
    else
    {
        textbox.style.background = "#FFFFFF";
    }

}