function richiestaValida(form_ins) {
		if( form_ins.nome.value == "" || form_ins.cognome.value == "" || form_ins.mail.value == "" || form_ins.tipo_stab.value == "Selezionare Voce" || form_ins.tel_fax.value == "" || form_ins.indirizzo.value == "" || form_ins.ccp.value == "" || form_ins.tipo_int.value == "Selezionare Voce") {
			alert("Non hai compilato tutti i campi!")
			return false;
		}
		else {
			if (form_ins.mail.value.indexOf("@") == -1) {
				alert("Indirizzo e-mail non corretto!")
				return false;
			}
				else
					return true;
			}
				
		}
	
function check_form() {
var controllo = false;
var bottone = document.actions_find.action_id;
for(var i=0; i<bottone.length; i++) {
  if(bottone[i].checked) {
    controllo = true;
    break;
  }
}
if(!controllo) {
  alert("Deve essere selezionata almeno un\'azione da visualizzare.");
  return false;
}
  return true;
}

function funziaFlash(path,width,height,trans,params){
	var flashObj,transParam,transEmbed
	transParam = (!trans)?'':'<param name="wmode" value="transparent" />'
	transEmbed = (!trans)?'':'wmode="transparent"'
	params = (params==undefined)?'':'?'+params
	path = path+params
	flashObj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'"><param name="movie" value="'+path+'" />'+transParam+'<param name="quality" value="high" /><embed '+transEmbed+' src="'+path+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>'
	document.write(flashObj)
	//alert(flashObj)
}

function centra(url, width, height){
if (document.all){
var x = window.screenLeft;
var y = window.screenTop;
var w = window.document.body.offsetWidth;
var h = window.document.body.offsetHeight;
}
else{
var x = window.screenX;
var y = window.screenY;
var w = window.outerWidth;
var h = window.outerHeight;
}
var cntx = x + Math.round((w - width) / 0);
var cnty = y + Math.round((h - height) / 0);
window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' +width + ',height=' + height);
}

