xGap=(navigator.appName == "Netscape")?11:9;
yGap=(navigator.appName == "Netscape")?31:29;

function popFooter(quale){
	var xCrd=(screen.availWidth-684-xGap)/2;
	var yCrd=(screen.availHeight-543-yGap)/2; 
	windowFeatures = 'width=684,height=543,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('../popup_footer/pop_'+quale+'.php', 'footer', windowFeatures);
	
}

function giocoMissioneCuccioliBricks(){
	var xCrd=(screen.availWidth-820-xGap)/2;
	var yCrd=(screen.availHeight-670-yGap)/2; 
	windowFeatures = 'width=820,height=670,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('http://www.focusjunior.it/comportamento_cani/index.html', 'footer', windowFeatures);
}
function giocoMissioneCuccioliPuzzle(){
	var xCrd=(screen.availWidth-620-xGap)/2;
	var yCrd=(screen.availHeight-440-yGap)/2; 
	windowFeatures = 'width=620,height=440,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('http://www.legadelcane.org/giochi-gadget/puzzle.html', 'footer', windowFeatures);
}


	function validateForm(){
			
			var email = document.registrazione.email.value;

			if ((email == "") || (email == "undefined")) {
				alert("Per iscriverti alla newsletter devi inserire il tuo indirizzo Email");
				document.registrazione.email.focus();
				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(email) || (email == "") || (email == "undefined"))
			{
				alert("Ti chiediamo di inserire un indirizzo Email valido.");
				document.registrazione.email.select();
				return false;
			}
			
			
			
			
		}
	
