var myRequests;
function makeSearchCustom(insert_id, base, type, str)
{
if ((str == "")||(insert_id == "")||(type == "")||(base == "")||(str == "поиск..."))
{
alert("Введите поисковую фразу");
return;
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(insert_id).innerHTML = xmlhttp.responseText;
}
}
document.getElementById(insert_id).innerHTML = "
";
xmlhttp.open("GET","smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase="+base+"&types="+type,true);
xmlhttp.send();
}
function makeSearch(str,type, bases)
{
if ((str=="")||(str == "поиск..."))
{
alert("Введите поисковую фразу");
return;
}
if(bases.length == 0)
{
alert("Выберите базы для поиска");
document.getElementById('searchlink').innerHTML = " искать ";
document.getElementById('searchbutton').innerHTML = "";
return;
}
if(type== "")
{myRequests = {
theme_inion1: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion1&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_inion1").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_inion1").innerHTML = "
";}}),
author_inion1: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion1&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_inion1").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_inion1").innerHTML = "
";}}),
theme_inion0: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion0&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_inion0").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_inion0").innerHTML = "
";}}),
author_inion0: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion0&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_inion0").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_inion0").innerHTML = "
";}}),
theme_i2005: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2005&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_i2005").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_i2005").innerHTML = "
";}}),
author_i2005: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2005&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_i2005").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_i2005").innerHTML = "
";}}),
theme_i2002: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2002&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_i2002").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_i2002").innerHTML = "
";}}),
author_i2002: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2002&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_i2002").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_i2002").innerHTML = "
";}}),
theme_i99: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i99&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_i99").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_i99").innerHTML = "
";}}),
author_i99: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i99&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_i99").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_i99").innerHTML = "
";}}),
theme_in96: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in96&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_in96").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_in96").innerHTML = "
";}}),
author_in96: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in96&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_in96").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_in96").innerHTML = "
";}}),
theme_in93: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in93&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_in93").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_in93").innerHTML = "
";}}),
author_in93: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in93&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_in93").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_in93").innerHTML = "
";}}),
theme_econ: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=econ&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_econ").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_econ").innerHTML = "
";}}),
author_econ: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=econ&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_econ").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_econ").innerHTML = "
";}}),
theme_phil: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=phil&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_phil").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_phil").innerHTML = "
";}}),
author_phil: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=phil&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_phil").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_phil").innerHTML = "
";}}),
theme_hist: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=hist&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_hist").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_hist").innerHTML = "
";}}),
author_hist: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=hist&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_hist").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_hist").innerHTML = "
";}}),
theme_lingv: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=lingv&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_lingv").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_lingv").innerHTML = "
";}}),
author_lingv: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=lingv&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_lingv").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_lingv").innerHTML = "
";}}),
theme_liter: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=liter&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_liter").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_liter").innerHTML = "
";}}),
author_liter: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=liter&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_liter").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_liter").innerHTML = "
";}}),
theme_scien: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=scien&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_scien").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_scien").innerHTML = "
";}}),
author_scien: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=scien&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_scien").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_scien").innerHTML = "
";}}),
theme_law: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=law&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_law").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_law").innerHTML = "
";}}),
author_law: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=law&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_law").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_law").innerHTML = "
";}}),
theme_relig: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=relig&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_relig").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_relig").innerHTML = "
";}}),
author_relig: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=relig&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_relig").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_relig").innerHTML = "
";}}),
theme_dep: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=dep&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_dep").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_dep").innerHTML = "
";}}),
author_dep: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=dep&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_dep").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_dep").innerHTML = "
";}})};
} else if(type == "theme"){myRequests = {
theme_inion1: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion1&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_inion1").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_inion1").innerHTML = "
";}}),
theme_inion0: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion0&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_inion0").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_inion0").innerHTML = "
";}}),
theme_i2005: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2005&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_i2005").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_i2005").innerHTML = "
";}}),
theme_i2002: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2002&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_i2002").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_i2002").innerHTML = "
";}}),
theme_i99: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i99&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_i99").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_i99").innerHTML = "
";}}),
theme_in96: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in96&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_in96").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_in96").innerHTML = "
";}}),
theme_in93: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in93&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_in93").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_in93").innerHTML = "
";}}),
theme_econ: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=econ&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_econ").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_econ").innerHTML = "
";}}),
theme_phil: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=phil&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_phil").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_phil").innerHTML = "
";}}),
theme_hist: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=hist&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_hist").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_hist").innerHTML = "
";}}),
theme_lingv: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=lingv&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_lingv").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_lingv").innerHTML = "
";}}),
theme_liter: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=liter&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_liter").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_liter").innerHTML = "
";}}),
theme_scien: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=scien&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_scien").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_scien").innerHTML = "
";}}),
theme_law: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=law&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_law").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_law").innerHTML = "
";}}),
theme_relig: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=relig&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_relig").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_relig").innerHTML = "
";}}),
theme_dep: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=dep&types=ALL", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("theme_dep").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("theme_dep").innerHTML = "
";}})};
} else if(type == "author"){myRequests = {
author_inion1: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion1&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_inion1").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_inion1").innerHTML = "
";}}),
author_inion0: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=inion0&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_inion0").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_inion0").innerHTML = "
";}}),
author_i2005: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2005&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_i2005").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_i2005").innerHTML = "
";}}),
author_i2002: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i2002&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_i2002").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_i2002").innerHTML = "
";}}),
author_i99: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=i99&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_i99").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_i99").innerHTML = "
";}}),
author_in96: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in96&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_in96").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_in96").innerHTML = "
";}}),
author_in93: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=in93&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_in93").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_in93").innerHTML = "
";}}),
author_econ: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=econ&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_econ").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_econ").innerHTML = "
";}}),
author_phil: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=phil&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_phil").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_phil").innerHTML = "
";}}),
author_hist: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=hist&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_hist").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_hist").innerHTML = "
";}}),
author_lingv: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=lingv&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_lingv").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_lingv").innerHTML = "
";}}),
author_liter: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=liter&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_liter").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_liter").innerHTML = "
";}}),
author_scien: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=scien&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_scien").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_scien").innerHTML = "
";}}),
author_law: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=law&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_law").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_law").innerHTML = "
";}}),
author_relig: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=relig&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_relig").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_relig").innerHTML = "
";}}),
author_dep: new Request({
url: "smart_search.php?inionsearch=" + urlencode(str) + "&" + "inionbase=dep&types=AU", data: { foo1: "bar1"}, onComplete: function(text, xml){
document.getElementById("author_dep").innerHTML = text;}, onRequest: function(text, xml){ document.getElementById("author_dep").innerHTML = "
";}})};
}
myQueue = new Request.Queue({
requests: myRequests,
onEnd: function(name, instance, text, xml){
document.getElementById('searchlink').innerHTML = " искать ";
document.getElementById('searchbutton').innerHTML = "";
}
});
if(contains(bases,'inion1')){
if((type=="") ||(type == "theme")) myRequests.theme_inion1.send();
if((type=="") ||(type == "author")) myRequests.author_inion1.send();
}
if(contains(bases,'inion0')){
if((type=="") ||(type == "theme")) myRequests.theme_inion0.send();
if((type=="") ||(type == "author")) myRequests.author_inion0.send();
}
if(contains(bases,'i2005')){
if((type=="") ||(type == "theme")) myRequests.theme_i2005.send();
if((type=="") ||(type == "author")) myRequests.author_i2005.send();
}
if(contains(bases,'i2002')){
if((type=="") ||(type == "theme")) myRequests.theme_i2002.send();
if((type=="") ||(type == "author")) myRequests.author_i2002.send();
}
if(contains(bases,'i99')){
if((type=="") ||(type == "theme")) myRequests.theme_i99.send();
if((type=="") ||(type == "author")) myRequests.author_i99.send();
}
if(contains(bases,'in96')){
if((type=="") ||(type == "theme")) myRequests.theme_in96.send();
if((type=="") ||(type == "author")) myRequests.author_in96.send();
}
if(contains(bases,'in93')){
if((type=="") ||(type == "theme")) myRequests.theme_in93.send();
if((type=="") ||(type == "author")) myRequests.author_in93.send();
}
if(contains(bases,'econ')){
if((type=="") ||(type == "theme")) myRequests.theme_econ.send();
if((type=="") ||(type == "author")) myRequests.author_econ.send();
}
if(contains(bases,'phil')){
if((type=="") ||(type == "theme")) myRequests.theme_phil.send();
if((type=="") ||(type == "author")) myRequests.author_phil.send();
}
if(contains(bases,'hist')){
if((type=="") ||(type == "theme")) myRequests.theme_hist.send();
if((type=="") ||(type == "author")) myRequests.author_hist.send();
}
if(contains(bases,'lingv')){
if((type=="") ||(type == "theme")) myRequests.theme_lingv.send();
if((type=="") ||(type == "author")) myRequests.author_lingv.send();
}
if(contains(bases,'liter')){
if((type=="") ||(type == "theme")) myRequests.theme_liter.send();
if((type=="") ||(type == "author")) myRequests.author_liter.send();
}
if(contains(bases,'scien')){
if((type=="") ||(type == "theme")) myRequests.theme_scien.send();
if((type=="") ||(type == "author")) myRequests.author_scien.send();
}
if(contains(bases,'law')){
if((type=="") ||(type == "theme")) myRequests.theme_law.send();
if((type=="") ||(type == "author")) myRequests.author_law.send();
}
if(contains(bases,'relig')){
if((type=="") ||(type == "theme")) myRequests.theme_relig.send();
if((type=="") ||(type == "author")) myRequests.author_relig.send();
}
if(contains(bases,'dep')){
if((type=="") ||(type == "theme")) myRequests.theme_dep.send();
if((type=="") ||(type == "author")) myRequests.author_dep.send();
}
}
function contains(a, obj) {
var i = a.length;
while (i--) {
if (a[i] === obj) {
return true;
}
}
return false;
}
function clearSearchResults(clear)
{
for ( req in myRequests )
{
myRequests[req].cancel();
}
if(clear)
{
document.getElementById("theme_inion1").innerHTML = "
";
document.getElementById("author_inion1").innerHTML = "
";
;document.getElementById("theme_inion0").innerHTML = "
";
document.getElementById("author_inion0").innerHTML = "
";
;document.getElementById("theme_i2005").innerHTML = "
";
document.getElementById("author_i2005").innerHTML = "
";
;document.getElementById("theme_i2002").innerHTML = "
";
document.getElementById("author_i2002").innerHTML = "
";
;document.getElementById("theme_i99").innerHTML = "
";
document.getElementById("author_i99").innerHTML = "
";
;document.getElementById("theme_in96").innerHTML = "
";
document.getElementById("author_in96").innerHTML = "
";
;document.getElementById("theme_in93").innerHTML = "
";
document.getElementById("author_in93").innerHTML = "
";
;document.getElementById("theme_econ").innerHTML = "
";
document.getElementById("author_econ").innerHTML = "
";
;document.getElementById("theme_phil").innerHTML = "
";
document.getElementById("author_phil").innerHTML = "
";
;document.getElementById("theme_hist").innerHTML = "
";
document.getElementById("author_hist").innerHTML = "
";
;document.getElementById("theme_lingv").innerHTML = "
";
document.getElementById("author_lingv").innerHTML = "
";
;document.getElementById("theme_liter").innerHTML = "
";
document.getElementById("author_liter").innerHTML = "
";
;document.getElementById("theme_scien").innerHTML = "
";
document.getElementById("author_scien").innerHTML = "
";
;document.getElementById("theme_law").innerHTML = "
";
document.getElementById("author_law").innerHTML = "
";
;document.getElementById("theme_relig").innerHTML = "
";
document.getElementById("author_relig").innerHTML = "
";
;document.getElementById("theme_dep").innerHTML = "
";
document.getElementById("author_dep").innerHTML = "
";
; }
else
{
if(document.getElementById("theme_inion1").innerHTML.indexOf("";}
if(document.getElementById("author_inion1").innerHTML.indexOf("";}
;if(document.getElementById("theme_inion0").innerHTML.indexOf("";}
if(document.getElementById("author_inion0").innerHTML.indexOf("";}
;if(document.getElementById("theme_i2005").innerHTML.indexOf("";}
if(document.getElementById("author_i2005").innerHTML.indexOf("";}
;if(document.getElementById("theme_i2002").innerHTML.indexOf("";}
if(document.getElementById("author_i2002").innerHTML.indexOf("";}
;if(document.getElementById("theme_i99").innerHTML.indexOf("";}
if(document.getElementById("author_i99").innerHTML.indexOf("";}
;if(document.getElementById("theme_in96").innerHTML.indexOf("";}
if(document.getElementById("author_in96").innerHTML.indexOf("";}
;if(document.getElementById("theme_in93").innerHTML.indexOf("";}
if(document.getElementById("author_in93").innerHTML.indexOf("";}
;if(document.getElementById("theme_econ").innerHTML.indexOf("";}
if(document.getElementById("author_econ").innerHTML.indexOf("";}
;if(document.getElementById("theme_phil").innerHTML.indexOf("";}
if(document.getElementById("author_phil").innerHTML.indexOf("";}
;if(document.getElementById("theme_hist").innerHTML.indexOf("";}
if(document.getElementById("author_hist").innerHTML.indexOf("";}
;if(document.getElementById("theme_lingv").innerHTML.indexOf("";}
if(document.getElementById("author_lingv").innerHTML.indexOf("";}
;if(document.getElementById("theme_liter").innerHTML.indexOf("";}
if(document.getElementById("author_liter").innerHTML.indexOf("";}
;if(document.getElementById("theme_scien").innerHTML.indexOf("";}
if(document.getElementById("author_scien").innerHTML.indexOf("";}
;if(document.getElementById("theme_law").innerHTML.indexOf("";}
if(document.getElementById("author_law").innerHTML.indexOf("";}
;if(document.getElementById("theme_relig").innerHTML.indexOf("";}
if(document.getElementById("author_relig").innerHTML.indexOf("";}
;if(document.getElementById("theme_dep").innerHTML.indexOf("";}
if(document.getElementById("author_dep").innerHTML.indexOf("";}
; }
}
function urlencode(text)
{
var trans = [];
for (var i=0x410; i<=0x44F; i++) trans[i] = i-0x350;
trans[0x401] = 0xA8;
trans[0x451] = 0xB8;
var ret = [];
for (var i=0; i < text.length; i++)
{
var n = text.charCodeAt(i);
if(typeof trans[n] != 'undefined') n = trans[n];
if(n <= 0xFF) ret.push(n);
}
return escape(String.fromCharCode.apply(null,ret));
}
function CheckAll(check)
{
document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;document.getElementById('check_dep').check = check;}