function CheckInput(){
        var input = document.getElementById('searchstring');
        if(input){
                var str = new String(input.value);
                if(str.length == 0){
                        return false;
                }else{
                        return true;
                }
        }else{
                return true;
        }
}

function ChangeShortSearch(obj){
        var formobj = document.getElementById("shortsearchform");
        if (formobj){
            var hid = formobj.getElementsByTagName('input');
            if (hid.length == 0) return;
            var ssname = "shortsearch_" + obj.value;
            for (i=0;i < hid.length;i++){
                if (hid[i].getAttribute('type') == 'hidden')
                    if (obj.value == 'all'){
                        hid[i].value = "on";
                    }else{
                        if (hid[i].getAttribute("id") == ssname)
	                    hid[i].value = "on";
                        else
                            hid[i].value = "off";
                    }
            }
        }
}
