// Search form

function Search(action, defText) {
	this.action = action;
	this.defText = defText;
}
	
Search.prototype.show = function() {
  document.write('<form name="thesearch" id="thesearch" onsubmit="var t = document.getElementById(\'isearch\'); if (t.value ==\'' + this.defText + '\') t.value = \'\';" action="' + this.action + '" method="get"><input action="include/js_suggest/suggest.php" type="text" maxlength="255" size="13" value="' + this.defText + '" id="isearch" name="query" onblur="if (this.value == \'\') this.value = \'' + this.defText + '\';" onclick="if (this.value == \'' + this.defText+ '\') this.value = \'\';" /><input type="hidden" name="search" value="1"><input type="image" src="/im/s.gif" id="bsearch" /></form>');
}

/*
<form action="search.php" method="get">
<input type="text" name="query" id="query" size="40" value="" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500">	
<input type="submit" value="Search">
<input type="hidden" name="search" value="1">
</form>
*/
