﻿// JScript File

function customvalidate()
{
if (Ektron.FormBlock.validate(document.getElementById('aspnetForm')))
{
   if ( (document.getElementById('aspnetForm').Email.value.length == 0) &&  (document.getElementById('aspnetForm').PhoneNumber.value.length == 0) )   
   {
    alert('Please enter Email Address or Phone Number');
    return false;
   }
   
   if ( (document.getElementById('aspnetForm').Email.value != document.getElementById('aspnetForm').EmailConfirmation.value) )   
   {
    alert('Email Address and Confirm Email must match');
    return false;
   }

   Ektron.FormBlock.setTargetAction("postback");
   Ektron.FormBlock.setState("__ekFormState", "in");
   document.getElementById('aspnetForm').submit();
}

}



