<!--
function DisplayMail(Server, Login, Display)
{
if((Display.length == 0) || (Display.indexOf('@')+1))
{
document.write("<a class='m2' href=" + " 'mai" + "lto:" + Login + "@" + Server + "'>" +Login+ "@" +Server+ "</a>");}
else 
{
document.write("<a class='m2' href=" + " 'mai" + "lto:" + Login + "@" + Server +"'><img border='0' src='sardaigne_bed_and_breakfast_alghero/mailer.gif' width='34' height='21'>" +Display+ "</a>");}
}
//----------------------------funzione che serve per effettuare lo slideshow delle foto
function show(nome_immagine,percorso_immagine)
{
document.images[nome_immagine].src = percorso_immagine;
}
//-----------------------------precarica le immagini della mappa
var imagenames=new Array( 'B&Bs_Alghero_Bed_and_breakfasts_Alghero/capocaccia.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/escala_del_cabirol.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/falesie.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foradada.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/nettuno1.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/piscina_in_notturna.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/porto_conte.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/solarium.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/villa_grazia1.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/villa_grazia2.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/villa_grazia3.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/porto_cervo.jpg',
                          
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto1.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto2.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto3.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto4.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto5.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto6.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto7.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto8.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto9.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto10.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto11.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto12.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto13.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto14.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto15.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto16.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto17.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto18.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto19.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto20.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto21.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto22.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto23.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto24.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto28.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto29.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto30.jpg',
                          'B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto31.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto32.jpg','B&Bs_Alghero_Bed_and_breakfasts_Alghero/foto33.jpg');

var yposition=185;             // POSITION OF LOAD BAR FROM TOP OF WINDOW, IN PIXELS
var loadedcolor='#EAC535' ;    // PROGRESS BAR COLOR
var unloadedcolor='#FFFFCC';   // BGCOLOR OF UNLOADED AREA
var barheight=15;              // HEIGHT OF PROGRESS BAR IN PIXELS (MIN 25)
var barwidth=200;              // WIDTH OF THE BAR IN PIXELS  
var bordercolor='#EAC535';     // COLOR OF THE BORDER


var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false;
var IE4 = (document.all)? true : false;
var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var imagesdone=false;
var blocksize=barwidth/(imagenames.length);
barheight=Math.max(barheight,25);
var loaded=0, perouter, perdone, images=new Array();
var txt=(NS4)?'<layer name="perouter" bgcolor="'+bordercolor+'" visibility="hide">' : '<div id="perouter" style="position:absolute; visibility:hidden; background-color:'+bordercolor+'">';
txt+='<table cellpadding="0" cellspacing="1" border="0"><tr><td width="'+barwidth+'" height="'+barheight+'" valign="center">';
if(NS4)txt+='<ilayer width="100%" height="100%"><layer width="100%" height="100%" bgcolor="'+unloadedcolor+'" top="0" left="0">';
txt+='<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" width="'+barwidth+'" height="'+barheight+'" bgcolor="'+unloadedcolor+'"><center><font color="'+loadedcolor+'" size="2" face="sans-serif">Upload the pictures house...</font></center></td></tr></table>';
if(NS4) txt+='</layer>';
txt+=(NS4)? '<layer name="perdone" width="100%" height="'+barheight+'" bgcolor="'+loadedcolor+'" top="0" left="0">' : '<div id="perdone" style="position:absolute; top:1px; left:1px; width:'+barwidth+'px; height:'+barheight+'px; background-color:'+loadedcolor+'; z-index:100">';
txt+='<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" width="'+barwidth+'" height="'+barheight+'" bgcolor="'+loadedcolor+'"><center><font color="'+unloadedcolor+'" size="2" face="sans-serif">Upload the pictures house...</font></center></td></tr></table>';
txt+=(NS4)? '</layer></ilayer>' : '</div>';
txt+='</td></tr></table>';
txt+=(NS4)?'</layer>' : '</div>';
document.write(txt);
function loadimages(){
if(NS4){
perouter=document.perouter;
perdone=document.perouter.document.layers[0].document.perdone;
}
if(NS6){
perouter=document.getElementById('perouter');
perdone=document.getElementById('perdone');
}
if(IE4){
perouter=document.all.perouter;
perdone=document.all.perdone;
}
cliplayer(perdone,0,0,barheight,0);
window.onresize=setouterpos;
setouterpos();
for(n=0;n<imagenames.length;n++){
images[n]=new Image();
images[n].src=imagenames[n];
setTimeout('checkload('+n+')' ,n*100);
}}
function setouterpos(){
var ww=(IE4)? document.body.clientWidth : window.innerWidth;
var x=(ww-barwidth)/2;
if(NS4){
perouter.moveTo(x,yposition);
perouter.visibility="show";
}
if(IE4||NS6){
perouter.style.left=x+'px';
perouter.style.top=yposition+'px';
perouter.style.visibility="visible";
}}
function dispbars(){
loaded++;
cliplayer(perdone, 0, blocksize*loaded, barheight, 0);
if(loaded>=imagenames.length)setTimeout('hideperouter()', 800);
}
function checkload(index){
(images[index].complete)? dispbars() : setTimeout('checkload('+index+')', 100);
}
function hideperouter(){
(NS4)? perouter.visibility="hide" : perouter.style.visibility="hidden";
imagesdone=true;
}
function cliplayer(layer, ct, cr, cb, cl){
if(NS4){
layer.clip.left=cl;
layer.clip.top=ct;
layer.clip.right=cr;
layer.clip.bottom=cb;
}
if(IE4||NS6)layer.style.clip='rect('+ct+' '+cr+' '+cb+' '+cl+')';
}
window.onload=loadimages;
//----------script style-----------//
var ua = navigator.userAgent
var ps = navigator.productSub 
var dom = (document.getElementById)? 1:0
var ie4 = (document.all&&!dom)? 1:0
var ie5 = (document.all&&dom)? 1:0
var nn4 =(navigator.appName.toLowerCase() == "netscape" && parseInt(navigator.appVersion) == 4)
var nn6 = (dom&&!ie5)? 1:0
var sNav = (nn4||nn6||ie4||ie5)? 1:0
var cssFilters = ((ua.indexOf("MSIE 5.5")>=0||ua.indexOf("MSIE 6")>=0)&&ua.indexOf("Opera")<0)? 1:0
var Style=[],Text=[],Count=0,sbw=0,move=0,hs="",mx,my,scl,sct,ww,wh,obj,sl,st,ih,iw,vl,hl,sv,evlh,evlw,tbody
var HideTip = "eval(obj+sv+hl+';'+obj+sl+'=0;'+obj+st+'=-800')"
var doc_root = ((ie5&&ua.indexOf("Opera")<0||ie4)&&document.compatMode=="CSS1Compat")? "document.documentElement":"document.body"
var PX = (nn6)? "px" :"" 

if(sNav) {
	window.onresize = ReloadTip
	document.onmousemove = MoveTip
	if(nn4) document.captureEvents(Event.MOUSEMOVE) 
}	
if(nn4||nn6) {
	mx = "e.pageX"
	my = "e.pageY"
	scl = "window.pageXOffset"
	sct = "window.pageYOffset"	
	if(nn4) {
		obj = "document.TipLayer."
		sl = "left"
		st = "top"
		ih = "clip.height"
		iw = "clip.width"
		vl = "'show'"
		hl = "'hide'"
		sv = "visibility="
	}
	else obj = "document.getElementById('TipLayer')."
} 
if(ie4||ie5) {
	obj = "TipLayer."
	mx = "event.x"
	my = "event.y"
	scl = "eval(doc_root).scrollLeft"
	sct = "eval(doc_root).scrollTop"
	if(ie5) {
		mx = mx+"+"+scl 
		my = my+"+"+sct
	}
}
if(ie4||dom){
	sl = "style.left"
	st = "style.top"
	ih = "offsetHeight"
	iw = "offsetWidth"
	vl = "'visible'"
	hl = "'hidden'"
	sv = "style.visibility="
}
if(ie4||ie5||ps>=20020823) {
	ww = "eval(doc_root).clientWidth"
	wh = "eval(doc_root).clientHeight"
}	 
else { 
	ww = "window.innerWidth"
	wh = "window.innerHeight"
	evlh = eval(wh)
	evlw = eval(ww)
	sbw=15
}	

function applyCssFilter(){
	if(cssFilters&&FiltersEnabled) { 
		var dx = " progid:DXImageTransform.Microsoft."
		TipLayer.style.filter = "revealTrans()"+dx+"Fade(Overlap=1.00 enabled=0)"+dx+"Inset(enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=in enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=out enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=in enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=out enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=in enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=out enabled=0)"+dx+"Iris(irisstyle=STAR,motion=in enabled=0)"+dx+"Iris(irisstyle=STAR,motion=out enabled=0)"+dx+"RadialWipe(wipestyle=CLOCK enabled=0)"+dx+"RadialWipe(wipestyle=WEDGE enabled=0)"+dx+"RadialWipe(wipestyle=RADIAL enabled=0)"+dx+"Pixelate(MaxSquare=35,enabled=0)"+dx+"Slide(slidestyle=HIDE,Bands=25 enabled=0)"+dx+"Slide(slidestyle=PUSH,Bands=25 enabled=0)"+dx+"Slide(slidestyle=SWAP,Bands=25 enabled=0)"+dx+"Spiral(GridSizeX=16,GridSizeY=16 enabled=0)"+dx+"Stretch(stretchstyle=HIDE enabled=0)"+dx+"Stretch(stretchstyle=PUSH enabled=0)"+dx+"Stretch(stretchstyle=SPIN enabled=0)"+dx+"Wheel(spokes=16 enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=reverse enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=reverse enabled=0)"+dx+"Zigzag(GridSizeX=8,GridSizeY=8 enabled=0)"+dx+"Alpha(enabled=0)"+dx+"Dropshadow(OffX=3,OffY=3,Positive=true,enabled=0)"+dx+"Shadow(strength=3,direction=135,enabled=0)"
	}
}

function stm(t,s) {
  if(sNav) {
  	if(t.length<2||s.length<25) {
		var ErrorNotice = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n"
		if(t.length<2&&s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 25 entries in every Style Array even though empty and 2 in every Text Array. You defined only "+s.length+" entries in the Style Array and "+t.length+" entry in the Text Array. This tip won't be viewed to avoid errors")
		else if(t.length<2) alert(ErrorNotice+"It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only "+t.length+" entry. This tip won't be viewed to avoid errors.")
		else if(s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 25 entries in every Style Array even though empty. You defined only "+s.length+" entries. This tip won't be viewed to avoid errors.")
 	}
  	else {
		var ab = "" ;var ap = ""
		var titCol = (s[0])? "COLOR='"+s[0]+"'" : ""
		var txtCol = (s[1])? "COLOR='"+s[1]+"'" : ""
		var titBgCol = (s[2])? "BGCOLOR='"+s[2]+"'" : ""
		var txtBgCol = (s[3])? "BGCOLOR='"+s[3]+"'" : ""
		var titBgImg = (s[4])? "BACKGROUND='"+s[4]+"'" : ""	
		var txtBgImg = (s[5])? "BACKGROUND='"+s[5]+"'" : ""
		var titTxtAli = (s[6] && s[6].toLowerCase()!="left")? "ALIGN='"+s[6]+"'" : ""
		var txtTxtAli = (s[7] && s[7].toLowerCase()!="left")? "ALIGN='"+s[7]+"'" : ""   
		var add_height = (s[15])? "HEIGHT='"+s[15]+"'" : ""
		if(!s[8])  s[8] = "Verdana,Arial,Helvetica"
		if(!s[9])  s[9] = "Verdana,Arial,Helvetica"					
		if(!s[12]) s[12] = 1
		if(!s[13]) s[13] = 1
		if(!s[14]) s[14] = 200
		if(!s[16]) s[16] = 0
		if(!s[17]) s[17] = 0
		if(!s[18]) s[18] = 10
		if(!s[19]) s[19] = 10
		hs = s[11].toLowerCase() 
		if(ps==20001108){
		if(s[2]) ab="STYLE='border:"+s[16]+"px solid"+" "+s[2]+"'"
		ap="STYLE='padding:"+s[17]+"px "+s[17]+"px "+s[17]+"px "+s[17]+"px'"}
		var closeLink=(hs=="sticky")? "<TD ALIGN='right'><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"'><A HREF='javascript:void(0)' ONCLICK='stickyhide()' STYLE='text-decoration:none;color:"+s[0]+"'><B>X</B></A></FONT></TD>":""
		var title=(t[0]||hs=="sticky")? "<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR><TD "+titTxtAli+"><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"' "+titCol+"><B>"+t[0]+"</B></FONT></TD>"+closeLink+"</TR></TABLE>" : ""
		var txt="<TABLE "+titBgImg+" "+ab+" WIDTH='"+s[14]+"' BORDER='0' CELLPADDING='"+s[16]+"' CELLSPACING='0' "+titBgCol+" ><TR><TD>"+title+"<TABLE WIDTH='100%' "+add_height+" BORDER='0' CELLPADDING='"+s[17]+"' CELLSPACING='0' "+txtBgCol+" "+txtBgImg+"><TR><TD "+txtTxtAli+" "+ap+" VALIGN='top'><FONT SIZE='"+s[13]+"' FACE='"+s[9]+"' "+txtCol +">"+t[1]+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
		if(nn4) {
			with(eval(obj+"document")) {
				open()
				write(txt)
				close()
			}
		}
		else eval(obj+"innerHTML=txt")
		tbody = {
			Pos:s[10].toLowerCase(), 
			Xpos:s[18],
			Ypos:s[19], 
			Transition:s[20],
			Duration:s[21], 
			Alpha:s[22],
			ShadowType:s[23].toLowerCase(),
			ShadowColor:s[24],
			Width:parseInt(eval(obj+iw)+3+sbw)
		}
		if(ie4) { 
			TipLayer.style.width = s[14]
	 		tbody.Width = s[14]
		}
		Count=0	
		move=1
 	 }
  }
}

function MoveTip(e) {
	if(move) {
		var X,Y,MouseX = eval(mx),MouseY = eval(my); tbody.Height = parseInt(eval(obj+ih)+3)
		tbody.wiw = parseInt(eval(ww+"+"+scl)); tbody.wih = parseInt(eval(wh+"+"+sct))
		switch(tbody.Pos) {
			case "left" : X=MouseX-tbody.Width-tbody.Xpos; Y=MouseY+tbody.Ypos; break
			case "center": X=MouseX-(tbody.Width/2); Y=MouseY+tbody.Ypos; break
			case "float": X=tbody.Xpos+eval(scl); Y=tbody.Ypos+eval(sct); break	
			case "fixed": X=tbody.Xpos; Y=tbody.Ypos; break		
			default: X=MouseX+tbody.Xpos; Y=MouseY+tbody.Ypos
		}

		if(tbody.wiw<tbody.Width+X) X = tbody.wiw-tbody.Width
		if(tbody.wih<tbody.Height+Y+sbw) {
			if(tbody.Pos=="float"||tbody.Pos=="fixed") Y = tbody.wih-tbody.Height-sbw
			else Y = MouseY-tbody.Height
		}
		if(X<0) X=0 
		eval(obj+sl+"=X+PX;"+obj+st+"=Y+PX")
		ViewTip()
	}
}

function ViewTip() {
  	Count++
	if(Count == 1) {
		if(cssFilters&&FiltersEnabled) {	
			for(Index=28; Index<31; Index++) { TipLayer.filters[Index].enabled = 0 }
			for(s=0; s<28; s++) { if(TipLayer.filters[s].status == 2) TipLayer.filters[s].stop() }
			if(tbody.Transition == 51) tbody.Transition = parseInt(Math.random()*50)
			var applyTrans = (tbody.Transition>-1&&tbody.Transition<24&&tbody.Duration>0)? 1:0
			var advFilters = (tbody.Transition>23&&tbody.Transition<51&&tbody.Duration>0)? 1:0
			var which = (applyTrans)?0:(advFilters)? tbody.Transition-23:0 
			if(tbody.Alpha>0&&tbody.Alpha<100) {
	  			TipLayer.filters[28].enabled = 1
	  			TipLayer.filters[28].opacity = tbody.Alpha
			}
			if(tbody.ShadowColor&&tbody.ShadowType == "simple") {
	  			TipLayer.filters[29].enabled = 1
	  			TipLayer.filters[29].color = tbody.ShadowColor
			}
			else if(tbody.ShadowColor&&tbody.ShadowType == "complex") {
	  			TipLayer.filters[30].enabled = 1
	  			TipLayer.filters[30].color = tbody.ShadowColor
			}
			if(applyTrans||advFilters) {
				eval(obj+sv+hl)
	  			if(applyTrans) TipLayer.filters[0].transition = tbody.Transition
	  			TipLayer.filters[which].duration = tbody.Duration 
	  			TipLayer.filters[which].apply()
			}
		}
 		eval(obj+sv+vl)
		if(cssFilters&&FiltersEnabled&&(applyTrans||advFilters)) TipLayer.filters[which].play()
		if(hs == "sticky") move=0
  	}
}

function stickyhide() {
	eval(HideTip)
}

function ReloadTip() {
	 if(nn4&&(evlw!=eval(ww)||evlh!=eval(wh))) location.reload()
	 else if(hs == "sticky") eval(HideTip)
}

function htm() {
	if(sNav) {
		if(hs!="keep") {
			move=0; 
			if(hs!="sticky") eval(HideTip)
		}	
	} 
}
//----------------------------------link utili--------------------
function link_utili()
{      
      document.write("<div id=bloccobox style='display:none'>");
      document.write("<p class='box'>");
      document.write("<span class='sardaigne_bed_and_breakfast_alghero'>Les avions...</span><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.ryanair.com' target='_blank'>&#187 Ryanair</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.germanwings.com' target='_blank'>&#187 Germanwings</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.airberlin.com' target='_blank'>&#187 Air Berlin</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.hlx.com' target='_blank'>&#187 Hlx</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.alitalia.it' target='_blank'>&#187 Alitalia</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.meridiana.it' target='_blank'>&#187 Meridiana </a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.flyairone.it' target='_blank'>&#187 Air One</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.aireurope.it' target='_blank'>&#187 Aireurope</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.volare-airlines.com' target='_blank'>&#187 Volare</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.airdolomiti.it' target='_blank'>&#187 Airdolomiti</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.alpieagles.com' target='_blank'>&#187 Alpieagles</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.easyjet.com' target='_blank'>&#187 Easyjet</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.iberia.it' target='_blank'>&#187 Iberia</a><br>");      
      document.write("<br><span class='sardaigne_bed_and_breakfast_alghero'>Les bateaux...</span><br>")
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.tirrenia.it' target='_blank'>&#187 Tirrenia</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.mobylines.it' target='_blank'>&#187 Moby Lines</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.gnv.it' target='_blank'>&#187 Grimaldi</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.corsicaferries.com' target='_blank'>&#187 Corsica ferries</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.sardiniaferries.com' target='_blank'>&#187 Sardinia ferries</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.lineadeigolfi.it' target='_blank'>&#187 Linea dei golfi</a><br>");
      document.write("<br><span class='sardaigne_bed_and_breakfast_alghero'>Location de voitures...</span><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.autonoleggiosardinya.it' target='_blank'>Autonoleggiosardinya</a><br>");
      document.write("<br><span class='sardaigne_bed_and_breakfast_alghero'>Les treins...</span><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.trenitalia.com' target='_blank'>&#187 Trenitalia</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.ferroviesardegna.it' target='_blank'>&#187 Ferr.Sardegna</a><br>");
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.ferroviemeridionalisarde.it' target='_blank'>&#187 Ferr.Mer.Sarde</a><br>");
      document.write("<br><span class='sardaigne_bed_and_breakfast_alghero'>Les Autobus...</span><br>");      
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.arst.sardegna.it' target='_blank'>&#187 Arst</a><br>"); 
      document.write("<a class='Sardaigne_B_and_B_Alghero_Sardaigne_Bed_and_breakfast_Alghero' href='http://www.turmotravel.it' target='_blank'>&#187 Turmotravel</a><br>");     
      document.write("</p>");
      document.write("</div>");

}
//----------------------------------bloccobox menù-----------------
function toggle(id){
   if (document.all){
     if(document.all[id].style.display == 'none'){
       document.all[id].style.display = '';
     } else {
       document.all[id].style.display = 'none';
     }
  return false;
   } else if (document.getElementById){
     if(document.getElementById(id).style.display == 'none'){
       document.getElementById(id).style.display = 'block';
     } else {
       document.getElementById(id).style.display = 'none';
     }
  return false;
   }
 }
 //------------------------------blocco form invio email-----------------
function formemail()
{
document.write("<div id='bloccoform' style='display:none'>");
document.write("<form method='POST' name='modulo' action='formmail.php'>");
document.write("<INPUT TYPE='hidden' NAME='Richiesta informazioni inviata dal sito' VALUE='www.sardegna-bed-and-breakfast-alghero.com'>");
document.write("<table border='0' cellpadding='0' cellspacing='0' style='border: 3px solid #EAC535' width='430'>");
document.write("<tr>");
document.write("<td width='430' style='background-color: #F9F49F' colspan='2'><h3 align='center'><font color='#B77E03'>Information et réservations</font></h3></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='430' style='background-color: #F9F49F' colspan='2'><div align='right'><font color='#FF3300'>*  voix obligatoires</font></div></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Prénom et Nom:*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='NOME' onkeypress='return SoloLettere(event);' size='38' maxlength='50' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Votre Ville:</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='CITTA' onkeypress='return SoloLettere(event);' size='38' maxlength='50' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Votre Email:*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='EMAIL' size='38' maxlength='50' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Répéter Email:*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='CONFERMA' size='38' maxlength='50' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Votre téléphone:</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='TELEFONO' onkeypress='return SoloNumeri(event);' size='20' maxlength='20' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'><font color='#B77E03'> nnn/nnn </font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Date d'arrivée :*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='DATA_ARRIVO' onkeypress='return SoloNumeri(event);' size='10' maxlength='10' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'><font color='#B77E03'> jj/mm/aaaa </font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Date de départ:*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='DATA_PARTENZA' onkeypress='return SoloNumeri(event);' size='10' maxlength='10' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'><font color='#B77E03'> jj/mm/aaaa </font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Nombre Personnes:*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='NUMERO_PERSONE' onkeypress='return SoloNumeri(event);' size='2' maxlength='2' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'><font color='#B77E03'> n - nn</font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Âge Personnes:*</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='text' name='ETA_PERSONE' onkeypress='return SoloNumeri(event);' size='29' maxlength='29' onDragStart='return false' onSelectStart='return false' onContextMenu='return false'><font color='#B77E03'> nn/nn/nn </font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'><p>Message:</p></td>");
document.write("<td width='280' style='background-color: #F9F49F'><textarea rows='10' name='MESSAGGIO' cols='32'></textarea></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='150' style='background-color: #F9F49F'></td>");
document.write("<td width='280' style='background-color: #F9F49F'><input type='button' value='Send' onClick='Modulo();'> <input type='reset' value='Clear'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='430' style='background-color: #F9F49F' colspan='2'>");
document.write("<br>");
document.write("<span class='chambre_d_hote_alghero_chambres_d_hotes_alghero'>Ouverte du mois d'avril à octobre</span><br>"); 
document.write("<span class='sardaigne_bed_and_breakfast_alghero'>Pour renseignements et réservation écrivez:</span><br>");
document.write("<span class='chambre_d_hote_alghero_chambres_d_hotes_alghero'>Villa Grazia C.P. 304 I-07041 Alghero (SS) - Sardegna</span><br>"); 
document.write("<span class='sardaigne_bed_and_breakfast_alghero'>Ou téléphonez dans la maison:</span>");
document.write("<span class='chambre_d_hote_alghero_chambres_d_hotes_alghero'>+39 079.980.276</span><br>");
document.write("<span class='sardaigne_bed_and_breakfast_alghero'>Fax:</span>");
document.write("<span class='chambre_d_hote_alghero_chambres_d_hotes_alghero'>+39 079.980.276</span><br>");
document.write("<span class='sardaigne_bed_and_breakfast_alghero'>Mobile:</span>");
document.write("<span class='chambre_d_hote_alghero_chambres_d_hotes_alghero'>+39 338.572.1188</span><br>");
document.write("<span class='sardaigne_bed_and_breakfast_alghero'>Email:</span>");
document.write("<script language=\"Javascript\">DisplayMail('email.it',' villagrazia.alghero','');</script>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</form>");
document.write("</div>");
}
//------------------------------funzione controllo input form-----------------------
function Modulo(){

    var now = new Date();
	var giorno = now.getDate();
	var mese = now.getMonth() + 1;
	var anno = now.getFullYear();
	var annoprossimo = anno+1;

	if(giorno<10) giorno = "0"+giorno; //aggiunge lo 0 ai giorni che possono essere scritti con un solo numero
	if(mese<10) mese = "0"+mese; //aggiunge lo 0 ai mesi che possono essere scritti con un solo numero
    var DATA_ODIERNA = giorno + "/" + mese + "/" + anno + " ";
    //document.write(DATA_ODIERNA);

  var EMAIL = document.modulo.EMAIL.value; 
  var email_reg_exp = /^([a-zA-Z0-9_\.\-]{2,})+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
  
  var ETAPERSONE = document.modulo.ETA_PERSONE.value;
  
  var ETAPERSONE1_reg_exp = /^([0-9]{2,2})$/;
  var ETAPERSONE2_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE3_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE4_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE5_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE6_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE7_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE8_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE9_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;
  var ETAPERSONE10_reg_exp = /^([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})+\/([0-9]{2,2})$/;


        if ((document.modulo.NOME.value == "") || (document.modulo.NOME.value == "undefined")) {
           alert("Insérer votre nome et prénom");
           document.modulo.NOME.focus();
           return false;
        }
        else if (!email_reg_exp.test(EMAIL) || (EMAIL == "") || (EMAIL == "undefined")) {
           alert("Insérer une adresse email valide");
           document.modulo.EMAIL.value = "";
           document.modulo.EMAIL.select();
           document.modulo.EMAIL.focus();
           return false;
        }
        else if ((document.modulo.CONFERMA.value == "") || (document.modulo.CONFERMA.value == "undefined")) {
           alert("L'adresse email de champ Répéter Email est obligatoire.");
           document.modulo.CONFERMA.focus();
           return false;
        }
        else if (document.modulo.EMAIL.value != document.modulo.CONFERMA.value) {
           alert("L'adresse email confirmée n’est pas celle choisie, vérifier");
           document.modulo.CONFERMA.value = "";
           document.modulo.CONFERMA.focus();
           return false;
        }
//-------------Effettua il controllo sul campo DATA di ARRIVO-------------------//
        else if (document.modulo.DATA_ARRIVO.value.substring(2,3) != "/" ||
                 document.modulo.DATA_ARRIVO.value.substring(5,6) != "/" ||
           isNaN(document.modulo.DATA_ARRIVO.value.substring(0,2)) ||
           isNaN(document.modulo.DATA_ARRIVO.value.substring(3,5)) ||
           isNaN(document.modulo.DATA_ARRIVO.value.substring(6,10))) {
           alert("Insérer la date d’arrivée en modalité jj/mm/aaaa");
                 document.modulo.DATA_ARRIVO.value = "";
                 document.modulo.DATA_ARRIVO.focus();
                 return false;
        }
        else if (document.modulo.DATA_ARRIVO.value.substring(0,2) > 31) {
           alert("Le jour d’arrivée n’est pas correct");
           document.modulo.DATA_ARRIVO.select();
           return false;
        }
        else if (document.modulo.DATA_ARRIVO.value.substring(3,5) > 12) {
           alert("Le mois de la date d’arrivée, n’est pas correct");
           document.modulo.DATA_ARRIVO.select();
           return false;
        }
        else if ((document.modulo.DATA_ARRIVO.value.substring(6,10) < anno) || (document.modulo.DATA_ARRIVO.value.substring(6,10) > annoprossimo)) {
           alert("L’année de la date d’arrivée ne peut être pas mineure de "+anno+" ni majeure de "+annoprossimo+".");
           document.modulo.DATA_ARRIVO.select();
           return false;
        }
//------------------- fa il confronto con la data di arrivo immessa dall'utente e la data odierna
        
        else if ((document.modulo.DATA_ARRIVO.value.substring(0,2) <= giorno) && 
                 (document.modulo.DATA_ARRIVO.value.substring(3,5) == mese) && 
                 (document.modulo.DATA_ARRIVO.value.substring(6,10) == anno)) {
           alert("Le jour de la date d’arrivée n’est pas correct; aujourd’hui il est "+ DATA_ODIERNA +".");
           document.modulo.DATA_ARRIVO.select();
           return false;
        }
        else if ((document.modulo.DATA_ARRIVO.value.substring(3,5) < mese) && 
                 (document.modulo.DATA_ARRIVO.value.substring(6,10) == anno)) {
           alert("Le mois de la date d’arrivée n’est pas correct; aujourd’hui il est "+ DATA_ODIERNA +".");
           document.modulo.DATA_ARRIVO.select();
           return false;
        }

//--------------------fine confronto con la data di arrivo immessa e quella odierna
        
//------------Effettua il controllo sul campo DATA di PARTENZA-----------------// 
        else if (document.modulo.DATA_PARTENZA.value.substring(2,3) != "/" ||
                 document.modulo.DATA_PARTENZA.value.substring(5,6) != "/" ||
           isNaN(document.modulo.DATA_PARTENZA.value.substring(0,2)) ||
           isNaN(document.modulo.DATA_PARTENZA.value.substring(3,5)) ||
           isNaN(document.modulo.DATA_PARTENZA.value.substring(6,10))) {
           alert("Insérer la date de départ en modalité jj/mm/aaaa");
                 document.modulo.DATA_PARTENZA.value = "";
                 document.modulo.DATA_PARTENZA.focus();
                 return false;
        }
        else if (document.modulo.DATA_PARTENZA.value.substring(0,2) > 31) {
           alert("Le jour de la date de départ n’est pas correct");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
        else if (document.modulo.DATA_PARTENZA.value.substring(3,5) > 12) {
           alert("Le mois de la date de départ n’est pas correct");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
        else if ((document.modulo.DATA_PARTENZA.value.substring(6,10) < anno) || (document.modulo.DATA_PARTENZA.value.substring(6,10) > annoprossimo)) {
           alert("L’année de la date de départ ne peut être pas mineure de "+anno+" ni majeure de "+annoprossimo+".");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
        else if (document.modulo.DATA_ARRIVO.value == document.modulo.DATA_PARTENZA.value) {
           alert("La date d’arrivée et la date de départ sont les mêmes: vérifier");
           document.modulo.DATA_ARRIVO.focus();
           return false;
        }
        else if ((document.modulo.DATA_PARTENZA.value.substring(0,2) <= giorno) && 
                 (document.modulo.DATA_PARTENZA.value.substring(3,5) == mese) && 
                 (document.modulo.DATA_PARTENZA.value.substring(6,10) == anno)) {
           alert("Le jour de la date de départ n’est pas correct: aujourd’hui il est "+ DATA_ODIERNA +".");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
        else if ((document.modulo.DATA_PARTENZA.value.substring(3,5) < mese) && 
                 (document.modulo.DATA_PARTENZA.value.substring(6,10) == anno)) {
           alert("Le mois de la date de départ n’est pas correct; aujourd’hui il est "+ DATA_ODIERNA +".");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
        else if((document.modulo.DATA_PARTENZA.value.substring(0,2) < document.modulo.DATA_ARRIVO.value.substring(0,2)) &&
                (document.modulo.DATA_PARTENZA.value.substring(3,5) == document.modulo.DATA_ARRIVO.value.substring(3,5)) &&
                (document.modulo.DATA_PARTENZA.value.substring(6,10) == document.modulo.DATA_ARRIVO.value.substring(6,10))) {
           alert("Le jour de la date de départ est antécédent au jour de la date d’arrivée: vérifier");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
        else if((document.modulo.DATA_PARTENZA.value.substring(3,5) < document.modulo.DATA_ARRIVO.value.substring(3,5)) &&
                (document.modulo.DATA_PARTENZA.value.substring(6,10) == document.modulo.DATA_ARRIVO.value.substring(6,10))) {
           alert("Le mois de la date de départ est antécédent au mois de la date d’arrivée: vérifier");
           document.modulo.DATA_PARTENZA.select();
           return false;
        }
//----------------fine controllo date arrivo e partenza -------------//
        
        else if ((document.modulo.NUMERO_PERSONE.value == "")) {
           alert("Insérer le numéro des personnes");
           document.modulo.NUMERO_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value > 10)) {
           alert("Nous regrettons de ne pouvoir accueillir cette quantité de personnes");
           document.modulo.NUMERO_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.ETA_PERSONE.value == "")) {
           alert("Insérer l’âge des personnes");
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        
        else if ((document.modulo.NUMERO_PERSONE.value == "1") && (!ETAPERSONE1_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge de la personne en modalité  ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "2") && (!ETAPERSONE2_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des  2 personnes en modalité  ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "3") && (!ETAPERSONE3_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 3 personnes en modalité  ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "4") && (!ETAPERSONE4_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 4 personnes en modalité  ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "5") && (!ETAPERSONE5_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 5 personnes en modalité  ââ/ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "6") && (!ETAPERSONE6_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 6 personnes en modalité  ââ/ââ/ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "7") && (!ETAPERSONE7_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 7 personnes en modalité  ââ/ââ/ââ/ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "8") && (!ETAPERSONE8_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 8 personnes en modalité  ââ/ââ/ââ/ââ/ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "9") && (!ETAPERSONE9_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 9 personnes en modalité  ââ/ââ/ââ/ââ/ââ/ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }
        else if ((document.modulo.NUMERO_PERSONE.value == "10") && (!ETAPERSONE10_reg_exp.test(ETAPERSONE))) {
           alert("Insérer l’âge des 10 personnes en modalité  ââ/ââ/ââ/ââ/ââ/ââ/ââ/ââ/ââ/ââ");
           document.modulo.ETA_PERSONE.value = "";
           document.modulo.ETA_PERSONE.select();
           document.modulo.ETA_PERSONE.focus();
           return false;
        }

   else {
           document.modulo.action = "formmail.php";
           document.modulo.submit();
        }
  }
//-----------------------------funzione per inserire solo numeri---------------//
function SoloNumeri(numeri) {
numeri = (numeri) ? numeri : event;
var charCode = (numeri.charCode) ? numeri.charCode : ((numeri.keyCode) ? numeri.keyCode : ((numeri.which) ? numeri.which : 0));
if (charCode > 31 && (charCode < 47 || charCode > 57))
{
alert("On peut insérer seulement des numéros séparés par /");
document.focus();
return false;
}
return true;
}
//----------------------------inserire solo lettere---------------------------//  
function SoloLettere(lettere) {
numeri = (lettere) ? lettere : event;
var charCode = (lettere.charCode) ? lettere.charCode : ((lettere.keyCode) ? lettere.keyCode : ((lettere.which) ? lettere.which : 0));
if (charCode > 32 && (charCode < 65 || charCode > 90 && charCode < 97 || charCode > 122 && charCode < 128 || charCode > 154 && charCode < 160 || charCode > 165 && charCode < 181 || charCode > 183 && charCode < 224 || charCode > 237))
{
alert("On peut insérer seulement des lettres");
document.focus();
return false;
}
return true;
}

//------------------------------end scripts-----------------------
//-->











