function CheckReportKind(source,args)
{
var DeathDate = document.getElementById("<%=TxtDeathDate.ClientID%>");
var ReportKind = document.getElementById("<%=CmbReportKind.ClientID%>");
if (CheckEmpty(DeathDate.value))
{
if (ReportKind.selectedIndex == 0)
{
args.IsValid = false;
return;
}
}
else
{
if (ReportKind.selectedIndex != 0)
{
args.IsValid = false;
return;
}
}
args.IsValid = true;
}
{
var DeathDate = document.getElementById("<%=TxtDeathDate.ClientID%>");
var ReportKind = document.getElementById("<%=CmbReportKind.ClientID%>");
if (CheckEmpty(DeathDate.value))
{
if (ReportKind.selectedIndex == 0)
{
args.IsValid = false;
return;
}
}
else
{
if (ReportKind.selectedIndex != 0)
{
args.IsValid = false;
return;
}
}
args.IsValid = true;
}