function isSpecial(pString)
{
   var lSpecial = "<>/@!#$%^&*()+-.,;:'";
   var lIsSpecial = true;
   var lCount = 0;	   
   while (lCount < pString.length)
   {
//	  alert(pString.charAt(lCount));
	 	  
      if (lSpecial.indexOf(pString.charAt(lCount))> 0 && lIsSpecial==true)
      {
		  lIsSpecial = false;
		  return;
      }
	  
      lCount++;
   }
   return lIsSpecial;
}
function Search()
{
	if(isSpecial(document.SearchForm.q.value))
	{
		if(document.SearchForm.q.value.length<3 )
		{
			alert("Please provide the valid search criteria with minimum 3 chars");
			document.SearchForm.q.focus();
			return;
		}
		else if(document.SearchForm.q.value.indexOf('"')<3 && document.SearchForm.q.value.indexOf('"')>-1)
		{
			alert("Special Carecters n");
			document.SearchForm.q.focus();
			return;
		}
		document.SearchForm.action="/gapco/search/search.jsp";
		document.SearchForm.submit();
	}
	else
	{
		alert("Special Charecters not allowed here.")
		document.SearchForm.q.focus();
		return;
	}

}
document.write(' <form name="SearchForm" Method="Post" action="javascript:Search();">');
document.write(' <table width="774" border="0" cellspacing="0" cellpadding="0">');
document.write('               <tr>');
document.write('                 <td height="36" background="top_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('                   <tr>');
document.write('                     <td width="41" align="right"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image6a\',\'\',\'home_icon_o.gif\',1)"><img src="home_icon.gif" name="Image6a" width="11" height="11" border="0"></a><a href="#"></a></td>');
document.write('                     <td width="30" align="right"><a href="sitemap.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7a\',\'\',\'sitemap_o.gif\',1)"><img src="sitemap.gif" name="Image7a" width="11" height="11" border="0"></a><a href="#"></a></td>');
document.write('                     <td width="36" align="right"><a href="list_of_sales_offices.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image8a\',\'\',\'contacticon_o.gif\',1)"><img src="contacticon.gif" name="Image8a" width="11" height="11" border="0"></a><a href="#"></a></td>');
document.write('                     <td width="638" align="right">');
document.write('                         </td>');
document.write('                     <td></td>');
document.write('                   </tr>');
document.write('                 </table></td>');
document.write('               </tr>');
document.write('               <tr>');
document.write('                 <td><img src="inside_banner.gif" width="774" height="108"></td>');
document.write('               </tr>');
document.write('             </table>');
document.write('             </FORM>');
