<!--
function checkMail(InputData){
Mail = document.form1[InputData].value;
var mailRet = false;
	Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
  	if (Filtro.test(Mail)){
	mailRet = true;}
return mailRet;}
function checkInputData(InputName){
strData = document.form1[InputName].value;
strData.test = /\w/;
if (strData != false || strData != ""){
bTrue = true;
}
else{
bTrue = false;
}
return bTrue;}
function sendFnc(){
strName = document.form1.txtName.value;
strLastName = document.form1.txtLastName.value;
strEmail = document.form1.txtEmail.value;
strText = document.form1.txMsg.value;
strPrivacy = document.form1.PRIVACY_FLAG_[0].checked;
if (strName != ""){
if (strLastName != ""){
if (strEmail != ""){
if (checkMail('txtEmail') == true){
if (strText != ""){
if (strPrivacy == true){
document.form1.HdnFnc.value = 4;
document.form1.submit();
}
}
else{
document.form1.txMsg.focus();
}
}
else{
document.form1.txtEmail.value="@";
document.form1.txtEmail.focus();
}
}
else{
document.form1.txtEmail.focus();
}
}
else{
document.form1.txtLastName.focus();
}
}
else{
document.form1.txtName.focus();
}
}
function keyControl(){
	if( (event.keyCode < 48) || (event.keyCode > 57 ) ){
		event.keyCode = "".charCodeAt(0);
	}
}
function newWindow(link){
var bookWindow,windowh,windoww;
windowh = 500;
windoww = 500;
width = (screen.width - 500)/2;
height = (screen.height - 500)/2;
bookWindow = window.open(link,'new1','width='+windoww+',height='+windowh+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,screenX='+width+',screenY='+height+',top='+height+',left='+width+'');
	if (bookWindow.open){
	bookWindow.close
	}
bookWindow.focus();
}
function setPage(pagina){
document.form1.setpage.value = pagina;
document.form1.submit();
}




function apri(url) {
newin = window.open(url,'titolo','scrollbars=no,resizable=yes, width=450,height=600,left=0,top=0,status=no,location=no,toolbar=no');
}
//-->



