function show(Picture,PictName) {
 document.images[PictName].src=Picture;
};

function open_faq (my_path,w,h){
	largo=750;
	alto=550;
	posh=Math.floor((screen.height-alto)/2); 
	posw=Math.floor((screen.width-largo)/2);
	
	pop_win = window.open(my_path,'pop_win','scrollbars=yes,width='+largo+',height='+alto+',top='+posh+',left='+posw);

};

function check_newsletter() {	
	if (document.modulo_newsletter.email.value == '') {
		alert('Il campo INDIRIZZO E-MAIL \n non puņ essere vuoto.');
		document.modulo_newsletter.email.value='';
		document.modulo_newsletter.email.focus();
		document.modulo_newsletter.email.select();
		return false; }
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;	
	if (!email_reg_exp.test(document.modulo_newsletter.email.value)) {
	   alert("Controllare l\'indizzo E-mail.\nQuello inserito non č corretto");
	   document.modulo_newsletter.email.select();
	   return false;
	}
};
function check_newsletter1() {	
	if (document.modulo_newsletter_n.email.value == '') {
		alert('Il campo INDIRIZZO E-MAIL \n non puņ essere vuoto.');
		document.modulo_newsletter_n.email.value='';
		document.modulo_newsletter_n.email.focus();
		document.modulo_newsletter_n.email.select();
		return false; }
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;	
	if (!email_reg_exp.test(document.modulo_newsletter_n.email.value)) {
	   alert("Controllare l\'indizzo E-mail.\nQuello inserito non č corretto");
	   document.modulo_newsletter_n.email.select();
	   return false;
	}
};

function check_ricerca() {	
	if (document.modulo_ricerca.ricerca.value == '') {
		alert('Inserire il testo per la ricerca');
		document.modulo_ricerca.ricerca.value='';
		document.modulo_ricerca.ricerca.focus();
		document.modulo_ricerca.ricerca.select();
		return false; }
};


function check_contatti() {
	if (document.modulo_contatti.nome_contatto.value == '') {
		alert('Il campo NOME \n non puņ essere vuoto.');
		document.modulo_contatti.nome_contatto.value='';
		document.modulo_contatti.nome_contatto.focus();
		document.modulo_contatti.nome_contatto.select();
		return false; }	
	if (document.modulo_contatti.email_contatto.value == '') {
		alert('Il campo INDIRIZZO E-MAIL \n non puņ essere vuoto.');
		document.modulo_contatti.email_contatto.value='';
		document.modulo_contatti.email_contatto.focus();
		document.modulo_contatti.email_contatto.select();
		return false; }
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;	
	if (!email_reg_exp.test(document.modulo_contatti.email_contatto.value)) {
	   alert("Controllare l\'indizzo E-mail.\nQuello inserito non č corretto");
	   document.modulo_contatti.email_contatto.select();
	   return false;
	}
	
	if (document.modulo_contatti.richieste_contatto.value == '') {
		alert('Il campo RICHIESTE \n non puņ essere vuoto.');
		document.modulo_contatti.richieste_contatto.value='';
		document.modulo_contatti.richieste_contatto.focus();
		document.modulo_contatti.richieste_contatto.select();
		return false; }	
};
function open_win2 (my_path,w,h){
		pop_win = window.open(my_path,'pop_win','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width='+w+',height='+h+',marginwidth=0,marginheight=0');
};


function check_controllo() {
		if (document.modulo_accesso.im_username.value == '') {
			alert('Il campo USERNAME non puņ essere vuoto');
			document.modulo_accesso.im_username.value='';
			document.modulo_accesso.im_username.focus();
			document.modulo_accesso.im_username.select();
			return false; }
		if (document.modulo_accesso.im_password.value == '') {
			alert('Il campo PASSWORD non puņ essere vuoto');
			document.modulo_accesso.im_password.value='';
			document.modulo_accesso.im_password.focus();
			document.modulo_accesso.im_password.select();
			return false; }	
	};