function write_qs_bar(page, pcity, ptype) {
    var abspath = "http://www.ndovr.com/";
    var bihome, bisearch, bimysuitcase, bitraveltools, birentalowner;
    bihome = "tab_home.gif";
    bisearch = "tab_search.gif";
    bimysuitcase = "tab_my_suitcase.gif";
    bitravelresources = "tab_travel_resources.gif";
    birentalowner = "tab_rental_owner.gif";
    if (page == 1) { bihome = "tab_home-down.gif"; }
    if (page == 2) { bisearch = "tab_search-down.gif"; }
    if (page == 3) { bimysuitcase = "tab_my_suitcase-down.gif"; }
    if (page == 4) { bitravelresources = "tab_travel_resources-over.gif"; }
    if (page == 5) { birentalowner = "tab_rental_owner-down.gif"; }
document.write("<table width=\"762\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
document.write("  <tr>");
document.write("    <td width=\"267\" height=\"93\"><a href=\"/index.php\"><img src=\"/images/ndovr_logo.gif\" alt=\"Find or list your vacation rental home, condo, cabin, cottage, townhouse, campground or RV park with National Directory of Vacation Rentals.\" width=\"267\" height=\"93\" border=\"0\"></a></td>");
document.write("    <td width=\"463\" height=\"93\" align=\"right\" valign=\"bottom\">");
document.write("      <table width=\"463\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("      <tr>");
document.write("<td width=\"18\"><img src=\"/images/spacer.gif\" width=\"18\" height=\"1\" /></td>");
document.write("<td><a href=\"" + abspath + "index.php\" onMouseOver=\"MM_swapImage('home_dn','','/images/tab_home-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bihome + "\" name=\"home_dn\" width=\"57\" height=\"24\" border=\"0\" id=\"home_dn\"></a></td>");
document.write("<td><a href=\"" + abspath + "search.php\" onMouseOver=\"MM_swapImage('search','','/images/tab_search-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bisearch + "\" name=\"search\" width=\"59\" height=\"24\" border=\"0\" id=\"search\"></a></td>");
document.write("<td><a href=\"" + abspath + "my_suitcase.php\" onMouseOver=\"MM_swapImage('my_suitcase','','/images/tab_my_suitcase-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bimysuitcase + "\" name=\"my_suitcase\" width=\"98\" height=\"24\" border=\"0\" id=\"my_suitcase\"></a></td>");
document.write("<td><a href=\"" + abspath + "books.php\" onMouseOver=\"MM_swapImage('travel_resources','','/images/tab_travel_resources-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bitravelresources + "\" name=\"travel_resources\" width=\"119\" height=\"24\" border=\"0\" id=\"travel_resources\"></a></td>");
document.write("<td><a href=\"" + abspath + "owner.php\" onMouseOver=\"MM_swapImage('rental_owner','','/images/tab_rental_owner-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + birentalowner + "\" name=\"rental_owner\" width=\"105\" height=\"24\" border=\"0\" id=\"rental_owner\"></a></td>");
document.write("<td width=\"7\"><img src=\"/images/spacer.gif\" width=\"7\" height=\"1\" /></td>");
document.write("      </tr>");
document.write("      </table>");
document.write("    </td>");
document.write("    <td width=\"30\" align=\"right\" valign=\"bottom\"><img src=\"/images/spacer.gif\" width=\"30\" height=\"1\" /></td>");
document.write("    <td width=\"2\"><img src=\"/images/spacer.gif\" width=\"2\" height=\"1\" /></td>");
document.write("  </tr>");

/*document.write("<table width=\"762\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
document.write("  <tr>");
document.write("    <td width=\"267\" height=\"93\"><a href=\"/index.php\"><img src=\"/images/ndovr_logo.gif\" alt=\"Find or list your vacation rental home, condo, cabin, cottage, townhouse, campground or RV park with National Directory of Vacation Rentals.\" width=\"267\" height=\"93\" border=\"0\"></a></td>");
document.write("    <td colspan=\"3\" width=\"495\" height=\"93\" align=\"right\" valign=\"bottom\">");
document.write("      <table width=\"495\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("      <tr>");
document.write("<td width=\"57\"><img src=\"/images/spacer.gif\" width=\"57\" height=\"1\" /></td>");
document.write("<td><a href=\"" + abspath + "index.php\" onMouseOver=\"MM_swapImage('home_dn','','/images/tab_home-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bihome + "\" name=\"home_dn\" width=\"57\" height=\"24\" border=\"0\" id=\"home_dn\"></a></td>");
document.write("<td><a href=\"" + abspath + "search.php\" onMouseOver=\"MM_swapImage('search','','/images/tab_search-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bisearch + "\" name=\"search\" width=\"59\" height=\"24\" border=\"0\" id=\"search\"></a></td>");
document.write("<td><a href=\"" + abspath + "my_suitcase.php\" onMouseOver=\"MM_swapImage('my_suitcase','','/images/tab_my_suitcase-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bimysuitcase + "\" name=\"my_suitcase\" width=\"98\" height=\"24\" border=\"0\" id=\"my_suitcase\"></a></td>");
document.write("<td><a href=\"" + abspath + "books.php\" onMouseOver=\"MM_swapImage('travel_resources','','/images/tab_travel_resources-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + bitravelresources + "\" name=\"travel_resources\" width=\"119\" height=\"24\" border=\"0\" id=\"travel_resources\"></a></td>");
document.write("<td><a href=\"" + abspath + "owner.php\" onMouseOver=\"MM_swapImage('rental_owner','','/images/tab_rental_owner-over.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/" + birentalowner + "\" name=\"rental_owner\" width=\"105\" height=\"24\" border=\"0\" id=\"rental_owner\"></a></td>");
document.write("      </tr>");
document.write("      </table>");
document.write("    </td>");
document.write("  </tr>");*/

document.write("<tr align=\"center\" valign=\"middle\" bgcolor=\"CCCC99\">\n");
document.write("    <form name=\"qk_search1\" method=\"GET\">\n");
document.write("    <td width=\"730\" height=\"30\" valign=\"middle\" align=\"right\" colspan=\"2\" bgcolor=\"CCCC99\">");
document.write("        <span class=\"arial2\"><strong><em>Quick</em></strong> Search:</span>");
document.write("        <select name=\"qk_state\" class=\"inputbg\" onChange=\"document.qk_search1.qk_city.value=''; btn_Form(this.form)\">");
document.write("<option value=\"\">Select state...</option>");
document.write("<option value=\"AL\">Alabama</option>");
document.write("<option value=\"AK\">Alaska</option>");
document.write("<option value=\"AZ\">Arizona</option>");
document.write("<option value=\"AR\">Arkansas</option>");
document.write("<option value=\"CA\">California</option>");
document.write("<option value=\"CO\">Colorado</option>");
document.write("<option value=\"CT\">Connecticut</option>");
document.write("<option value=\"DE\">Delaware</option>");
document.write("<option value=\"DC\">District of Columbia</option>");
document.write("<option value=\"FL\">Florida</option>");
document.write("<option value=\"GA\">Georgia</option>");
document.write("<option value=\"HI\">Hawaii</option>");
document.write("<option value=\"ID\">Idaho</option>");
document.write("<option value=\"IL\">Illinois</option>");
document.write("<option value=\"IN\">Indiana</option>");
document.write("<option value=\"IA\">Iowa</option>");
document.write("<option value=\"KS\">Kansas</option>");
document.write("<option value=\"KY\">Kentucky</option>");
document.write("<option value=\"LA\">Louisiana</option>");
document.write("<option value=\"ME\">Maine</option>");
document.write("<option value=\"MD\">Maryland</option>");
document.write("<option value=\"MA\">Massachusetts</option>");
document.write("<option value=\"MI\">Michigan</option>");
document.write("<option value=\"MN\">Minnesota</option>");
document.write("<option value=\"MS\">Mississippi</option>");
document.write("<option value=\"MO\">Missouri</option>");
document.write("<option value=\"MT\">Montana</option>");
document.write("<option value=\"NE\">Nebraska</option>");
document.write("<option value=\"NV\">Nevada</option>");
document.write("<option value=\"NH\">New Hampshire</option>");
document.write("<option value=\"NJ\">New Jersey</option>");
document.write("<option value=\"NM\">New Mexico</option>");
document.write("<option value=\"NY\">New York</option>");
document.write("<option value=\"NC\">North Carolina</option>");
document.write("<option value=\"ND\">North Dakota</option>");
document.write("<option value=\"OH\">Ohio</option>");
document.write("<option value=\"OK\">Oklahoma</option>");
document.write("<option value=\"OR\">Oregon</option>");
document.write("<option value=\"PA\">Pennsylvania</option>");
document.write("<option value=\"RI\">Rhode Island</option>");
document.write("<option value=\"SC\">South Carolina</option>");
document.write("<option value=\"SD\">South Dakota</option>");
document.write("<option value=\"TN\">Tennessee</option>");
document.write("<option value=\"TX\">Texas</option>");
document.write("<option value=\"UT\">Utah</option>");
document.write("<option value=\"VT\">Vermont</option>");
document.write("<option value=\"VA\">Virginia</option>");
document.write("<option value=\"WA\">Washington</option>");
document.write("<option value=\"WV\">West Virginia</option>");
document.write("<option value=\"WI\">Wisconsin</option>");
document.write("<option value=\"WY\">Wyoming</option>");
document.write("                </select>");
document.write("                <select name=\"qk_city\" class=\"inputbg\">");
document.write("<option value=\"\">City</option>");
document.write("<option value=\"\">Select state...</option>");
document.write("                </select>");
document.write("                <select name=\"qk_type\" class=\"inputbg\">");
;
document.write("<option value=\"\">Type</option>");
document.write("<option value=\"1\">Vacation Home</option>");
document.write("<option value=\"2\">Condo</option>");
document.write("<option value=\"3\">Bed and Breakfast</option>");
document.write("                </select>");
document.write("        </td>");
document.write("        </form>");
document.write("        <form name=\"qk_search\" method=\"GET\" action=\"" + abspath + "search.php\">");
document.write("        <td width=\"30\" align=\"right\" valign=\"middle\">");
document.write("        <div align=\"left\">");
document.write("            <input type=\"hidden\" name=\"qk_state\">");
document.write("            <input type=\"hidden\" name=\"qk_city\">");
document.write("            <input type=\"hidden\" name=\"qk_type\">");
document.write("            <input type=\"hidden\" name=\"action\" value=\"qk_search\">");
document.write("            <a href=\"javascript:handleForm(document.forms['qk_search1'])\"><img src=\"/images/btn_go.gif\" hspace=\"4\" vspace=\"5\" width=\"21\" height=\"21\" border=\"0\" align=\"absmiddle\"></a>");
document.write("        </div>");
document.write("      </td>");
document.write("    </form>");
document.write("    <td width=\"2\" height=\"*\" rowspan=\"2\"><img src=\"/images/spacer.gif\" width=\"2\" height=\"1\" /></td>");
if (pcity != '') { document.qk_search1.qk_city.value = pcity; }
if (ptype != '') { document.qk_search1.qk_type.value = ptype; }

// end of this hellacious function... :-D
}

