function AdjustWidthSimpleSearch() 
{ 
    var obj = document.getElementById('SimpleSearchExtender_completionListElem'); 
    AdjustLocationIndicatorStyle(obj); 
}
    function ShowUKOffer()
    {
        var btnW = document.getElementById('btnWorld');
        var btnU = document.getElementById('btnUK');
        btnW.className = 'inact_btn_world';
        btnU.className = 'act_btn_uk';
        var divWorld = document.getElementById('divSpecialOfferWorldWide');
        divWorld.style.display = 'none';
        var divUK = document.getElementById('divSpecialOfferUK');
        divUK.style.display = 'block';      
    }
    function ShowWorldwideOffer()
    {
        var btnW = document.getElementById('btnWorld');
        var btnU = document.getElementById('btnUK');
        btnW.className = 'act_btn_world';
        btnU.className = 'inact_btn_uk';
        var divWorld = document.getElementById('divSpecialOfferWorldWide');
        divWorld.style.display = 'block';
        var divUK = document.getElementById('divSpecialOfferUK');
        divUK.style.display = 'none';
    }

function CheckText()
 {
    var sString = 'Please enter the search criteria';
    var minLength = 0;
    var objLoc = document.getElementById(sClientID + 'rbLoc'); 
    var objHotel = document.getElementById(sClientID + 'rbHotel'); 
    var objPC = document.getElementById(sClientID + 'rbPC');
    if(objLoc != null && objHotel != null && objPC != null) 
    { 
        var oError =  document.getElementById("divErrorMessage");
        if(oError != null)
        {
            if(objLoc.checked == true || objHotel.checked == true)
            {
                sString = 'You have not entered enough information to conduct a search. Please enter at least first 3 characters of a hotel location, hotel name.';
                minLength = 3
            }
            else if(objPC.checked == true)
            {
                sString = 'You have not entered enough information to conduct a search. Please enter postcode.';
                minLength = 1
            }
            var textBox = document.getElementById(sClientID + 'txtSS');
            if(textBox.value.length < minLength)
            {   
                oError.style.display = "block"; 
                oError.innerHTML = sString;
                return false;
            }
            oError.style.display = "none";
        }
    }
    return true;        
 }

function rbSourceClick()
{
	if(document.getElementById(sClientID + 'rbLoc').checked)
		$find('additionalParam').set_contextKey('destination');

	if(document.getElementById(sClientID + 'rbHotel').checked)
		$find('additionalParam').set_contextKey('hotelname');
		
	if(document.getElementById(sClientID + 'rbPC').checked)
		$find('additionalParam').set_contextKey('postcode');
}

