function pirobutirro(theForm)
{

  
  if (theForm.e_mail.value == "")
  {
    alert("Inserire un indirizzo email valido");
    theForm.e_mail.focus();
    return (false);
  }
if ((theForm.e_mail.value.indexOf("@") == -1)||(theForm.e_mail.value.indexOf(".") == -1))
  {
    alert("Inserire un indirizzo email valido");
    theForm.e_mail.focus();
    return (false);
  }
{

  if (theForm.Nome.value == "")
  {
    alert("Per favore riempire il campo \"Nome e Cognome\"");
    theForm.Nome.focus();
    return (false);
  }



}
}

<!--//


function mOvr(src,clrOver) {
 if (!src.contains(event.fromElement)) {
	 src.style.cursor = 'hand';
	 src.bgColor = clrOver;
	}
 }
 function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	 src.style.cursor = 'default';
	 src.bgColor = clrIn;
	}
 }
 function mClk(src) {
 if(event.srcElement.tagName=='TD')
	 src.children.tags('A')[0].click();
 }

function cleartext(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}




function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function privacy()
{window.open('privacy.htm','mod','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=380,height=360,left=0,top=0')}

function webleg(){
var popurl=""
winpops=window.open(popurl,"hyperdict","width=640,height=,scrollbars,toolbar,menubar,resizable368,top=0,left=0")}

function contatti()
{window.open('contatti.htm','mod','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=380,height=370,left=0,top=0')}

function segnala()
{window.open('segnala.htm','mod','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=380,height=290,left=0,top=0')}
//-->
function webole(){
var popurl=""
winpops=window.open(popurl,"hyperdict","width=640,height=368,scrollbars,toolbar,status,location,menubar,resizable,top=0,left=0")}
function news()
{window.open('newsletter/newsletter_st.htm','news','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=370,height=200,left=200,top=100')}
function privacy()
{window.open('privacy.htm','mod','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=380,height=360,left=0,top=0')}

function eventi()
{window.open('map_eventi.htm','mod','menubars=1,toolbars=0,location=no,scrollbars=1,resizable=1,width=565,height=892,left=0,top=0')}

function webleg(){
var popurl=""
winpops=window.open(popurl,"hyperdict","width=640,height=368,scrollbars,toolbar,menubar,resizable,top=0,left=0")}

/*mappa google leg c.so verdi*/
function doveleg()
{window.open('http://www.leg.it/antiqua/api_map.htm','mod','width=615,height=415,top=0,left=0')}

/*mappa google aeroporto-c.so verdi*/
function aero()
{window.open('http://maps.google.it/maps?daddr=Corso+Giuseppe+Verdi,+67,+34170+Gorizia+GO+%4045.945008,13.621793&saddr=Via+Aquileia+46,+Ronchi+Dei+Legionari&f=li&hl=it&dq=%22corso+verdi+67,+gorizia%22&sll=45.945003,13.621802&sspn=0.015577,0.043259&cid=&om=0','mod','width=640,height=368,scrollbars,toolbar,status,menubar,resizable,top=0,left=0')}

/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]='<a href="http://www.javascriptkit.com"><IMG src="img/spear.gif" border=0></a><br />NOVITA LEG'
pausecontent[1]='<a href="http://www.codingforums.com">Coding Forums</a><br />Web coding and development forums.'
pausecontent[2]='<a href="http://www.cssdrive.com" target="_new">CSS Drive</a><br />Categorized CSS gallery and examples.'

var pausecontent2=new Array()
pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'
/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
this.tickerdiv.onmouseover=function(){scrollerinstance.mouseoverBol=1}
this.tickerdiv.onmouseout=function(){scrollerinstance.mouseoverBol=0}
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
/* apri galleria leg -------------------------------------------------- */

function est()
{window.open('img/leg/legout.jpg','ipsie','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=600,height=630,left=0,top=0')}

function ant()
{window.open('img/leg/librantiquaria4.jpg','ipsie','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=700,height=468,left=0,top=0')}

function ant1()
{window.open('img/leg/salalibristampe2.jpg','ipsie','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=700,height=467,left=0,top=0')}

function mod()
{window.open('img/leg/salastoria1.jpg','ipsie','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=700,height=467,left=0,top=0')}

function meteo()
{window.open('http://www.osmer.fvg.it/','ipsie','menubars=1,toolbars=1,location=1,scrollbars=1,resizable=1,width=700,height=467,left=0,top=0')}

/* menu pie pag -------------------------------------------------- */

function getMouseXY(e) // works on IE6,FF,Moz,Opera7
{ 
  if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event)

  if (e)
  { 
    if (e.pageY)
    { // this doesn't work on IE6!! (works on FF,Moz,Opera7)
      mousey = e.pageY;
      algor = '[e.pageX]';
      if (e.clientX || e.clientY) algor += ' [e.clientX] '
    }
    else if (e.clientY)
    { // works on IE6,FF,Moz,Opera7
if ( document.documentElement && document.documentElement.scrollTop )	
	{
      mousey = e.clientY + document.documentElement.scrollTop;
	}
	
	else
	{
      mousey = e.clientY + document.body.scrollTop;
	}
      algor = '[e.clientX]';
      if (e.pageX || e.pageY) algor += ' [e.pageX] '
    }
  }
}

var menu_firefox_flicker = false ;


var mousey = 0

function MenuDisplay(l_element)
	{
	getMouseXY()
	if ( ! menu_firefox_flicker )
		{
		l_element.childNodes[1].style.display = 'block' ;
		if ( mousey > 600 )
			{
			l_element.childNodes[1].style.left = '0px' ;
			l_element.childNodes[1].style.display = 'block' ;
			l_element.childNodes[1].style.top = - l_element.childNodes[1].offsetHeight + 'px' ;
			}
		}
	else if ( mousey > 600 )
		{
		l_element.childNodes[1].style.top = - l_element.childNodes[1].offsetHeight + 'px' ;
		}
	}
	
function MenuHide(l_element)
	{
	if ( ! menu_firefox_flicker )
		{
		l_element.childNodes[1].style.display = 'none'
		}
	}

