var lang = 'eng';
/* search categories */
var CATEGORIES = new Array();
//document.writeln('<option value="">All Sections</option>');
CATEGORIES['']					= 'All Sections';
CATEGORIES['thecompany']		= 'The Company';
CATEGORIES['ourbusiness']		= 'Our Businesses';
CATEGORIES['businesspartners']	= 'Business Partners';
CATEGORIES['publication']		= 'Publications';
CATEGORIES['pressrelease']		= 'Press Releases';
CATEGORIES['contactus']			= 'Contact Us';

/* display search query form */
function display_search_form(lang, c) {
	document.writeln('<form name="search" action="' + BaseHref + 'search.php" method="get" onsubmit="return before_search(this);">');
	document.writeln('<input type="hidden" name="l" value="' + lang + '" />');
	document.writeln('<input type="hidden" name="q" value="" />');
	document.writeln('<input type="hidden" name="s" value="0" />');
	document.writeln('<input type="hidden" name="o" value="0" />');
	document.writeln('<table width="130" border="0" cellspacing="0" cellpadding="0">');
	document.writeln('<tr>');
	document.writeln('  <td align="left">');
	document.writeln('    <select name="c" size="1" class="verdana10" style="width:120px;">');
	for (var i in c) document.writeln('<option value="' + i + '">' + c[i] + '</option>');
	document.writeln('    </select>');
	document.writeln('  </td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('  <td align="left">');
	document.writeln('    <input type="text" name="q2" size="14" maxlength="255" class="box85" autocomplete="off" style="width:100px;" />');
	document.writeln('    <input type="image" name="submit_btn" value="onSubmit" src="' + BaseHref + 'image/common/icon_red_arrow.gif" alt="Search" border="0" width="19" height="19" align="absmiddle" />');
	document.writeln('  </td>');
	document.writeln('</tr>');
	document.writeln('</table>');
	document.writeln('</form>');
}

display_search_form(lang, CATEGORIES);