function writeSearch(value)
	{
		var ua = navigator.userAgent.toLowerCase();
		if (ua.indexOf('safari') != -1)
			{
				document.write('<input name="query" type="search" value="" maxlength="40" placeholder="' + value + '" results="10" style="width: 166px; height: 24px; color: #333; margin: -2px 0 0 -25px" />');
			}
		else
			{
				document.write('<input name="query" type="text" maxlength="40" value="' + value + '" onfocus="if (this.value == \'' + value + '\') {this.value = \'\'; this.className = \'blval\'}" onblur="if (this.value == \'\') {this.value = \'' + value + '\'; this.className = \'hlval\'}" />');
			}
	}
