function clearText(zoom_query){
    if (zoom_query.defaultValue==zoom_query.value)
        zoom_query.value = ""
}

function Disab(val) {
    //	frm=document.form.searchForm;
    btnGo=document.getElementById('bgo');
    if(val=="0"){
        btnGo.disabled="disable";
        btnGo.className="go-but-disb";
    }  else {
        btnGo.disabled="";
        btnGo.className="go-but";
    }
}
function IEfix(val1) {
    IEfixid=document.getElementById('displayoptions');
    if (val1=="1") {
        IEfixid.className="displayoptionsIE";
    } else {
        IEfixid.className="";
    }
}

function toggleSearch(frm) {
    if (document.getElementById('search_input').value == '') {
        return false;
    }

    var rad_val = '';
    for (var i=0; i < frm.length; i++) {
        rad_val += frm[i].name + ': ' + frm[i].checked + ': ' + frm[i].value + '\n';
        if (frm[i].name == 'zoom_cat[]' && frm[i].checked &&
            (frm[i].value == '5' || frm[i].value == '4')) {
            if (window.location != top.location) {
                top.location = '/contracts/London_Borough_of_Hounslow/search/' + escape(document.getElementById('search_input').value) +
                    (frm[i].value == '4' ? '/news' : '/leisure');
            }
            else {
                window.location = '/contracts/London_Borough_of_Hounslow/search/' + escape(document.getElementById('search_input').value) +
                    (frm[i].value == '4' ? '/news' : '/leisure');
            }

            return false;
        }
    }

    return true;
}
