//#####################funzioni per la ricerca on line##############
//#####################           copyright           ##############
//#####################         linkomm 2002          ##############
//#####################-------------------------------##############
//#####################           si puo' riutilizzare##############
//#####################                 basta dirmelo!##############
//#####################               italo@losero.net##############

function muta(x){
//alert(x)
d=document.getElementById('cell' + x);
b='c' + x
a=document.forms.se.elements[b].value;
if (a==0){
d.style.backgroundColor ='#ffbb00'
document.forms.se.elements[b].value=1
}
else{
d.style.backgroundColor =''
document.forms.se.elements[b].value=0
}
}


function sembra(x,y){
d=document.getElementById('cell' + x);
b='c' + x
a=document.forms.se.elements[b].value;
if ((a==1)&&(y==0)){
d.style.backgroundColor ='#ffdd66'
}
if ((a==1)&&(y==1)){
d.style.backgroundColor ='#ffbb00'
}
if ((a==0)&&(y==0)){
d.style.backgroundColor ='#77aabb'
}
if ((a==0)&&(y==1)){
d.style.backgroundColor ='#55909F'
}
}


function goSearch(){
frm=document.forms.se.elements
a=escape(document.forms.se.elements.key.value)
if (frm.c1.value==1) var nw = window.open('http://www.excite.it/cerca/web/risultati?search=' + a)
if (frm.c2.value==1) var nw = window.open('http://search.virgilio.it/search/cgi/search.cgi?db=v&ly=vs&vrs=0&qs=' + a)
if (frm.c3.value==1) var nw = window.open('http://www.google.com/search?q=' + a,'Enaip')
if (frm.c4.value==1) var nw = window.open('http://hotbot.lycos.com/?query=' + a)
if (frm.c5.value==1) var nw = window.open('http://search.msn.com/results.asp?RS=CHECKED&FORM=MSNH&v=1&q=' + a)
if (frm.c6.value==1) var nw = window.open('http://search.lycos.com/main/default.asp?lpv=1&loc=searchhp&query=' + a)
if (frm.c7.value==1) var nw = window.open('http://it.altavista.com/q?pg=q&kl=XX&what=web&q=' + a)
if (frm.c8.value==1) var nw = window.open('http://search.netscape.com/search.psp?search=' + a)
if (frm.c9.value==1) var nw = window.open('http://arianna.iol.it/search/abin/ossearch?query=' + a)
if (frm.c10.value==1) var nw = window.open('http://search.dmoz.org/cgi-bin/search?search=' + a)
}

//############fine funzioni per ricerca on line 

