function setDate(TextBoxStartD,TextBoxEndD,hdFromDate,hdToDate)
{
    var TextBoxStartD=document.getElementById(TextBoxStartD);
    var TextBoxEndD=document.getElementById(TextBoxEndD);
    var hdFromDate=document.getElementById(hdFromDate);
    var hdToDate=document.getElementById(hdToDate);
     hdFromDate.value=TextBoxStartD.value;
     hdToDate.value=TextBoxEndD.value;
    return true;
}


function setGuestFeedbackDate(TextBoxStartD,hdFromDate)
{
    var TextBoxStartD=document.getElementById(TextBoxStartD);
    var hdFromDate=document.getElementById(hdFromDate);
     hdFromDate.value=TextBoxStartD.value;
    return true;
}


function setMeetingDate(TextBoxStartD,TextBoxEndD,TextBoxArrival,TextBoxDeparture,hdFromDate,hdToDate,hdnArrival,hdnDeparture)
{
    var TextBoxStartD=document.getElementById(TextBoxStartD);
    var TextBoxEndD=document.getElementById(TextBoxEndD);
    var hdFromDate=document.getElementById(hdFromDate);
    var hdToDate=document.getElementById(hdToDate);
    
    var TextBoxArrival=document.getElementById(TextBoxArrival);
    var TextBoxDeparture=document.getElementById(TextBoxDeparture);
    var hdnArrival=document.getElementById(hdnArrival);
    var hdnDeparture=document.getElementById(hdnDeparture);
    
    
    hdFromDate.value=TextBoxStartD.value;
    hdToDate.value=TextBoxEndD.value;
     
    hdnArrival.value =  TextBoxArrival.value;
    hdnDeparture.value =  TextBoxDeparture.value;

    return true;
}


function setDateAfterLoad(TextBoxStartD,TextBoxEndD,hdFromDate,hdToDate)
{
    var TextBoxStartD=document.getElementById(TextBoxStartD);
    var TextBoxEndD=document.getElementById(TextBoxEndD);
    var hdFromDate=document.getElementById(hdFromDate);
    var hdToDate=document.getElementById(hdToDate);
     if(TextBoxStartD!=null)
      {
        TextBoxStartD.value=hdFromDate.value;
        TextBoxEndD.value=hdToDate.value;
      }
}

function setDateC(TextBoxStartD,TextBoxEndD,TextCurrentDate,hdFromDate,hdToDate,hdDate)
{
    var TextBoxStartD=document.getElementById(TextBoxStartD);
    var TextBoxEndD=document.getElementById(TextBoxEndD);
    var TextCurrentDate=document.getElementById(TextCurrentDate);
    var hdFromDate=document.getElementById(hdFromDate);
    var hdToDate=document.getElementById(hdToDate);
    var hdDate=document.getElementById(hdDate);
    
     hdFromDate.value=TextBoxStartD.value;
     hdToDate.value=TextBoxEndD.value;
     hdDate.value=TextCurrentDate.value;
    return true;
}
function setDateAfterLoadC(TextBoxStartD,TextBoxEndD,TextCurrentDate,hdFromDate,hdToDate,hdDate)
{
     var TextBoxStartD=document.getElementById(TextBoxStartD);
    var TextBoxEndD=document.getElementById(TextBoxEndD);
    var TextCurrentDate=document.getElementById(TextCurrentDate);
    var hdFromDate=document.getElementById(hdFromDate);
    var hdToDate=document.getElementById(hdToDate);
    var hdDate=document.getElementById(hdDate);
     if(TextBoxStartD!=null)
      {
        TextBoxStartD.value=hdFromDate.value;
        TextBoxEndD.value=hdToDate.value;
        TextCurrentDate.value=hdDate.value;
      }
}