﻿

function showCalendarInGrid(calenderID,txtName) {

    var div=document.getElementById('divId');
    var txtBoxObject ;  
    var getPrefix = calenderID.split('_');
    var datePrefix = '';
    var txtBox='';
   
    for(var prefix=0; prefix<getPrefix.length - 1; prefix++) {
    	  datePrefix = datePrefix + getPrefix[prefix] + '_';
    }
    
    txtBox = datePrefix + txtName;
   
    if (document.getElementById(txtBox))  {
    
         txtBoxObject = document.getElementById(txtBox); 
         if(self.gfPop)gfPop.fPopCalendar(txtBoxObject); 
         return false;
         
    }
    
}

function ShowCalendar(obj) {


            var dateTextBox = "ctl00_Content_" + obj.id;
            var txtBoxObject = document.getElementById(dateTextBox); 

            gfPop.fPopCalendar(txtBoxObject);
            return false;
       
}


