﻿// JScript File

function fnshowDialog(id,button,hdn)
{
    document.getElementById(hdn).value=id;
}
function fnCalcForSummary(GridId)
{
 var count=0;
 var Rows1=document.getElementById(GridId).rows;
  for(a=1; a<Rows1.length;a++)
    {
        if(Rows1[a].children[0].children[0].children[0].checked==true)
             {        
              
              count=count+1;
             }                

     }
    if(count>0)             
        {
        if(confirm('Are you sure You want to Delete Selected User?')==true)
        {
        return true;
        }
        else
         return false;
        }
    else
        {
            alert("Please check alteast one check box");
            return false;
        }
    return true;          
            
}
function fnCalcForSummaryJobAlt(GridId)
{
 var count=0;
 var Rows1=document.getElementById(GridId).rows;
  for(a=1; a<Rows1.length;a++)
    {
        if(Rows1[a].children[0].children[0].children[0].checked==true)
             {        
              
              count=count+1;
             }                

     }
    if(count>0)             
        {
        if(confirm('Are you sure You want to send Email to Selected Users?')==true)
        {
        return true;
        }
        else
         return false;
        }
    else
        {
            alert("Please check alteast one check box");
            return false;
        }
    return true;          
            
}