function valid_search() { if(document.search.searchfor.value == \"\") { alert(\"Please give a search string\"); return false; } document.search.target = window.opener.name; return true; } function sort_it(sort_by) { opener.location.href='view_thread.html?ref_id=$ref_id&start=$start&sort='+sort_by; }
"; if($review) echo "Search/Sort This Thread"; else echo "Search This Thread"; echo "
"; if($review) { echo ""; } echo "
"; if($review) { echo " Title    Comment "; } echo "
Sort By
Title Ascending Rating Ascending
Title Descending Rating Descending
"; ?>