// JavaScript Document

document.write('<table width="130" border="0" align="left" cellpadding="0" cellspacing="0">');
document.write('<form name="frm2">');
document.write('<tr>');
document.write('<td width="75%"><input name="searchString" id="searchStringTextBox" type="text" class="searchBox" value="Search..." onClick="clearText1()" /></td>');

document.write('<td width="75%">&nbsp;</td>');
document.write('<td width="25%" align="left"><a href="#"><img src="images/search-button.jpg" alt="Search" width="21" height="21" border="0" onClick="return functionSearch();"/></a></td>');
document.write('</tr>');
document.write('</form>');
document.write('</table>');

function clearText1()
{
document.getElementById("searchStringTextBox").value="";
}




function functionSearch()
{
	
	var searchString = document.getElementById("searchStringTextBox").value;
	if( searchString == "" || searchString == null || searchString =="Search...")
	{
		alert("Please enter the search keyword");
		document.getElementById("searchStringTextBox").focus();
		document.getElementById("searchStringTextBox").value="";
		return false;
	}
	//document.frm1.action="search.jsp?searchString="+searchString+"";
	//document.frm2.action="search2.jsp";
	document.frm2.action = "/adportal/ADA/search.jsp";
	document.frm2.method="post";
	document.frm2.submit();
}