I spent the better part of the afternoon today trying to get the code for a customer page that would use the generic Google site search to validate to xhtml, not the new adsense, but just plain old search. The code that Google provides is no where near xhtml 1.1 compliant.
Well I finally did customize the code where it works, and validates. I wish somebody had posted this for me!! So here is is for anybody who needs it! The CSS searchbar stuff is not important for function, just layout.
<div id="searchbar">
<h2>Search This Site</h2>
<!-- SiteSearch Google -->
<a href="http://www.google.com/" title="Google"><img width="75" height="32" title ="Google" src="images/Logo_25wht.gif" alt="Google" /></a><br />
<form method="get" action="http://www.google.com/search">
<div><input type="hidden" name="domains" value="http://banjara.us" />
<input type="text" name="q" size="19" maxlength="255" value="" />
</div>
<div>
<input type="radio" name="sitesearch" value="" />Web
<input type="radio" name="sitesearch" value="http://banjara.us" checked="checked" />Banjara.us
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />
</div>
</form>
</div>
<!-- SiteSearch Google -->