<!--
/*
 File		: searchbox.js

 Purpose    : This javascript file for the search box on the left handside
 
 Functions  : 
 
 Remarks    : The table should contain 2 columns
	    
	    The following is the sample codes for including this js file
 
	    <TABLE WIDTH="166" BORDER="0" CELLSPACING="0" CELLPADDING="0">
	<TR>
	    <TD><IMG SRC="../images/common/blank.gif" WIDTH="10" HEIGHT="1" BORDER="0"></TD>
	    <TD><IMG SRC="../images/common/blank.gif" WIDTH="156" HEIGHT="1" BORDER="0"></TD>
	</TR>
	<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="[js path]/searchbox.js"></SCRIPT>
	</TABLE>


 Version    Date	    By		    Description
 -----------------------------------------------------------------------
 1st	    2002-05-31	   Vivian Au	    First Version
 -----------------------------------------------------------------------
*/


document.writeln("<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"JavaScript\" SRC=\"\/js\/common.js\"><\/SCRIPT>")
var searchStr = "";

    searchStr += "<FORM ACTION=\"\" METHOD=\"POST\" NAME=\"searchFrm\" onSubmit=\"javascript:return false\;\">";
    searchStr += "<TR><TD COLSPAN=\"2\" nowrap><IMG SRC=\"" + thisPath + "images/common/ti_search.gif\" WIDTH=\"156\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"Search\"></TD></TR>";
    searchStr += "<TR><TD COLSPAN=\"2\" nowrap><IMG SRC=\"" + thisPath + "images/common/blank.gif\" WIDTH=\"1\" HEIGHT=\"5\" BORDER=\"0\"></TD></TR>";


    if (ns) {
	searchStr += "<TR><TD COLSPAN=\"2\" nowrap><INPUT TYPE=\"Text\" NAME=\"search\" SIZE=\"9\"><INPUT TYPE=\"hidden\" NAME=\"language\"  VALUE=\"en\"><INPUT TYPE=\"hidden\" NAME=\"country\" VALUE=\"US\"> ";
	searchStr += "<A HREF=\"javascript:go_search();\"><IMG SRC=\"" + thisPath + "images/common/com_gelarrowright_but.gif\" WIDTH=\"20\" HEIGHT=\"19\" BORDER=\"0\" ALIGN=\"ABSBOTTOM\" ALT=\"Search\"></TD></TR></FORM>";
    } else {
	searchStr += "<TR><TD COLSPAN=\"2\" nowrap><INPUT TYPE=\"Text\" NAME=\"search\" style=\"WIDTH:123px;\" SIZE=\"16\"><INPUT TYPE=\"hidden\" NAME=\"language\"  VALUE=\"en\"><INPUT TYPE=\"hidden\" NAME=\"country\" VALUE=\"US\"> ";
	searchStr += "<A HREF=\"javascript:go_search();\"><IMG SRC=\"" + thisPath + "images/common/com_gelarrowright_but.gif\" WIDTH=\"20\" HEIGHT=\"19\" BORDER=\"0\" ALT=\"Search\"></A></TD></TR></FORM>";
    }
document.writeln(searchStr);


//-->



