
function SetSearchText(id){
    var theSearchBox = document.getElementById(id);
    if (theSearchBox!=null && theSearchBox.value=='' )
    {
        theSearchBox.value='Search Travolution';
        theSearchBox.style.color ='#888888';
       
    }    
}

function ClearSearchText(id){
  
    var theSearchBox = document.getElementById(id);
    if((theSearchBox.value == '')||(theSearchBox.value == 'Search Travolution')){
         theSearchBox.value='';
         theSearchBox.style.color ='#000000';                 
    }
   
}

function ShowHideSearchOptions(){
    var theSearchResultsFilter = $(".optionselectionmore");
    var more = $(".more")
    var less = $(".less")
    if(theSearchResultsFilter.css("display") == "none"){
        theSearchResultsFilter.css("display","block");
        more.css("display","none");
        less.css("display","block");
    }
    else{
        theSearchResultsFilter.css("display","none");
        more.css("display","block");
        less.css("display","none");
    }
}

function ValidateInput(id){
    var theSearchBox = document.getElementById(id);
    if (theSearchBox!=null && ( theSearchBox.value=='' || theSearchBox.value == 'Search Travolution' ))
    {
        alert('Please enter a search term');   
        theSearchBox.focus();
        return false;           
    }          
}