

function resetta_modulo(campo)
	{
			campo.value = ""
	}
function ricompila_modulo(campo,valore)
	{
			campo.value = valore
	}
	

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function verifica_email()
{
  if(document.frm_newsletter.email.value == "")
	alert ("Inserite il vostro indirizzo e-mail");
  if(document.frm_newsletter.email.value == "E-mail")
	alert ("Inserite il vostro indirizzo e-mail");
  else
  document.frm_newsletter.submit();
}


function verifica_info()
{
  if(document.form1.nome.value == "" )
	alert ("Il campo nome non è stato riempito");
  else if(document.form1.cognome.value == "" )
	alert ("Il campo cognome non è stato riempito");
  else if(document.form1.email.value == "" )
	alert ("Il campo email non è stato riempito");
  else if(document.form1.info_richieste.value == "" )
	alert ("Il campo informazioni non è stato riempito");
  else if(document.form1.privacy(0).checked != true)
	alert ("E' necessario accettare l'informativa sul trattamento dei dati per proseguire");
	else
  document.form1.submit();
}

function verifica_info_dettagliate()
{
  if(document.form1.nome.value == "" )
	alert ("Il campo nome non è stato riempito");
  else if(document.form1.cognome.value == "" )
	alert ("Il campo cognome non è stato riempito");
  else if(document.form1.email.value == "" )
	alert ("Il campo email non è stato riempito");
  else if(document.form1.privacy(0).checked != true)
	alert ("E' necessario accettare l'informativa sul trattamento dei dati per proseguire");
	else
  document.form1.submit();
}

function verifica_info_en()
{
  if(document.form1.nome.value == "" )
	alert ("Please type your name");
  else if(document.form1.cognome.value == "" )
	alert ("Please type your family name");
  else if(document.form1.email.value == "" )
	alert ("Please type your email");
  else if(document.form1.info_richieste.value == "" )
	alert ("Please ask for any information");
  else if(document.form1.privacy(0).checked != true)
	alert ("To continue it is necessary  to accept the informative note concerning personal data processing");
	else
  document.form1.submit();
}

function verifica_login()
{
  if(document.frm_login.UserID.value == "")
	alert ("Inserite il Vostro nome utente");
  else if(document.frm_login.PWD.value == "")
	alert ("Inserite la Vostra password");
  else
  document.frm_login.submit();
}

function mettilagrande(immaginegrande)

{
	document.ch_img.src='' + immaginegrande + ''
}


function testata_IT_SWF(){
	var shtml = "<object classid=\"clsid:d27CDB6E-AE6D-11cf-96B8-444553540000\"";
	shtml += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0\"";
	shtml += "  width=\"250\" height=\"500\" id=\"testata_movie\" align=\"\">";
	shtml += " <param name=\"movie\" value=\"http://www.fllifranchini.com/it/torri.swf\">";
	shtml += " <param name=\"quality\" value=\"high\">";
	shtml += " <param name=\"bgcolor\" value=\"#F4F4F4\">";
	shtml += " <param name=\"wmode\" value=\"window\">";
	shtml += " <embed src=\"http://www.fllifranchini.com/it/torri.swf\" ";
	shtml += " quality=\"high\" bgcolor=\"#F4F4F4\" width=\"250\" height=\"500\" ";
	shtml += " name=\"testata_movie\" align=\"\" wmode=\"window\" ";
	shtml += "  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	shtml += "     </object>"

	var md = document;
	var swf2 = md.getElementById("testata");
	swf2.innerHTML = shtml;
}
