function visualizzaData()
{
var days=new Array("Domenica","Luned&igrave;","Marted&igrave;","Mercoled&igrave;","Gioved&igrave;","Venerd&igrave;","Sabato");

var months=new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");

var dateObj=new Date();

var lmonth=months[dateObj.getMonth()];

var anno=dateObj.getFullYear();

var date=dateObj.getDate();

var wday=days[dateObj.getDay()];

document.write(" " + wday + " " + date + " " + lmonth + " " + anno);
}


function pop(url)
{
 var stile = "top=10, left=10, width=250, height=200, status=no, menubar=no, toolbar=no scrollbar=yes";
 window.open(url, "", stile);
 
    }


function popUP(url)
{

var w=200;
var h =150;
pw=Math.floor((screen.width-w)/2);
ph=Math.floor((screen.height-h)/2);

window.open(url,"scrollbar","width="+w+",height="+h+",top="+ph+",left="+pw);
}

function pop2UP(url)
{

var w=640;
var h =160;
pw=Math.floor((screen.width-w)/2);
ph=Math.floor((screen.height-h)/2);
window.open(url,"scrollbar","resizable=yes","width="+w+",height="+h+",top="+ph+",left="+pw);

}





function formControl(actForm)
{


 

 nomefile = actForm.nomefile.value;


if ( (nomefile == "") || (nomefile == "undefined")) {
   alert("Inserire un nome di file corretto.");
   document.R.nomefile.select();
   return false;
}

  

  
           document.R.action = "database/query2.php3";
           document.modulo.submit();
       

}


function controlloNewsLetter(actForm) {

var email = document.modulo.news.value;
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("Inserire un indirizzo email corretto.");
   document.modulo.news.focus();
   return false;
}
else {

   document.modulo.action = "http://www.main.sssup.it/database/iscrizionenews.php";
   document.modulo.submit();
}
}

function impostoTitolo(s)
{
	document.title = s;
}
