I make a CD with search .pdf, but now i have problem when I want to make a search with Serbian letter is not possible. Also when I want to test it in IE i get a mistake, it working in Mozzila and Chrome but not in IE. Can somebody help me and tell me were I need to wrote function for this two. Thank you.
This is the part of code because all script is 65 mb size.
<html>
<head>
<script language=JavaScript>
sQ1=new Array();sQ1[1]=new Array("file:///C|/Documents and Settings/fhp/Desktop/A-CD Milosevic/Transkripti/Transkripti sa sudjenja Slobodanu Milosevicu (1)/Transkript sa sudjenja Slobodanu Milosevicu - 11. decembar 2001..pdf","Transkript sa sudjenja Slobodanu Milosevicu - 11. decembar 2001..pdf","","SUDIJA MEJ: Molim da sekretar najavi Predmet. SUDIJA MEJ: Molim stranke da se predstave. SUDIJA MEJ: Samo trenutak. Ne dobijamo francuski prevod. Engleski bi trebalo da bude, kao i obično, na kanalu 4, ali ga ne dobijamo. Sada je u redu. Gospođo tužiteljice, izvolite. TUŽILAC DEL PONTE: Hvala gospodine predsednice, hvala časni Sude. Kancelariju Tužilastva predstavljaju Karla del Ponte (Carla del Ponte), glavna tužiteljica, sa kolegama Džefrijem Najsom (Geoffrey Nice), Dirkom Rajnefeldom (Dirk Ryneveld) i Hildegard Uerc-Reclaf (Hildegard Uertz-Retzlaff). PRIJATELJ SUDA KEJ: Za amici curiae, Stiven Kej (Steven Kay) iz Kraljevske advokatske komore, Mihail Vladimirov (Mihail Wladimi roff) i Branislav Tapušković....
[there is index with sQ1[476]]
...");var sQb=0;var sQc=1;var sQd=2;var sQe=3;var sQf=4;var sQg=5;var sQh=6;var sQi=7;var sQj=8;var sQk;var sQdl;var sQm;var sQn; var sQ98 ; var sQB=true;var sQC=1;var sQE=2;var sQD=3;var sQF=4;var sQP=true;var sQQ=true;var sQ46=true;var sQ83=false;var sQ73=false;var sQ14=true;var sQ17=false;var sQ90=-1;var sQ45=0;var sQT;var sQ38=""; function SMPSetFocus() { document.formSearch.txtSearch.focus(); }
[COLOR="Red"]function sQp(sQq) {if ((sQq>="a" && sQq<="z") ||(sQq>="A" && sQq<="Z") || (sQq>="0" && sQq <="9")) { return true; } else { return false; } I think that is here mistake[/COLOR] }function sQr( sQt, sQu, sQv ) {var sQy;var sQz, sQ7, sQ2; var sQ3=0; var sQ42; var sQ43=true; var sQ44;sQ1[sQt][sQg]=0;for( sQ42=0; sQ42<sQ41.length; sQ42++ ){ if (sQ41[sQ42].length>0) { sQy=sQ1[sQt][sQu];if ( !sQ17 ){ sQy=sQy.toUpperCase(); } sQz=sQy.indexOf( sQ41[sQ42] );sQ44=sQ1[sQt][sQg];while (sQz >= 0){ sQ3 = sQ3 + sQz + 1;if(( sQm== -2 ) || ( sQm== -5 )) { sQ7 = false; } else { if (sQz == 0) { sQ7=false; } else { sQ7=sQp(sQy.charAt(sQz-1)); } } if(( sQm == -3 ) || ( sQm == -5 )) { sQ2 = false; } else { if ( sQy.length - sQz == sQ41[sQ42].length) { sQ2 = false; } else { sQ2 = sQp(sQy.charAt(sQz + sQ41[sQ42].length)); } } if (!sQ7 && !sQ2) { sQ1[sQt][sQj+sQ1[sQt][sQg]] = sQ3 - 1;sQ1[sQt][sQg] ++; } sQy = sQy.substring(sQz+1,sQy.length);while( sQp(sQy.charAt(0)) && sQy.length > 0 ) { sQy = sQy.substring( 1, sQy.length ) ;sQ3 ++; } sQz = sQy.indexOf(sQ41[sQ42]); } if( sQ1[sQt][sQg] == sQ44) { sQ43=false; } } } if( (sQ45==2) && (sQ43==false) ) { sQ1[sQt][sQg]=0; } } function sQ4(sQt, sQv) { var sQu=-1, sQ5; sQ1[sQt][sQf]=-1;while( ++sQu <= sQe && sQ1[sQt][sQf]==-1 ) { sQ5 = sQu==0 ? sQc : (sQu==1 ? sQd : (sQu==2 ? sQb : sQe));if( ((sQ5 == sQc ) && ( sQ46 )) || ((sQ5 == sQd ) && ( sQ83 )) || ((sQ5 == sQb ) && ( sQ73 )) || ((sQ5 == sQe ) && ( sQ14 )) ) { sQr( sQt, sQ5, sQv ); } else { sQ1[sQt][sQg]=0 } if ( sQ1[sQt][sQg] > 0 ) { sQ1[sQt][sQf] = sQ5; } } } function sQ6() { var sQt, sQu, sQ79, sQ8;for( sQt=1; sQt<sQ1.length; sQt++ ) { sQ1[sQt][sQi] = sQt; } if( sQB ) {for( sQt=1; sQt<sQ1.length; sQt++ ) { if( sQ1[sQt][sQf] == sQc ) { sQ1[sQt][sQh] = (4-sQC) * 15000; } else if( sQ1[sQt][sQf] == sQd ) { sQ1[sQt][sQh] = (4-sQE) * 15000; } else if( sQ1[sQt][sQf] == sQb ) { sQ1[sQt][sQh] = (4-sQD) * 15000; } else { sQ1[sQt][sQh] = (4-sQF) * 15000 + sQ1[sQt][sQg]; } } for( sQt=2; sQt<sQ1.length; sQt++ ) { sQ79 = sQ1[sQt][sQh]; sQ8 = sQ1[sQt][sQi];for( sQu=sQt; sQu>1 && sQ79 > sQ1[sQu-1][sQh]; sQu--) { sQ1[sQu][sQh] = sQ1[sQu-1][sQh];sQ1[sQu][sQi] = sQ1[sQu-1][sQi]; }sQ1[sQu][sQh] = sQ79;sQ1[sQu][sQi] = sQ8; } } } function sQ9(sQt) { var sQA = sQ1[sQt][sQg]==1 ? "rezultat" : "rezultata";sQk += ""; sQk += "<font face=\"Arial\" size=\"2\" color=gray>"; if( sQ1[sQt][sQf]==sQc ) { sQk += " - matched title"; } else { if( sQ1[sQt][sQf]==sQd ) {sQk += " - matched description"; } else { if( sQ1[sQt][sQf]==sQb ) { sQk += " - matched URL"; } else { sQk += " - " + sQ1[sQt][sQg] + " " + sQA + ""; } } } sQk += "</font>"; sQk += ""; } function sQG(sQt, sQH) { var sQI;var sQJ;var sQK = false; var sQdL=sQ1[sQt][sQj + sQH - 1]; sQI = sQdL<35 ? sQI=0 : sQI=sQdL-35;sQJ = (sQdL+35 > sQ1[sQt][sQe].length) ? sQJ=sQ1[sQt][sQe].length : sQJ=sQdL+35;while ((sQI>=0) && !sQK) { if(sQp(sQ1[sQt][sQe].charAt(sQI))) { sQI--; } else { sQK=true; } } sQI++;sQK=false;while ((sQJ > sQdL) && !sQK) { if(sQp(sQ1[sQt][sQe].charAt(sQJ))) { sQJ--; } else { sQK=true; } } sQk += "<BR><font face=\"Arial\" size=\"2\" color=#000000>\".. "+sQ1[sQt][sQe].substring(sQI,sQdL); sQk += "<B>" + sQ1[sQt][sQe].substring(sQdL , sQdL + sQdl.length ) +"</B>";sQk += sQ1[sQt][sQe].substring(sQdL + sQdl.length ,sQJ) + " ..\"</font>"; } function sQN( sQt ) { if( sQP==false ) { var sQu=1; while ( (sQu < 4) && (sQu<=sQ1[sQt][sQg])) { sQG( sQt, sQu ); sQu++; } } } function sQR( sQy, sQdL ) { sQk += sQy.substring( 0, sQdL );sQk += "<B>" + sQy.substring( sQdL , sQdL + sQdl.length ) +"</B>";sQk += sQy.substring( sQdL + sQdl.length ,sQy.length ); } function sQU( sQt, sQT ) { sQk += "<p><font face=\"Arial\" size=\"2\" color=#000000>" + sQT +".</font> ";sQk += "<a target=\"_blank\" href=\""+sQ1[sQt][sQb]+"\"><font face=\"Arial\" size=\"3\" color=#0000FF>"+sQ1[sQt][sQc]+"</font></a>";if (( sQ1[sQt][sQf]==sQe ) && (sQ45==0)) { sQN(sQt); } else { sQk+=""; } if( (sQ1[sQt][sQf]==sQd ) && (sQ45==0)) { sQk += "<br><font face=\"Arial\" size=\"2\" color=gray>Opis:</font><font face=\"Arial\" size=\"2\" color=#000000> "; sQk += "";sQR( sQ1[sQt][sQd], sQ1[sQt][sQj] ); sQk += "</font>"; } else { if( sQ1[sQt][sQd].length > 0 ) { sQk += "<br><font face=\"Arial\" size=\"2\" color=gray>Opis:</font></font><font face=\"Arial\" size=\"2\" color=#000000> "; sQk += "" + sQ1[sQt][sQd]; } else { } } sQk += "</font>"; if( sQQ ) { sQ9( sQt ); } sQk += "<br>"; }; function sQV() { sQT = 0;if (! (sQn )) { for( var sQt=1; sQt<sQ1.length; sQt++ ) { if(( sQ1[sQ1[sQt][sQi]][sQg] > 0 ) && (( sQT < sQ90 ) || ( sQ90 == -1 ))) { sQU(sQ1[sQt][sQi], ++sQT); } } } else { if( sQm == -4 ) { sQk += "<BR><font face=\"Arial\" size=\"2\" color=#000000>Greška: Karakter (*) mora da bude na pocetku ili na kraju teksta.</font>"; } } } function sQW() { sQk += "<html><head><title>Rezultati pretrage \"" + sQ98 + "\"</title></head><body"; sQk += ">" ;sQk += "<font face=\"Arial\" size=\"2\" color=#000000>";sQk += "<p>Tražili ste <b>" + sQ98 +".</b>"; sQk += "</font>" }; function sQY() { if(sQT==0) { sQk += "<p><font face=\"Arial\" size=\"2\" color=#000000>Nema podataka. </font>"; } else { var sQA = sQT==1 ? "dokument." : "dokumenata."; sQk += "<p><font face=\"Arial\" size=\"2\" color=#000000>" + sQT + " " + sQA + " </font>"; } sQk += "<a href=\"javascript:self.close();\"><font face=\"Arial\" size=\"2\">Zatvorite pretragu</font></a></p>"; sQk += "</p></body></html>"; } function sQ11() { var sQ23 = sQk;sQ34 = open("","Object", "resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,directories=yes,status=yes,width=590,height=500");if ((navigator.appName.indexOf("Microsoft")!=-1) && (navigator.appVersion.indexOf("3.0")!=-1)) { alert("Click to see results"); } sQ34.document.open();sQ34.document.write( sQ23 );sQ34.document.close(); } function sQ03( sQy ) { var sQqh="";for( var sQt=0; sQt<sQy.length; sQt++) { if( sQy.charAt(sQt)=="<" ) { sQqh += "<"; } else if( sQy.charAt(sQt)==">" ) { sQqh += ">"; } else if( sQy.charAt(sQt)=="\"" ) { sQqh += """; } else { sQqh += sQy.charAt(sQt); } } return( sQqh ); } function sQ93() { sQm = sQdl.indexOf("*"); if( sQm == 0 ) { sQm = -2; sQn = false; } else if (sQm == sQdl.length -1) { sQm = -3; sQn = false; } else if (sQm > 0 ) { sQm = -4;sQn = true; } else { sQn = false; } if ( sQdl.indexOf("*") != sQdl.lastIndexOf("*") ) { if( sQm == -2 ) { if( sQdl.lastIndexOf("*") == sQdl.length - 1 ) { sQm = -5; } else { sQm = -4; sQn = true; } } }if( ( sQm == -2 ) || (sQm == -5 )) { sQdl = sQdl.substring( 1, sQdl.length ); } if( ( sQm == -3 ) || (sQm == -5 )) { sQdl = sQdl.substring( 0, sQdl.length - 1 ); } } function SMPStartSearch() { var sQv;sQdl=document.formSearch.txtSearch.value;if (( sQdl.length > 0 )&&( sQdl != "*" )) { sQk = "";sQdl = sQ03(sQdl);sQ98 = sQdl; sQ93();if( sQ17 ) { sQv = sQdl; } else { sQv = sQdl.toUpperCase(); }if (sQ45 != 0) { sQ41=sQv.split(' '); } else { sQ41=sQv.split(); }if ( !(sQn ) ) { for( var sQt=1; sQt<sQ1.length; sQt++ ) { sQ4( sQt, sQv ); } sQ6(); } sQW();sQV();sQY();sQ11(); } }
</script>
<title>Pretraga</title>
</head>
<body onLoad=SMPSetFocus()>
<p align="center"><font color="#000000" size="2" face="Arial">
</font></p>
<div align="center"><img src="FHP_srb_logo.gif" alt="Logo" width="160" height="111" /></div>
</p>
<p align="center"><a href="Naslovna.html">Početna stranica</a></p>
<p align="center"><font color="#000000" size="2" face="Arial">Pretražite transkripte:
</font></p>
<form name="formSearch" action="javascript:SMPStartSearch() //">
<div align="center">
<input name="txtSearch">
<input name="send" type="submit" value="Traži">
</div>
</form>
</p>
</body>
</html>