function openpopup(popurl){
	var winpops=window.open(popurl,"","width=800,height=620")
}

function insFlash(dove,cosa,parametri,larghezza,altezza,wmode,bgcolor,id,hasReqestedVersion) {
	
	if(hasReqestedVersion){
		
		if(wmode){
			var traspObject = "<param name=\"wmode\" value=\"transparent\" />";
			var traspEmbed = " wmode=\"transparent\""
		}else{
			var traspObject = "";
			var traspEmbed = ""
		}

		//document.getElementById("mt-htmlmenu").className = "mt-out";
		
		stringa = "<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=\""+larghezza+"\" height=\""+altezza+"\" id=\""+id+"\">";
		stringa += "<param name=\"movie\" value=\""+cosa+"\" />";
		stringa += "<param name=\"quality\" value=\"high\" />";
		stringa += "<param name=\"showmenu\" value=\"false\" />";
		stringa += traspObject;
		stringa += "<param name=\"flashVars\" value=\""+parametri+"\" />";
		stringa += "<param name=\"bgcolor\" value=\""+bgcolor+"\" />";
		stringa += "<embed src=\""+cosa+"\" flashVars=\""+parametri+"\" quality=\"high\" showmenu=\"false\""+traspEmbed+" bgcolor=\""+bgcolor+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+larghezza+"\" height=\""+altezza+"\" name=\""+id+"\"></embed>";
		stringa += "</object>";
		
		document.getElementById(dove).innerHTML = stringa;
		return;
		
	}else{
		
		document.location.href = "/";
		return;
		
	}
}


function form_it() {
		document.write ("				<p><i>I campi contrassegnati con <font color=\"red\">*</font> sono obbligatori.</i></p> 		<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" class=\"tblRegUser\"> 					<tr><td align=\"right\" style=\"width:150px;\"><strong>Nome <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati01_nome\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Cognome <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati02_cognome\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Email <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati03_email\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Telefono <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati10_telefono\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Fax</strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati11_fax\" size=\"30\" /></td></tr> 					<tr><td align=\"right\" valign=\"top\"><strong>Messaggio <font color=\"red\">*</font></strong>&nbsp;</td><td><textarea class=\"i_textarea\" name=\"dati20_messaggio\" rows=\"8\" cols=\"50\"></textarea></td></tr> 					<tr>&nbsp;<td></td><td style=\"font-size:10px;line-height:1.2em;width:420px;\"><b>ESPRESSIONE DEL CONSENSO AL TRATTAMENTO DEI DATI PERSONALI</b><br /> 	 						Procedendo con la compilazione e con l'invio di questo modulo, Lei acconsente al trattamento dei dati personali da Lei forniti per la finalit&agrave; e nei limiti indicati da <a href=\"javascript:;\" onClick=\"window.open('/_privacy_it.htm', 'PrivacyPolicy', 'width=550, height=450, resizable=0, status=0, scrollbars=1, location=0');\" onMouseOver=\"window.status='Informativa sulla privacy'; return true\"><u>questa informativa</u></a>, ai sensi e per gli effetti della vigente normativa. 					</td></tr> 					<tr><td>&nbsp;</td><td> 						<input style=\"font-size:16px;\" type=\"button\" onclick=\"check_it();\" name=\"contatti\" id=\"contatti\" value=\" Invia messaggio \" /> 					</td></tr> 				</table>");
}

function check_it(){
  if(document.contatto.dati01_nome.value==''|document.contatto.dati02_cognome.value==''|document.contatto.dati03_email.value==''|document.contatto.dati04_subject.value==''|document.contatto.dati03_email.value==''|document.contatto.dati20_messaggio.value==''|document.contatto.dati10_telefono.value==''){
    alert("Attenzione: e' necessario compilare tutti i campi obbligatori.");
    return;
//  }else if(document.contatto.autorizzo.checked==false){
//    alert("Attenzione: e' necessario autorizzare il trattamento dei dati personali.");
//    return;
  }else{
	  document.contatto.submit();
  }
}

function form_de() {
		document.write ("<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" class=\"tblRegUser\"> 					<tr><td align=\"right\" style=\"width:150px;\"><strong>Name <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati01_nome\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Nachname <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati02_cognome\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Email <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati03_email\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Telephonnummer <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati10_telefono\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Fax</strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati11_fax\" size=\"30\" /></td></tr> 					<tr><td align=\"right\" valign=\"top\"><strong>Mitteilung <font color=\"red\">*</font></strong>&nbsp;</td><td><textarea class=\"i_textarea\" name=\"dati20_messaggio\" rows=\"8\" cols=\"50\"></textarea></td></tr> 					<tr>&nbsp;<td></td><td style=\"font-size:10px;line-height:1.2em;width:420px;\">Durch die Ausf&uuml;llung und obermittlung dieses Formblatts erkl&auml;re ich mich einverstanden mit der Behandlung der gelieferten personlichen Daten zu dem unter Punkt a) angegebenen Zweck sowie in der Art und Weise und in den Grenzen, <a href=\"javascript:;\" onClick=\"window.open('/_privacy_de.htm', 'PrivacyPolicy', 'width=550, height=450, resizable=0, status=0, scrollbars=1, location=0');\" onMouseOver=\"window.status='privacy'; return true\"><u>die in dieser Auskunft wiedergegeben werden</u></a>, laut und kraft des Art. 23 der Gesetzesverordnung 196/03.</td></tr> 					<tr><td>&nbsp;</td><td> 						<input style=\"font-size:16px;\" type=\"button\" onclick=\"check_de();\" name=\"contatti\" id=\"contatti\" value=\" Senden \" /> 					</td></tr> 				</table>");
}

function check_de(){
  if(document.contatto.dati01_nome.value==''|document.contatto.dati02_cognome.value==''|document.contatto.dati03_email.value==''|document.contatto.dati04_subject.value==''|document.contatto.dati03_email.value==''|document.contatto.dati20_messaggio.value==''|document.contatto.dati10_telefono.value==''){
    alert("Attention: you have to fill in all compulsory fields.");
    return;
//  }else if(document.contatto.autorizzo.checked==false){
//    alert("Attention: you have to check the privacy policy.");
//    return;
  }else{
	  document.contatto.submit();
  }
}


function form_en() {
		document.write ("				<p><i><font color=\"red\">*</font> compulsory fields.</i></p> 		<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" class=\"tblRegUser\"> 					<tr><td align=\"right\" style=\"width:150px;\"><strong>Name <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati01_nome\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Surname <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati02_cognome\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Email <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati03_email\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Telephone <font color=\"red\">*</font></strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati10_telefono\" size=\"30\" /></td></tr> 					<tr><td align=\"right\"><strong>Fax</strong>&nbsp;</td><td><input type=\"text\" class=\"i_text\" name=\"dati11_fax\" size=\"30\" /></td></tr> 					<tr><td align=\"right\" valign=\"top\"><strong>Message <font color=\"red\">*</font></strong>&nbsp;</td><td><textarea class=\"i_textarea\" name=\"dati20_messaggio\" rows=\"8\" cols=\"50\"></textarea></td></tr> 					<tr>&nbsp;<td></td><td style=\"font-size:10px;line-height:1.2em;width:420px;\"><b>AUTHORIZATION</b><br /> 	 						By filling in and sending this module, I hereby authorise the processing of the personal data I provide, for the purpose indicated in point a) above, in the manner and within the limits indicated by the <a href=\"javascript:;\" onClick=\"window.open('/_privacy_en.htm', 'PrivacyPolicy', 'width=550, height=450, resizable=0, status=0, scrollbars=1, location=0');\" onMouseOver=\"window.status='privacy'; return true\"><u>information contained here</u></a>, in compliance with and by effect of art. 23 of Legislative Decree 196/03. 					</td></tr> 					<tr><td>&nbsp;</td><td> 						<input style=\"font-size:16px;\" type=\"button\" onclick=\"check_en();\" name=\"contatti\" id=\"contatti\" value=\" send message \" /> 					</td></tr> 				</table>");
}

function check_en(){
  if(document.contatto.dati01_nome.value==''|document.contatto.dati02_cognome.value==''|document.contatto.dati03_email.value==''|document.contatto.dati04_subject.value==''|document.contatto.dati03_email.value==''|document.contatto.dati20_messaggio.value==''|document.contatto.dati10_telefono.value==''){
    alert("Attention: you have to fill in all compulsory fields.");
    return;
//  }else if(document.contatto.autorizzo.checked==false){
//    alert("Attention: you have to check the privacy policy.");
//    return;
  }else{
	  document.contatto.submit();
  }
}
