<script>
function OutputBackImg(input_name){
input_name.style.backgroundColor = "#FFFFF7";
input_name.style.backgroundImage = "";
}
</script>
<?
if(!$_POST['main_search']) {
$main_search_img1 = "style=\"BACKGROUND-IMAGE: url(
http://www.ifull.co.kr.co.kr/images/serch_img.gif)undefined; BACKGROUND-REPEAT: no-repeat\" onfocus=\"javaScript:OutputBackImg(this);\"";
$main_search_txt= "";
} else {
$main_search_img1 = "onFocus=this.value=''";
$main_search_txt= $_POST['main_search'];
}
?>
<form name="sform" action="/list.php" method="post">
<tr>
<td width="33" height="5"></td>
<td width="302"></td>
<td width="31" rowspan="3"><input type="image" src="http://www.ifull.co.kr/images/serch.gif" alt="검색" width="31" height="36" border="0" /></td>
<td width="10" rowspan="3"></td>
</tr>
<tr>
<td height="26"></td>
<td><input type="text" name="main_search" id="top_search" autocomplete="off" style="width:295px; border-line:#ffffff; border:0px; font-weight:bold;" <?=$main_search_img1?> title="검색어입력" value="<?=$main_search_txt?>" /></td>
</tr>
<tr>
<td height="5"></td>
<td></td>
</tr>
</form>