<!--
function meteo() {
	if ((document.all)&&(document.getElementById)) { // teste si IE5 et +
	    var params_meteo="type_meteo=terrestre&langue=fr&fond=F3E6A7&texte=6A390A&saisie_meteo=26150";
      document.write('Vous pouvez saisir un code postal pour avoir la météo dans votre  ville !<br><table><tr><td><ILAYER target="meteo1" ID="meteo1" VISIBILITY="hidden" WIDTH="140" HEIGHT="165"></ILAYER></td></tr></table>');
      document.write('<NOLAYER><IFRAME name="meteo1" width="140" height="165" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" SRC="http://www.meteodirect.com/md/vignette/md_vignette.php?url=' + document.location.href + '&params_meteo=' + params_meteo + '">&nbsp;</IFRAME></NOLAYER>');
      document.write('<LAYER target="meteo1" SRC="http://www.meteodirect.com/md/vignette/md_vignette.php?url=' + document.location.href + '&params_meteo=' + params_meteo + '" visibility="hidden" width="135" height="165" onload="moveToAbsolute(meteo1.pageX,meteo1.pageY); visibility=\'show\';"></LAYER>');
	}
	else
	{
	document.write('Vous pouvez consulter la météo en cliquant sur le lien suivant : <a href="javascript:onclick=popUpCenteredWindow(\'meteo.htm\',\'300\',\'200\')">>>></a>');
  }
}

function popUpCenteredWindow(loc,largeur,hauteur){
	var _URL = loc;
	var _largeur = largeur;
	var _hauteur = hauteur;
  var iMyWidth;
  var iMyHeight;
  iMyWidth = (window.screen.width/2) - (122 + 10)
  iMyHeight = (window.screen.height/2) - (27 + 50)
  var newWindow = window.open(_URL,"Nouvelle","status,height="+_hauteur+",width="+_largeur+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes")
  newWindow.focus();
}

function fenetre(loc,name,property)
{
	var _URL = loc;
	var _Name = name;
	var _Property = property;
	var newWindow = window.open(_URL, _Name, _Property);
	newWindow.focus();
}

function valider_email() {
   if (document.jsform.email.value.indexOf('@',0)==-1 ||
       document.jsform.email.value.indexOf('@',0)== 0 ||
       document.jsform.email.value.indexOf('.',0)==-1) {
    alert("\nVotre adresse email n'est pas valide !\nElle doit être de la forme nom@prestataire.fr")
    document.jsform.email.select();
    document.jsform.email.focus();
    return false;
    }
		else
		{
		InscriptionWindow=popUpCenteredWindow("inscription.asp?email=" + document.jsform.email.value , "300", "200")
		return false;
		}
}

function valider_sondage() {
var i;
var la_reponse;
for (i=0; i<document.sondage.length; i++){
 if (document.sondage.reponse[i].checked == true ){
 la_reponse = document.sondage.reponse[i].value;
 }
}

if (la_reponse != undefined) {
 alert("Merci de votre réponse.\nLe webmaster.");
 location.href='sondage.asp?reponse=' + la_reponse;
 return false;
}
else
{
alert("Vous devez choisir une réponse !");
}
return false;
}

function AjoutFavo() {
	if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
		window.external.AddFavorite("http://www.diois.com","Le Portail Local du Diois");
	} else {
		alert("Cette fonction n'est proposée que par Internet Explorer 4+")
	}
}

function PrintHomePage(url,text) {
	if ((document.all)&&(document.getElementById)) { // teste si IE5 et +
		document.write("<tr><td valign='top'><img src='images/puce1.gif' width='15' height='15'></td><td><a class='titre' href=\"javascript:\" onclick=\"javascript:this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'"+url+"\')\">"+text+"</a></td></tr>");
	}
}

//-->