// Il testo in rosso deve essere scritto solo quando si vuole avere la ricerca sul sito
// La variable globale utilizzata per l'inserimento della form di ricerca é
// SubformRicerca
// che può assumere i valori: "Si", "no", nessuno (variabile non dichiarata)
// la conversione in minuscolo è effettuata internamente
//
// Le immagini seguenti debbono essere presenti tra le risorse immagini del DB (ereditate da BIG)
// cerca_p.gif
// fra.gif
// grigio.gif
// invia_p.gif
// ita.gif
// logo.jpg
// transparent.gif
if ((typeof LinguaCorrente == "undefined") || (LinguaCorrente+"" == "null") || (LinguaCorrente+"" == ""))
LinguaCorrente='_i';
function replacesubstringLN(inputstring, badstring,goodstring, casesensitive) {
fixedreplace = "";
ui = inputstring;
ub = badstring;
if ((casesensitive != 1) && (casesensitive != true)) {
ui = inputstring.toUpperCase();
ub = badstring.toUpperCase();
}
badend = -1;
badloc = ui.indexOf(ub);
if (badloc != -1)
{
for (x=1; (badloc != -1); x++)
{
fixedreplace = fixedreplace + inputstring.substring((badend + 1), badloc) + goodstring;
badend = badloc + ub.length - 1;
badloc = ui.indexOf(ub, (badloc + 1));
}
fixedreplace = fixedreplace + inputstring.substring((badend + 1),inputstring.length);
}
else { fixedreplace = inputstring; }
return fixedreplace;
}
function linguaIta()
{
location.href=replacesubstringLN(location.href, '_f','_i');
location.href=replacesubstringLN(location.href, '_e','_i');
return;
}
function linguaFra()
{
location.href=replacesubstringLN(location.href, '_i','_f');
location.href=replacesubstringLN(location.href, '_e','_f');
return;
}
function linguaEng()
{
location.href=replacesubstringLN(location.href, '_f','_e');
location.href=replacesubstringLN(location.href, '_i','_e');
return;
}
// controllo sulla casella di ricerca
function checkrequired(which){
var pass=true
if (which.txtKeyString.value=='') {
pass=false
}
if (!pass){
if (LinguaCorrente.toLowerCase() =='_f')
alert("Insérer les termes à rechercher")
else
alert("Inserire i termini da ricercare")
return false
}
else {
return true
}
}
// routine di browser detection
function bName() {
// return 1 for Internet Explorer
if (navigator.appName == "Microsoft Internet Explorer")
return 1;
// return 2 for Navigator
if (navigator.appName == "Netscape")
return 2;
// return 0 for other browsers
return 0;
}
function bVer() {
// return version number (e.g., 4.03)
return parseFloat(navigator.appVersion)
}
function Testata() {
if (SubformRicerca.toLowerCase() =='si')
{
document.writeln('');
}
document.writeln('
');
document.writeln(' ');
document.writeln(' ');
document.writeln(' ');
document.writeln(' ');
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln("  | ");
else
document.writeln("  | ");
document.writeln("  | ");
document.writeln(' ');
document.writeln(' ');
document.writeln(' | ');
document.writeln('
');
document.writeln(' ');
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
else
document.writeln(" Cerca nel sito ");
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln(" ");
}
else{
document.writeln(" ");
document.writeln("| ");
document.writeln(" | ");
document.writeln("");
document.writeln(" | ");
document.writeln(" | ");
}
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln("  | ");
else
document.writeln("  | ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" | ");
document.writeln("  | ");
document.writeln("
");
document.writeln(" ");
}
function LingueVDA() {
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("
");
document.writeln(" ");
document.writeln("  | ");
document.writeln("  | ");
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln(" ");
else
document.writeln(" ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln(" ");
else
document.writeln("Link");
document.writeln("  | ");
document.writeln("  | ");
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln(" ");
else
document.writeln(" ");
document.writeln("  | ");
document.writeln("  | ");
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln(" ");
else
document.writeln(" ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln(" ");
else
document.writeln("Contatti");
document.writeln("  | ");
document.writeln("  | ");
if (LinguaCorrente.toLowerCase() =='_i')
document.writeln(" ITA | ");
else
document.writeln(" ITA | ");
document.writeln("  | ");
document.writeln("  | ");
if (LinguaCorrente.toLowerCase() =='_f')
document.writeln(" FRA | ");
else
document.writeln(" FRA | ");
document.writeln("  | ");
document.writeln("  | ");
if (LinguaCorrente.toLowerCase() =='_e')
document.writeln(" ENG | ");
else
document.writeln(" ENG | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("
");
document.writeln(" ");
}
function TestataClose(){
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("  | ");
document.writeln("
");
document.writeln(" ");
document.writeln("  | ");
document.writeln("
");
document.writeln("
");
}
function PiedePagina(hrefCura, inizioCura, testoCura)
{
document.writeln(' ')
};
function PiedeVDA()
{
if (LinguaCorrente.toLowerCase() =='_f')
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/infomappa_f.asp?codmap=201&", "Page rédigée par le ", "Département des politiques du travail et de la formation");
}
else
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/infomappa_i.asp?codmap=201&", "Pagina a cura del ", "Dipartimento Politiche del Lavoro e della Formazione");
}
};
function PiedeVDA2()
{
if (LinguaCorrente.toLowerCase() =='_f')
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/infomappa_f.asp?codmap=201&","Page rédigée par la ", "Département des politiques du travail et de la formation");
}
else
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/infomappa_i.asp?codmap=201&", "Pagina a cura del ", "Dipartimento Politiche del Lavoro e della Formazione");
}
};
function PiedeADL()
{
if (LinguaCorrente.toLowerCase() =='_f')
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/infomappa_f.asp?codmap=201&","Département des politiques du travail et de la formation");
}
else
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/infomappa_i.asp?codmap=201&","Dipartimento Politiche del Lavoro e della Formazione");
}
};
function PiedeDSI()
{
if (LinguaCorrente.toLowerCase() =='_f')
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/struttura_f.asp?cod=201","Dèpartement du système d'information");
}
else
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/struttura_i.asp?cod=201","Dipartimento Politiche del Lavoro e della Formazione");
}
};
function PiedeOperePubbliche()
{
if (LinguaCorrente.toLowerCase() =='_f')
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/struttura_f.asp?cod=201","Dèpartement du système d'information")
}
else
{
PiedePagina("http://www.regione.vda.it/amministrazione/struttura/struttura_i.asp?cod=201","Dipartimento Opere pubbliche");
}
};