<!--

function rnd_vignetta(){

   var now = new Date();
   var sec_divide = now.getSeconds();

   rnd_number = Math.floor(sec_divide/12); // /20=0, 1, 2  /10=0, 1, 2, 3, 4, 5  etc...
if (rnd_number == 0)
   document.write('<img src="http://www.elbaexplorer.com/vignette/elba1810.jpg">');
if (rnd_number > 0)
   document.write('<img src="http://www.elbaexplorer.com/vignette/elba2006.jpg">');
}

function foto_hotel_click(src, c_click) {
    src.style.cursor = 'hand'; /*default*/
  /* window.document.location = c_click;*/
window.open("fotografieHotel.asp?foto="+c_click ,'','scrollbars=yes,width=700,height=500,top=30,left=50');
}

function m_over(src, c_over) {
    src.style.cursor = 'default'; /*hand*/
    src.bgColor = c_over;
}

function m_out(src, c_over) {
    src.style.cursor = 'default';
    src.bgColor = c_over;
}

function wait(value) 

{
if (value==0)  {
    if(document.layers)
       document.layers["layer1"].visibility='hide';
      else
       document.all["layer1"].style.visibility='hidden';
       }  
  else if (value==1)  {
   if(document.layers)
       document.layers["layer1"].visibility='show';
      else
       document.all["layer1"].style.visibility='visible';
       }
}





function rnd_image(){

   var now = new Date();


   var sec_divide = now.getSeconds();

   rnd_number = Math.floor(sec_divide/10); // /20=0, 1, 2  /10=0, 1, 2, 3, 4, 5  etc...
if (rnd_number == 0)
   document.write('<a href="http://www.miragehotel.it" target="_top"><img border="0" src="adv/mirage.gif"></a>');
if (rnd_number == 1)
   document.write('<a href="http://www.hotelacquarius.it" target="_top"><img border="0" src="adv/acquarius.gif"></a>');
if (rnd_number == 2)
   document.write('<a href="mailto:info@elbaexplorer.it?subject=Richiesta informazioni Spazio Pubblicitario" target="_top"><img border="0" src="adv/pubbl.gif"></a>');
if (rnd_number == 3)
   document.write('<a href="http://www.miragehotel.it" target="_top"><img border="0" src="adv/mirage.gif"></a>');
if (rnd_number == 4)
   document.write('<a href="http://www.hotelacquarius.it" target="_top"><img border="0" src="adv/acquarius.gif"></a>');
if (rnd_number == 5)
   document.write('<a href="mailto:info@elbaexplorer.it?subject=Richiesta informazioni Spazio Pubblicitario" target="_top"><img border="0" src="adv/pubbl.gif"></a>');

}

function rnd_image_head(){

   var now = new Date();


   var sec_divide = now.getSeconds();

   rnd_number = Math.floor(sec_divide/6); // /20=0, 1, 2  /10=0, 1, 2, 3, 4, 5  etc...
if (rnd_number == 0)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 1)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 2)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 3)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=1&i=banner" target="_top"><img border="0" src="images/7.gif"></a>');
if (rnd_number == 4)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 5)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 6)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 7)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=1&i=banner" target="_top"><img border="0" src="images/7.gif"></a>');
if (rnd_number == 8)
   document.write('<a href="hotel.asp?id=11"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 9)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');
if (rnd_number == 10)
   document.write('<a href="redir-site.asp?link=www.elbaexplorer.com/hotel.asp?id=11&i=banner" target="_top"><img border="0" src="images/4.gif"></a>');

}

function rnd_image_min(){

   var now = new Date();


   var sec_divide = now.getSeconds();

   rnd_number = Math.floor(sec_divide/2); // /20=0, 1, 2  /10=0, 1, 2, 3, 4, 5  etc...
if (rnd_number == 0)
   document.write('<img border="0" src="images/miniature/faro-panoramica.jpg">');
if (rnd_number == 1)
   document.write('<img border="0" src="images/miniature/ForteStella_Ingresso.jpg">');
if (rnd_number == 2)
   document.write('<img border="0" src="images/miniature/ForteStella_Interno.jpg">');
if (rnd_number == 3)
   document.write('<img border="0" src="images/miniature/ForteStella_Panoramica.jpg">');
if (rnd_number == 4)
   document.write('<img border="0" src="images/miniature/fortezze-medicee_finestra.jpg">');
if (rnd_number == 5)
   document.write('<img border="0" src="images/miniature/fortezze-medicee_galleria.jpg">');
if (rnd_number == 6)
   document.write('<img border="0" src="images/miniature/fortezze-medicee_interno.jpg">');
if (rnd_number == 7)
   document.write('<img border="0" src="images/miniature/Chiesa-Santo_Stefano.jpg">');
if (rnd_number == 8)
   document.write('<img border="0" src="images/miniature/linguella-panoramica3.jpg">');
if (rnd_number == 9)
   document.write('<img border="0" src="images/miniature/portaIngressoPortoferraio.jpg">');
if (rnd_number == 10)
   document.write('<img border="0" src="images/miniature/SalitaNapoleone_basso.jpg">');
if (rnd_number == 11)
   document.write('<img border="0" src="images/miniature/poggio2.jpg">');
if (rnd_number == 12)
   document.write('<img border="0" src="images/miniature/S.Andrea2.jpg">');
if (rnd_number == 13)
   document.write('<img border="0" src="images/miniature/scoglietto.jpg">');
if (rnd_number == 14)
   document.write('<img border="0" src="images/miniature/villadeimulini-facciata1.jpg">');
if (rnd_number == 15)
   document.write('<img border="0" src="images/miniature/torre-san-giovanni.jpg">');
if (rnd_number == 16)
   document.write('<img border="0" src="images/miniature/rio-marina4.jpg">');
if (rnd_number == 17)
   document.write('<img border="0" src="images/miniature/rio-elba3.jpg">');
if (rnd_number == 18)
   document.write('<img border="0" src="images/miniature/Portoferraio5.jpg">');
if (rnd_number == 19)
   document.write('<img border="0" src="images/miniature/portoazzurro_piazza.jpg">');
if (rnd_number == 20)
   document.write('<img border="0" src="images/miniature/porto.jpg">');
if (rnd_number == 21)
   document.write('<img border="0" src="images/miniature/pieve-san-giovanni.jpg">');
if (rnd_number == 22)
   document.write('<img border="0" src="images/miniature/MarcianaMarina-torre2.jpg">');
if (rnd_number == 23)
   document.write('<img border="0" src="images/miniature/lavatoio-pubblico-rio_elba-int1.jpg">');
if (rnd_number == 24)
   document.write('<img border="0" src="images/miniature/Forte-Focardo-entrata.jpg">');
if (rnd_number == 25)
   document.write('<img border="0" src="images/miniature/capoliveri1.jpg">');
if (rnd_number == 26)
   document.write('<img border="0" src="images/miniature/capoliveri_santuario-madonna-della-neve.jpg">');
if (rnd_number == 27)
   document.write('<img border="0" src="images/miniature/volterraio-veduta.jpg">');
if (rnd_number == 28)
   document.write('<img border="0" src="images/miniature/volterraio-castello3.jpg">');
if (rnd_number == 29)
   document.write('<img border="0" src="images/miniature/san-piero2.jpg">');

}

function rnd_image_sp(){

   var now = new Date();


   var sec_divide = now.getSeconds();

   rnd_number = Math.floor(sec_divide/4); // /20=0, 1, 2  /10=0, 1, 2, 3, 4, 5  etc...
if (rnd_number == 0)
   document.write('<img border="0" src="images/spiagge-bordo/sansone.gif">');
if (rnd_number == 1)
   document.write('<img border="0" src="images/spiagge-bordo/cavoli.gif">');
if (rnd_number == 2)
   document.write('<img border="0" src="images/spiagge-bordo/biodola.gif">');
if (rnd_number == 3)
   document.write('<img border="0" src="images/spiagge-bordo/fetovaia.gif">');
if (rnd_number == 4)
   document.write('<img border="0" src="images/spiagge-bordo/madonna_delle_grazie.gif">');
if (rnd_number == 5)
   document.write('<img border="0" src="images/spiagge-bordo/le_ghiaie.gif">');
if (rnd_number == 6)
   document.write('<img border="0" src="images/spiagge-bordo/lido_capoliveri.gif">');
if (rnd_number == 7)
   document.write('<img border="0" src="images/spiagge-bordo/colle_palombaia.gif">');
if (rnd_number == 8)
   document.write('<img border="0" src="images/spiagge-bordo/biodola.gif">');
if (rnd_number == 9)
   document.write('<img border="0" src="images/spiagge-bordo/zuccale.gif">');
if (rnd_number == 10)
   document.write('<img border="0" src="images/spiagge-bordo/lacona.gif">');
if (rnd_number == 11)
   document.write('<img border="0" src="images/spiagge-bordo/laconella.gif">');
if (rnd_number == 12)
   document.write('<img border="0" src="images/spiagge-bordo/seccheto.gif">');
if (rnd_number == 13)
   document.write('<img border="0" src="images/spiagge-bordo/innamorata.gif">');
if (rnd_number == 14)
   document.write('<img border="0" src="images/spiagge-bordo/procchio.gif">');

}

function rnd_image_sp2(){

   var now = new Date();


   var sec_divide = now.getSeconds();

   rnd_number = Math.floor(sec_divide/4); // /20=0, 1, 2  /10=0, 1, 2, 3, 4, 5  etc...

if (rnd_number == 0)
   document.write('<img border="0" src="images/cartoline/ed_tramonto.gif">');
if (rnd_number == 1)
   document.write('<img border="0" src="images/cartoline/ed_mix.gif">');
if (rnd_number == 2)
   document.write('<img border="0" src="images/cartoline/ed_fetovaia.gif">');
if (rnd_number == 3)
   document.write('<img border="0" src="images/cartoline/ed_lanave.gif">');
if (rnd_number == 4)
   document.write('<img border="0" src="images/cartoline/ed_sogni.gif">');
if (rnd_number == 5)
   document.write('<img border="0" src="images/cartoline/ed_enfola.gif">');
if (rnd_number == 6)
   document.write('<img border="0" src="images/cartoline/ed_collage.gif">');
if (rnd_number == 7)
   document.write('<img border="0" src="images/cartoline/ed_riflesso.gif">');
if (rnd_number == 8)
   document.write('<img border="0" src="images/cartoline/laconella.gif">');
if (rnd_number == 9)
   document.write('<img border="0" src="images/cartoline/sansone.gif">');
if (rnd_number == 10)
   document.write('<img border="0" src="images/cartoline/le_ghiaie.gif">');
if (rnd_number == 11)
   document.write('<img border="0" src="images/cartoline/seccheto.gif">');
if (rnd_number == 12)
   document.write('<img border="0" src="images/cartoline/ed_approvato.gif">');
if (rnd_number == 13)
   document.write('<img border="0" src="images/cartoline/ed_cavoli.gif">');
if (rnd_number == 14)
   document.write('<img border="0" src="images/cartoline/ed_conchiglia.gif">');

}


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

// general functions to manage rollovers

function MM_findObj(n, d) { //v3.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); return x;
}

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_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_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 MM_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else
    {  
    	if (navigator.appVersion.indexOf("5.0")==-1 && document.readyState!="complete") return;
    	innerHTML = unescape(newText);
    }
}



function NasVis()
{
	with (document)
	{
		write("<STYLE TYPE='text/css'><!--");
		if (isNetscape())
		{		
			write(".TabNas {display:block}\n");
			write(".TabVis {display:block}");
		}
		else
		{		
			write(".TabNas {display:none}\n");		
			write(".TabVis {display:block}");
		}
		write("//--></STYLE>");
	}
}

function Tab(wel) {

	if (isNetscape()) return;		
	spanObj=document.all[wel];
							
	if (spanObj.style.display=="" || spanObj.style.display==null)
	{		
		if (spanObj.outerHTML.indexOf("TabNas")!=-1) document.all[wel].style.display="block";
		if (spanObj.outerHTML.indexOf("TabVis")!=-1) document.all[wel].style.display="none";
	}
	else
	{
		if (spanObj.style.display=="block")
			document.all[wel].style.display="none";
		else
			document.all[wel].style.display="block";
	}		
}


function isNetscape() {	
	
	if (document.layers) return true; else return false;
}

NasVis();





function startSearch(){

var locat;

	searchString = document.searchForm.searchText.value;	
	if(searchString != ""){
		searchEngine = document.searchForm.whichEngine.value;
		finalSearchString = ""; 

		if(searchEngine == 5){
			finalSearchString = "http://www.altavista.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
		}
		if(searchEngine == 3){
			finalSearchString = "http://it.search.yahoo.com/search/it?p=" + searchString;
		}
		if(searchEngine == 10){
			finalSearchString = "http://www.excite.it/cerca/web/risultati?search=" + searchString + "&submit=TROVA";
	    }
		if(searchEngine == 13){
			finalSearchString = "http://www.hotbot.lycos.it/result.html?query=" + searchString + "&bool=all&z=1111121211211111211&languagefield=any&numresult_field=10&description_field=full&uk=ww&hs=s";
	    }
		if(searchEngine == 12){
			finalSearchString = "http://www.overture.com/d/search/p/go/?Partner=go_home&Keywords=" + searchString + "&Go=Search";
        }                      
		if(searchEngine == 4){
			finalSearchString = "http://www.lycos.it/cgi-bin/pursuit?matchmode=and&mtemp=main&etemp=error&query=" + searchString + "&cat=it&x=66&y=4";
		}
		if(searchEngine == 1){
			finalSearchString = "http://search.virgilio.it/search/cgi/search.cgi?db=v&ly=vs&vrs=0&qs=" + searchString + "&op=and";
		}
        if(searchEngine == 7){
			finalSearchString = "http://search.msn.it/results.asp?CY=it&FORM=MSNH&RS=CHECKED&q="+ searchString +"&v=1";
                }
        if(searchEngine == 9){
			finalSearchString = "http://www.search.com/search?channel=1&tag=st.se.fd..sch&q="+ searchString +"&submit=Search";
                } 
        if(searchEngine == 2){
			 finalSearchString = "http://www.google.it/custom?hl=it&cof=&q="+ searchString +"&btnG=Cerca+con+Google&lr=";
                }
        if(searchEngine == 11){
			finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
                }
        if(searchEngine == 8){
			finalSearchString = "http://search-arianna.iol.it/abin/newsearch.epl?startfrom=1&maxhits=10&extlist=arianna&query="+ searchString;
                }
        if(searchEngine == 6){
            finalSearchString = "http://search-dyn.tiscali.it/search.php?key="+ searchString + "&tiscalitype=web&hits=10&language=it";
                }
        if(searchEngine == 14){
			finalSearchString = "http://search.supereva.it/cgi-bin/msnsearch.cgi?q="+ searchString;
                }
        if(searchEngine == 15){
          	finalSearchString = "http://search.ke.voila.fr/S/voila?gb=site&cid=geek&ddweb=on&ddqqo=on&ddafp=on&ddthm=on&ddety=on&dth=&kw=" + searchString + "&submit=Voila+%21&lg=it";
                }
locat = finalSearchString
/*
document.write("<html>");
document.write("<head>");
document.write("<title>");
document.write("Elba Explorer");                                                                                                                                                                                    
document.write("</title>");
document.write("</head>");
document.write("<frameset rows=72,1* frameborder=NO border=0 framespacing=0 cols=*> ");
document.write("<frame name=topFrame src=Top.asp noresize scrolling=NO marginwidth=5 marginheight=5>");
document.write("<frameset cols=180,1* frameborder=NO border=0 framespacing=0 rows=*>");
document.write("<frame name=leftFrame noresize src=Left.asp marginwidth=5 marginheight=0>");
document.write("<frame name=rightFrame noresize src=" + locat + ">");
document.write("</frameset>");
document.write("</frameset>");
document.write("<noframes>");
document.write("<body bgcolor=#FFFFFF>");
document.write("</body>");
document.write("</noframes>");
document.write("</html>");
*/
window.open(locat,'','scrollbars=yes,resizable=yes,width=700,height=500,left=50,top=50,status=yes,toolbar=no')
location.href = ("http://www.elbaexplorer.com")

/*location.href = finalSearchString;*/


/*parent.rightFrame.location.href = finalSearchString;*/



	}
}


function startSearch2(){

var locat;

	searchString = document.searchForm.searchText.value;	
	if(searchString != ""){
		searchEngine = document.searchForm.whichEngine.value;
		finalSearchString = ""; 

		if(searchEngine == 5){
			finalSearchString = "http://www.altavista.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
		}
		if(searchEngine == 3){
			finalSearchString = "http://it.search.yahoo.com/search/it?p=" + searchString;
		}
		if(searchEngine == 10){
			finalSearchString = "http://www.excite.it/cerca/web/risultati?search=" + searchString + "&submit=TROVA";
	    }
		if(searchEngine == 13){
			finalSearchString = "http://www.hotbot.lycos.it/result.html?query=" + searchString + "&bool=all&z=1111121211211111211&languagefield=any&numresult_field=10&description_field=full&uk=ww&hs=s";
	    }
		if(searchEngine == 12){
			finalSearchString = "http://www.overture.com/d/search/p/go/?Partner=go_home&Keywords=" + searchString + "&Go=Search";
        }                      
		if(searchEngine == 4){
			finalSearchString = "http://www.lycos.it/cgi-bin/pursuit?matchmode=and&mtemp=main&etemp=error&query=" + searchString + "&cat=it&x=66&y=4";
		}
		if(searchEngine == 1){
			finalSearchString = "http://search.virgilio.it/search/cgi/search.cgi?db=v&ly=vs&vrs=0&qs=" + searchString + "&op=and";
		}
        if(searchEngine == 7){
			finalSearchString = "http://search.msn.it/results.asp?CY=it&FORM=MSNH&RS=CHECKED&q="+ searchString +"&v=1";
                }
        if(searchEngine == 9){
			finalSearchString = "http://www.search.com/search?channel=1&tag=st.se.fd..sch&q="+ searchString +"&submit=Search";
                } 
        if(searchEngine == 2){
			 finalSearchString = "http://www.google.it/custom?hl=it&cof=&q="+ searchString +"&btnG=Cerca+con+Google&lr=";
                }
        if(searchEngine == 11){
			finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
                }
        if(searchEngine == 8){
			finalSearchString = "http://search-arianna.iol.it/abin/newsearch.epl?startfrom=1&maxhits=10&extlist=arianna&query="+ searchString;
                }
        if(searchEngine == 6){
            finalSearchString = "http://search-dyn.tiscali.it/search.php?key="+ searchString + "&tiscalitype=web&hits=10&language=it";
                }
        if(searchEngine == 14){
			finalSearchString = "http://search.supereva.it/cgi-bin/msnsearch.cgi?q="+ searchString;
                }
        if(searchEngine == 15){
          	finalSearchString = "http://search.ke.voila.fr/S/voila?gb=site&cid=geek&ddweb=on&ddqqo=on&ddafp=on&ddthm=on&ddety=on&dth=&kw=" + searchString + "&submit=Voila+%21";
                }


/*location.href = finalSearchString;*/


parent.rightFrame.location.href = finalSearchString;



	}
}



function eventi_segnalazione()
{

  if  (document.form_eventi_segnalazione.fld_data_inizio_gg.value == "")
  {
    alert("Inserire il giorno in cui inizia l'evento");
   document.form_eventi_segnalazione.fld_data_inizio_gg.focus();
    return (false);
  }

 if  (document.form_eventi_segnalazione.fld_data_inizio_mm.value == "")
  {
    alert("Inserire il mese in cui inizia l'evento");
   document.form_eventi_segnalazione.fld_data_inizio_mm.focus();
    return (false);
  }

 if  (document.form_eventi_segnalazione.fld_comune.value == "")
  {
    alert("Inserire il comune in cui ha luogo l'evento");
   document.form_eventi_segnalazione.fld_comune.focus();
    return (false);
  }

 if  (document.form_eventi_segnalazione.fld_titolo.value == "")
  {
    alert("Inserire l'evento");
   document.form_eventi_segnalazione.fld_titolo.focus();
    return (false);
  }

 if  (document.form_eventi_segnalazione.fld_segnalatore.value == "")
  {
    alert("Inserire il nome di chi sta segnalando l'evento");
   document.form_eventi_segnalazione.fld_segnalatore.focus();
    return (false);
  }

 if  (document.form_eventi_segnalazione.fld_email.value == "")
  {
    alert("Inserire la e-mail di chi sta segnalando l'evento");
   document.form_eventi_segnalazione.fld_email.focus();
    return (false);
  }

  return (true);
}



function validate()
{
if (document.searchForm.searchText.value.length < 1) {alert ("Inserire un termine da ricercare");
 
document.searchForm.searchText.focus(); 
 return false;
}
return true;
}


function validate1()
{

if (document.frmUserData.selPref.value<1) {alert ("Selezionare un prefisso"); 
document.smsForm.prefix.focus(); 
 return false;
}
if (document.frmUserData.txtTel.value<1) {alert ("Inserire un numero"); 
document.smsForm.destination.focus(); 
 return false;
}

if (document.frmUserData.txtMsg.value<1) {alert ("Inserire un messaggio"); 
document.smsForm.message.focus(); 
 return false;
}
return true;
}

function Validation()
{

  if  (document.Form.Nome.value == "")
  {
    alert("Inserire il proprio Nome");
   document.Form.Nome.focus();
    return (false);
  }

 if  (document.Form.Luogo.value == "")
  {
    alert("Inserire il luogo");
   document.Form.Nome.focus();
    return (false);
  }

 if  (document.Form.Commenti.value == "")
  {
    alert("Inserire un annuncio");
   document.Form.Nome.focus();
    return (false);
  }

  return (true);
}

function Validation2() {

		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		
		if (document.formPass.Nome.value == "")
			{
				blnError = TRUE
				strError = strError + " - Indicare il nome dell'offerente (nome azienda)   .\n"
                
			}; 

		
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
				document.formPass.submit()
			};				
		
	}



function Validate2()
{

  if  (form.fldProfessione.value == "")
  {
    alert("Indicare che tipo di lavoro viene offerto");
   form.fldProfessione.focus();
    return (false);
  }

}


function validate3()
{
if (document.frmLogin.txtLogin.value<1) {alert ("Inserire il nome Utente"); 
document.frmLogin.txtLogin.focus(); 
 return false;
}
if (document.frmLogin.txtPassword.value<1) {alert ("Inserire la Password"); 
document.frmLogin.txtPassword.focus(); 
 return false;
}

return true;
}


function VerificaEmail()
   {
   Indir_Email = document.formEMail.fldEmail.value;
   Controllo = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
   if (Controllo.test(Indir_Email))
      return true;
   else
      {
      alert("L'indirizzo e-mail inserito non č corretto");
      document.formEMail.fldEmail.focus();
      return false;
      }
   }


function control_News() {
		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		

			
		if (document.FormNews.fldTitolo.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il Titolo\n"
			};
		if (document.FormNews.fldTesto.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il Testo\n"
			};	
	

	
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
				document.FormNews.submit()
			};				
		
	}

function new_users() {
		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		
       	if (document.FormNew_users.fldNome.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il Nome\n"
			};
			
				
		if (document.FormNew_users.fldEmail.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire l'indirizzo E-mail\n"
			};
			
		
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
				document.FormNew_users.submit()
			};				
		
	}

function new_user() {
		
	       			
        if (document.FormNew_users.fldEmail.value == "")
			 {
              alert("Indicare l'indirizzo e-mail");
                   document.FormNew_users.fldEmail.focus();
              return (false);
  }

	else
			{
				document.FormNew_users.submit()
			};		

}



function control_Card() {
		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		
       	
			
	   	if (document.FormCard.fldNome_mitt.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il nome del mittente\n"
			};	

		if (document.FormCard.fldInd_mitt.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire l'indirizzo e-mail del mittente\n"
			};
	
    	if (document.FormCard.fldNome_dest.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il nome del destinatario\n"
			};
	
    	if (document.FormCard.fldInd_dest.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire l'indirizzo e-mail del destinatario\n"
			};		
				
	if (document.FormCard.fldTesto.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il messaggio da scrivere sulla cartolina\n"
			};	
        
        if (document.FormCard.fldCaratteriColore.value == document.FormCard.fldSfondo.value)
			{
				blnError = TRUE
				strError = strError + " - Il colore dei caratteri non puņ essere uguale a quello dello sfondo\n"
			};
		
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
				document.FormCard.submit()
			};				
		
	}



function search() {

document.searchform.submit();

}

function elenco_offerte() {

document.elencoform.submit();

}

function elenco_domande() {

document.elencoform.submit();

}

function elenco_annunci() {

document.elencoform.submit();

}

function InfoHotel() {
		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		
       	if (document.infohotelform.fldrichiedente.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il proprio Nome\n"
			};
			
				
		if (document.infohotelform.fldesercizio.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il nome dell'esercizio / azienda\n"
			};
			
					
		if (document.infohotelform.fldemail.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire la propra e-mail\n"
			};
			
		
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
			document.infohotelform.submit()
			};				
		
	}


function cartoline_personalizzate_info() {
		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		
       	if (document.personalcardsform.fldnome.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il proprio Nome\n"
			};
			
				
		if (document.personalcardsform.fldemail.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire la propria e-mail\n"
			};
			
					
		if (document.personalcardsform.fldnomesito.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il nome del sito\n"
			};
			
		if (document.personalcardsform.fldurlsito.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire l'indirizzo ( url ) del sito\n"
			};
			
					
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
			document.personalcardsform.submit()
			};				
		
	}





function lemiecartoline() {
		
		var TRUE = new Boolean("True")
		var FALSE = new Boolean("False")
		
		blnError = FALSE
		strError = "ATTENZIONE! Correggere i seguenti errori: \n\n"
		
       	if (document.lemiecartolineform.fldnomeautore.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il proprio Nome\n"
			};
			
				
		if (document.lemiecartolineform.fldemailautore.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire la propria e-mail\n"
			};
			
					
		if (document.lemiecartolineform.fldnomesito.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il nome del sito\n"
			};
			
		if (document.lemiecartolineform.fldurlsito.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire l'indirizzo ( url ) del sito\n"
			};
			
					
		if (document.lemiecartolineform.fldtitolofoto.value == "")
			{
				blnError = TRUE
				strError = strError + " - Inserire il titolo della foto\n"
			};
			
		
		if (blnError == TRUE)
			{
				strError = strError + "\nE' necessario correggere gli errori e riprovare."
				alert(strError)				
			}
		else
			{
			document.lemiecartolineform.submit()
			};				
		
	}


//-->