function checkcontent2() 
{
var find=0;
var sNosub=document.search.ricerca.value;
if (sNosub=="") 
return (false); 
else 
{for (var loc=0; loc <= sNosub.length; loc++) 
 {if (find==0) 
  {if (sNosub.charAt(loc) == " ") 
    document.search.ricerca.value=sNosub.substring(loc+1, sNosub.length)
   else find=1;}
 }
} 
if (document.search.ricerca.value=="") 
 return (false); 
if (find== 1) 
 return (true);
else return (false);
}
function roll(quale,over) {
if (document.all){
 var obj
 if ((document.all) && (over)) {
  obj='document.all["rigo' + quale +'"].bgColor="#E7E7E7"'
  eval (obj);
  obj='document.all["testo' + quale +'"].style.color="#913741"'
  eval (obj);}
if ((document.all) && (!over))  {
 obj='document.all["rigo' + quale +'"].bgColor="#FFFFFF"'
 eval (obj);
 obj='document.all["testo' + quale +'"].style.color="#01237D"'
 eval (obj);}
 }
}
function CreaParamVeloce() {
if (document.RicVeloce.NOMERADIO[1].checked == true) {
 // FONDI
 var miastringa='http://www.agentissimo.it' + document.RicVeloce.STRING.value;
 var s = window.open(miastringa, 'QuickSearch', 'height=500,width=650,menubar,location,toolbar,scrollbars,resizable');
 s.focus();}
else {
 // AZIONI
 var miastringa = document.RicVeloce.STRING.value;
 var url = 'http://www.agentissimo.it"';
 var myparam = '';
 if (miastringa != ''){ 
  myparam = ' AND ("' + miastringa + '" is substring of F10011' + ' OR "' + miastringa + '" is substring of F10014)';}
 var param = url + escape(myparam) + '&STRING=&CHAIN_V=Az.Milano&CHAIN_Vdesc1=Az.Milano';
//alert(param);
 var s = window.open(param, 'QuickSearch', 'height=500,width=650,menubar,location,toolbar,scrollbars,resizable');
 s.focus();}
return false;    	
}
function whatBrowser() {
bAgt = navigator.userAgent.toLowerCase();
if (bAgt.indexOf("mac") != -1) {
 window.location="www.agentissimo.it";
 return(false);}
if (navigator.appName == 'Microsoft Internet Explorer') {
 var version = navigator.appVersion;
 var myVersion = version.substring(0,1);  //4);
 if (myVersion <= 3)
 window.location="www.soluzioneagenti.it";
 return(false);} 
else {
 window.location="www.agentissimo.it";
 return(false);}
}
function checkSondaggio()
{
bol= 0;
for (i=0; i<= document.frmSondaggio.votazione.length-1; i++) {
 if (document.frmSondaggio.votazione[i].checked == 1) bol=1;}
if (bol==0){
 alert("Attenzione! Bisogna fare almeno una scelta");
 return (false);}
if (bol==0) return true;
}

var iswindowopenMM = false;
var mwMM;
function MM_openBrWindow3(theURL,winName,wSize)
{
        if (iswindowopenMM) {
                if (!mwMM.closed){
                  mwMM.close();
                 }
        }
        var xOffset = 90; yOffset = 20;xOffsetH = 170;yOffsetH = 60;
	if (window.screen.availHeight<720)
	{
       	    if (navigator.appname != 'Netscape'){
        	mwMM = window.open(theURL,winName,'width='+wSize+',height='+520+',scrollbars=yes,resizable=yes,top='+yOffset+',left='+xOffset+'');
            }else{
        	mwMM = window.open(theURL,winName,'screenX='+wSize+',screenY='+520+',scrollbars=yes,resizable=yes,top='+yOffset+',left='+xOffset+'');
            }
	}
	else
	{
            if (navigator.appname != 'Netscape'){
        	mwMM = window.open(theURL,winName,'width='+wSize+',height='+580+',scrollbars=yes,resizable=yes,top='+yOffsetH+',left='+xOffsetH+'');
            }else{
        	mwMM = window.open(theURL,winName,'screenX='+wSize+',screenY='+580+',scrollbars=yes,resizable=yes,top='+yOffsetH+',left='+xOffsetH+'');
            }
	}
        mwMM.focus();
        iswindowopenMM = true;
}

