<div class="searchform">
  <form method="get" id="searchform2" action="<?php bloginfo('home'); ?>"> <input type="hidden" name="t" value="1" />
    <span class="searchfor"><input type="text" value="<?php if($_REQUEST['s']){echo $_REQUEST['s'];}else{_e('Search')}?>" name="s" id="sr" class="s" onfocus="if (this.value == '<?php _e('Search'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo get_option('ptthemes_search_name'); ?>';}" />
     <small class="text"><?php echo SEARCH_FOR_MSG;?> </small>
     </span>
  	 <span class="near"><input name="sn" id="sn" type="text" class="s" value="<?php if($_REQUEST['sn']){echo $_REQUEST['sn'];}else{echo NEAR_TEXT;}?>" onblur="if (this.value == '') {this.value = '<?php echo NEAR_TEXT;?>';}" onfocus="if (this.value == '<?php echo NEAR_TEXT;?>') {this.value = '';}"   /> 
      <small class="text"><?php echo SEARCH_NEAR_MSG;?></small>
     </span>
    <input type="image" class="search_btn" src="<?php bloginfo('template_url'); ?>/images/search_icon.png" alt="Submit button" onclick="set_srch();" />
  </form>
</div>
<script type="text/javascript">
function set_srch()
{
	if(document.getElementById('sr').value=='<?php echo get_option('ptthemes_search_name'); ?>')
	{
		document.getElementById('sr').value = ' ';	
	}
	if(document.getElementById('sn').value=='<?php echo NEAR_TEXT; ?>')
	{
		document.getElementById('sn').value = '';	
	}
}
</script>