function verifica_commenti_it()
{
	var email_match = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|int|it|eu|co.uk|biz|aero|name|coop|info|pro|museum))$/
	var onlyletters = /^[a-zA-Z.-_]+$/;

	if( document.commentform.author.value == "" )
	{
		alert ("Il campo nome non è stato riempito");
		return false;
	}
	
	else if( (document.commentform.email.value == "") || (!email_match.test(document.commentform.email.value)) )
	{
		alert ("Inserite un indirizzo email corretto\nNon temete il vostro indirizzo non sarà pubblicato!");
		return false;
	}

	else if( document.commentform.comment.value == "" )
	{
		alert ("Non hai ancora scritto nessun commento");
		return false;
	}

	else
	{
		return true;
	}
}


var popUpWin=0;
function popUpLive()
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  var x=(screen.width-300)/2;
  var y=(screen.height-300)/2;
  popUpWin = open('http://www.inliveradio.com/diretta-inlive.html', 'Streaming', 'toolbar=no,location=no,directories=no,status=no, title=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=300,left='+x+', top='+y+'');
}

function popUpLatest()
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  var x=(screen.width-300)/2;
  var y=(screen.height-200)/2;
  popUpWin = open('http://www.inliveradio.com/latest-inlive.html', 'Streaming', 'toolbar=no,location=no,directories=no,status=no, title=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=140,left='+x+', top='+y+'');
}

