before_search_result="";
after_search_result="";
exclude_words=",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,1,2,3,4,5,6,7,8,9,0,about,above,after,again,all,also,am,an,and,any,are,as,at,back,be,been,before,behind,being,below,but,by,can,click,do,does,done,each,else,etc,ever,every,few,for,from,generally,get,go,gone,has,have,hello,here,how,if,in,into,is,it,just,keep,later,let,like,lot,lots,made,make,makes,many,may,me,more,most,much,must,my,need,no,not,now,of,often,on,only,or,other,others,our,out,over,please,put,so,some,such,than,that,the,their,them,then,there,these,they,this,try,to,up,us,very,want,was,we,well,what,when,where,which,why,will,with,within,you,your,yourself,";
default_match_policy=0;
default_case_sensitive=false;
default_sort_policy=0;
default_whole_word=false;
whole_word=false;
case_sensitive=0;
sort_policy=0;
search_match_policy=0;
search_section_policy=0;
search_file_policy=0;
search_within_policy=0;
target_window_target="";
set_new_win=false;
target_window_property="";
display_num=true;
result_num_mode=2;
result_num_css="";
result_num_size=2;
result_num_face='Arial';
result_num_shape=0;
result_num_color='#000000';
display_title=true;
result_title_mode=2;
result_title_css="";
result_title_size=3;
result_title_face='Arial';
result_title_shape=0;
result_title_color='#0000FF';
match_title_mode=2;
match_title_css="";
match_title_size=3;
match_title_face='Arial';
match_title_shape=0;
match_title_color='#FF8080';
match_title_high=false;
display_text=true;
result_text_mode=2;
result_text_css="";
result_text_size=2;
result_text_face='Arial';
result_text_shape=0;
result_text_color='#000000';
match_text_mode=2;
match_text_css="";
match_text_size=2;
match_text_face='Arial';
match_text_shape=0;
match_text_color='#FF8080';
match_text_high=false;
display_url=true;
result_link_mode=2;
result_link_css="";
result_link_size=2;
result_link_face='Arial';
result_link_shape=0;
result_link_color='#008000';
display_date=true;
result_date_mode=2;
result_date_css="";
result_date_size=2;
result_date_face='Arial';
result_date_shape=0;
result_date_color='#008000';
search_item_num=15;
display_newsearch=true;
display_powered=false;
display_valid=true;
tran_yoursearch="Your Search:";
tran_found="Found";
tran_items="Items";
tran_goback="Go Back";
tran_resultpages="Result Pages:";
tran_previous="Prev";
tran_next="Next";
search_words="";
array_search_words=new Array();
search_words_count=0;
array_search_result=new Array();
search_result_count=0;
sorted_array_search_result=new Array();
search_url_count=0;
search_title_count=0;
search_keywords_count=0;
search_description_count=0;
search_text_count=0;
match_within_text="";
match_text_result=false;
max_match_title=120;
max_match_text_before=80;
max_match_text=240;
function trim_before(str)
{
while(str.length>0)
{
if(str.charAt(0)==' ')
str=str.substring(1,str.length);
else
break;
}
return str;
}
function trim_after(str)
{
while(str.length>0)
{
if(str.charAt(str.length-1)==' ')
str=str.substring(0,str.length-1);
else break;
}
return str;
}
function trim_middle(str)
{
var ret_str="";
var index = str.indexOf(' ');
while( index != -1 )
{
ret_str += str.substring(0, index) + ' ';
str=trim_before(str.substring(index,str.length));
index=str.indexOf(' ');
}
ret_str+=str;
return ret_str;
}
function trim_string(str)
{
str=trim_before(str);
str=trim_after(str);
str=trim_middle(str);
return str;
}
function insert_string(dest_str,ins_str,ins_pos)
{
var str;
str=dest_str.substring(0,ins_pos);
str+=ins_str;
str+=dest_str.substring(ins_pos,dest_str.length);
return str;
}
function get_search_words_array()
{
var i_index, j_index;
var index_word;
if (!case_sensitive)
search_words=search_words.toLowerCase();
if (search_match_policy==2)
{
array_search_words[0]=search_words;
search_words_count=1;
}
else
{
array_search_words=search_words.split(" ");
search_words_count=array_search_words.length;
}
if (exclude_words.length>0)
{
j_index=0;
for(i_index=0;i_index "+result_text_before+tran_yoursearch+" "+search_words+", "+tran_found+" "+search_result_count+" "+tran_items+"."+newsearch_string+result_text_after+"
";
if (display_num==true)
{
if (result_num_mode==1)
{
result_num_before="";
result_num_after="";
}
else if (result_num_mode==2)
{
result_num_before="";
if (result_num_shape==1)
{
result_num_before=result_num_before+"";
result_num_after="";
}
else if (result_num_shape==2)
{
result_num_before=result_num_before+"";
result_num_after="";
}
else if (result_num_shape==3)
{
result_num_before=result_num_before+"";
result_num_after="";
}
result_num_after=result_num_after+"";
}
output_string=output_string+result_num_before+eval(eval(item_index)+1)+"."+result_num_after;
}
if (set_new_win)
{
output_string=output_string+"";
}
else
{
output_string=output_string+"";
}
output_string=output_string+result_title_before;
if (display_title)
output_string=output_string+sorted_array_search_result[item_index][5];
else
output_string=output_string+sorted_array_search_result[item_index][4];
output_string+=result_title_after;
output_string+="";
if ((sorted_array_search_result[item_index][6].length > 0) && (display_text==true))
{
output_string+="
";
output_string=output_string+result_text_before+sorted_array_search_result[item_index][6]+result_text_after;
}
if (display_url == true)
{
if (result_link_mode==1)
{
result_link_before="";
result_link_after="";
}
else if (result_link_mode==2)
{
result_link_before="";
if (result_link_shape==1)
{
result_link_before=result_link_before+"";
result_link_after="";
}
else if (result_link_shape==2)
{
result_link_before=result_link_before+"";
result_link_after="";
}
else if (result_link_shape==3)
{
result_link_before=result_link_before+"";
result_link_after="";
}
result_link_after=result_link_after+"";
}
output_string+="
";
output_string=output_string+result_link_before+sorted_array_search_result[item_index][4]+result_link_after;
}
if (display_date == true)
{
if (result_date_mode==1)
{
result_date_before="";
result_date_after="";
}
else if (result_date_mode==2)
{
result_date_before="";
if (result_date_shape==1)
{
result_date_before=result_date_before+"";
result_date_after="";
}
else if (result_date_shape==2)
{
result_date_before=result_date_before+"";
result_date_after="";
}
else if (result_date_shape==3)
{
result_date_before=result_date_before+"";
result_date_after="";
}
result_date_after=result_date_after+"";
}
output_string=output_string+result_date_before+" Date: "+sorted_array_search_result[item_index][7]+" Size: "+sorted_array_search_result[item_index][8]+result_date_after;
}
output_string=output_string+"
"+result_text_before+ powered_string+result_text_after+"
"; output_string=before_search_result+output_string+after_search_result; return output_string; } function auto_run_search() { var str_param; var param_arg; var iParam; var match_is_set, case_is_set, sort_is_set, word_is_set; str_param=document.location.search; if (str_param=="") return; if(str_param.charAt(0)=="?") str_param=str_param.substring(1,str_param.length); param_arg=str_param.split("&"); search_words=""; case_sensitive=0; sort_policy=0; search_match_policy=0; search_section_policy=0; search_file_policy=0; search_within_policy=0; page_index=0; match_is_set=false; case_is_set=false; sort_is_set=false; word_is_set=false; for(iParam=0;iParam