
	
function aggiorna()
{document.all.Categoria.value = "DOC*";document.all.Geografica.value = "Bereich - Stadt - Ort"; document.all.booking.checked= false;}

function PA(name) {window.location.href = '#top';
A2(name);}



	function advancedsearchhotel(db){
var G=new String(document.all.Geografica.value);
var ct=new String(document.all.Categoria[document.all.Categoria.selectedIndex].value);

var B=new String(document.all.booking.checked);
if (B=="true"){Boo=" and field booking=si"}
else
{Boo=""}

if (G=="" && ct=="") {alert("Impossibile procedere con la ricerca dell'hotel!  Selezionare \n Categoria Hotel \n            e/o \n Provincia Hotel \n            e/o \n Regione Hotel");return 0;}
if (G=="" && ct=="DOC*"){window.location.href="/"+db+"/struttura?SearchView&SearchMax=15000&query= Field Form=DOC"+Boo;return 0;}
if (G!="" && ct=="DOC*"){window.location.href="/"+db+"/struttura?SearchView&SearchMax=15000&query= Field Form=DOC and field Geografica="+G+Boo;return 0;}
if (G=="" && ct!="DOC*" && Boo==""){window.location.href="/"+db+"/StrutturaByCategory?OpenView&RestrictToCategory="+ct.replace("&", "amp");return 0;}
if (G=="" && ct!="DOC*" && Boo!=""){window.location.href="/"+db+"/struttura?SearchView&SearchMax=15000&query= Field Form=DOC and field categoria="+ct+Boo;return 0;}
if (G!="" && ct!="DOC*"){window.location.href="/"+db+"/4struttura?SearchView&SearchMax=15000&query= Field Categoria="+ct+" and field Geografica="+G+Boo;return 0;}
if (G!="" && ct=="") {window.location.href="/"+db+"/struttura?SearchView&SearchMax=15000&query= Field Form=DOC and Field Geografica="+G+Boo+"&SearchFuzzy=TRUE";return 0;}

var Ses=new Session();Ses.Set("Sreload", "SI");
var uS="/"+db+"/struttura?SearchView&SearchMax=15000&query= ";
var E=false;
Ses.Set("HITS","");uS+="&SearchOrder=1";window.location.href=uS+"&Folder=ricerca";}
// -->

function AdvancedSearchArticolo(db){ var FreeText = new String(document.all.FreeText.value);
if (FreeText=="")
{alert("Impossibile procedere con la ricerca! Nessuna parola da ricercare specificata");return 0;}
var Ses = new Session();
Ses.Set("Sreload", "SI");
var urlSearch="/"+db+"/Articolo!SearchView&amp;SearchMax=1500&query=";
var addE = false;
if (FreeText !="")
{urlSearch+=AdjustFreeQuery(FreeText);
addE = true;}
Ses.Set("HITS","");
urlSearch+="&SearchOrder=1";
   window.location.href=urlSearch + "&SearchFuzzy=TRUE";}

	function RicercaArticoloKeyPress() 
{key = window.event.keyCode;
if (key==13)
{var src = new String(window.event.srcElement.parentForm);
if (src == "RicercaArticolo")
{document.all.RicercaArticolo.click();}
}
}

// -->

