function MM_jumpMenu(targ,selObj,restore){ //v3.0
  	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  	if (restore) selObj.selectedIndex=0;
}

function mpFoto(img){ 
		foto1= new Image(); 
		foto1.src=(img); 
		mpControl(img); 
} 

function mpControl(img){ 
		if((foto1.width!=0)&&(foto1.height!=0)){ viewFoto(img); } 
		else { mpFunc="mpControl('"+img+"')"; intervallo=setTimeout(mpFunc,20); } 
} 

function viewFoto(img){ 
		largh=foto1.width+20; 
		altez=foto1.height+20; 
		string="width="+largh+",height="+altez; 
		finestra=window.open(img,"",string); 
} 

function setCheckboxes(theForm, elementName, isChecked)
{
    var chkboxes = document.forms[theForm].elements[elementName];
    var count = chkboxes.length;
		if (count) 
		{
      for (var i = 0; i < count; i++) 
			{
        chkboxes[i].checked = isChecked;
    	}
    } 
		else 
		{
    	chkboxes.checked = isChecked;
    } 
    return true;
}
