﻿ 
  var Dest1, beach2, heritage3;
   Dest1= document.getElementById ('TopDestinations1');
     beach2=document.getElementById ('BeachSpots2'); 
       heritage3=document.getElementById ('HeritageSpots3');
function DestinationGuide(a)
{

//alert(a);

if(a=="1")
{


           Dest1= document.getElementById ('TopDestinations1');
            
            //alert(p1.innerHTML);

            Dest1.style.display ="block";

            beach2.style.display ="none";

            heritage3.style.display ="none";

}

         if(a=="2")
            
            {   
            
            beach2=document.getElementById ('BeachSpots2');         

            beach2.style.display ="block";

            Dest1.style.display ="none";

            heritage3.style.display ="none";

}


                      if(a=="3")
                        {

                                   heritage3=document.getElementById ('HeritageSpots3');
                                   heritage3.style.display ="block";
                                beach2.style.display ="none";
                                    Dest1.style.display ="none";

                                    
                                    

                        }             
          

            

            }
            
            
            
//to show & hide day divisions according to the selected days in AddingMovie_Schedules.aspx
function HideReturndateDays(obj,day)
{
   var d="div";


  if(obj==true)
  {
    document.getElementById(d).style.display="block"; 
  }
  else
  {
    document.getElementById(d).style.display="none";
  }

}

//GetCode  for  disabling the date field




if(document.hradd.waived_401k.checked)
{
document.hradd.start_date_401k.disabled=true;
document.hradd.contribution_amount.disabled=true;
document.hradd.contribution_amount_per.disabled=true;
document.hradd.start_date_401k.value="";
document.hradd.contribution_amount.value="";
document.hradd.contribution_amount_per.value="";
}
else
{
document.hradd.start_date_401k.disabled=false;
document.hradd.contribution_amount.disabled=false;
document.hradd.contribution_amount_per.disabled=false;
document.hradd.start_date_401k.focus()

}
}
