   function showDef(curForm)
   {
        var formRegion = document.getElementById("form_region");

        formRegion.className="search-" + curForm;
        document.getElementById("tab_" + curForm).className = "";
        document.getElementById("tab_" + curForm).className = "active_" + curForm;
        document.getElementById("tab_" + curForm).firstChild.firstChild.className = "srch_active";
        document.getElementById("srch_line_top").className = "line_" + curForm;
        document.getElementById("srch_line_bottom").className = "line_" + curForm;
   }
                function switchForm(showForm) {
                        //hide all of the forms...
                        var formRegion = document.getElementById("form_region");
                        var numFormChildren = formRegion.childNodes.length;
                        for (var i=0; i < numFormChildren; i++){
                                if(formRegion.childNodes[i].className == "formInputs"){
                                        formRegion.childNodes[i].style.display = "none";
                                }
                        }

                        //set the correct color...
                        formRegion.className="search-" + showForm;
                        document.getElementById("tab_" + curForm).className = "";
                        document.getElementById("tab_" + showForm).className = "active_" + showForm;
                        document.getElementById("tab_" + showForm).firstChild.firstChild.className = "srch_active";
                        document.getElementById("tab_" + curForm).firstChild.firstChild.className = "srch_blue";
                        document.getElementById("srch_line_top").className = "line_" + showForm;
                        document.getElementById("srch_line_bottom").className = "line_" + showForm;

                        //handle the query even if the form was not submitted...
                        if(document.getElementById("query_" + curForm)){
                                curQuery = document.getElementById("query_" + curForm).value;
                        }
                        if(document.getElementById("query_" + showForm)){
                                document.getElementById("query_" + showForm).value = curQuery;
                        }

                        //show the correct form...
                        document.getElementById("form_" + showForm).style.display = "block";

                        //place the focus...
                        setCursor(showForm);

                        //set the current form...
                        curForm = showForm;

                        return true;
                }


                function setCursor(showForm) {
                        switch(showForm){
                                case "people":
                                        document.getElementById("fname").focus();
                                        break;
                                case "yp":
                                        document.getElementById("category").focus();
                                        break;
                                default:
                                        document.getElementById("query_" + showForm).focus();
                                        break;
                        }
                }