+ // For some reason, doing this programmatically results in
+ // document.search.query being undefined, hence the raw HTML.
+ $("#mkwsSearch").html('\
+ <form id="searchForm" name="search">\
+ <input id="query" type="text" size="50" />\
+ <input id="button" type="submit" value="Search" />\
+ </form>');
+
+ $("#mkwsRecords").html('\
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">\
+ <tr>\
+ <td width="250" valign="top">\
+ <div id="termlist"></div>\
+ </td>\
+ <td valign="top">\
+ <div id="ranking">\
+ <form name="select" id="select">\
+ Sort by' + mkws_html_sort(config) + '\
+ and show ' + mkws_html_perpage(config) + '\
+ per page.\
+ </form>\
+ </div>\
+ <div id="pager"></div>\
+ <div id="navi"></div>\
+ <div id="results"></div>\
+ </td>\
+ </tr>\
+ </table>\
+ </div>');
+
+ $("#mkwsTargets").html('\
+ <div id="bytarget">\
+ No information available yet.\
+ </div>');
+ $("#mkwsTargets").css("display", "none");
+
+ domReady();
+}
+
+function mkws_html_switch(config) {