// JavaScript Document
function gfs1(){
var choix=document.gfs.select.selectedIndex;
switch (choix)
{case 0:location.href="#";break;
case 1:location.href="?c=1";break;
case 2:location.href="?c=2";break;
case 3:location.href="?c=3";break;
case 4:location.href="?c=4";break;
case 5:location.href="?c=5";break;
}
}


var fen2=null;

function ouvrirr(image) {

fen2=window.open("","image","status=no,toolbar=no");
fen2.document.open();
fen2.document.writeln('<html><head><title>'+image+'</title></head><body bgcolor="#E6EDF7" onLoad="window.resizeTo(900,500)">');
fen2.document.writeln('<center><img src="'+image+'"  onClick="Javascript:window.close();"></center>');
fen2.document.writeln('</body></html>');
fen2.document.close();

}



//
function ouvrir(image) {

fen2=window.open("","image","status=no,toolbar=no,scrollbars=yes" );
fen2.document.open();
fen2.document.writeln('<html><head><title>'+image+'</title></head><body onLoad="window.resizeTo(1000,768),scrollbars=yes,resizable=yes">');
fen2.document.writeln('<img src="'+image+'" width="1200" height="900" onClick="Javascript:window.close();">');
fen2.document.writeln('</body></html>');
fen2.document.close();

}


function ouvrir1(image) {

fen2=window.open("","image","status=no,toolbar=no,scrollbars=yes" );
fen2.document.open();
fen2.document.writeln('<html><head><title>'+image+'</title></head><body onLoad="window.resizeTo(1000,768),scrollbars=yes,resizable=yes">');
fen2.document.writeln('<img src="'+image+'"  width="900" height="768" onClick="Javascript:window.close();">');
fen2.document.writeln('</body></html>');
fen2.document.close();

}

function ouvrir2(image) {

fen2=window.open("","image","status=no,toolbar=no,scrollbars=yes" );
fen2.document.open();
fen2.document.writeln('<html><head><title>'+image+'</title></head><body onLoad="window.resizeTo(1000,600),scrollbars=yes,resizable=yes">');
fen2.document.writeln('<img src="'+image+'"  width="900" height="500" onClick="Javascript:window.close();">');
fen2.document.writeln('</body></html>');
fen2.document.close();

}


function satir(image) {

fen2=window.open("","image","status=no,toolbar=no,scrollbars=yes" );
fen2.document.open();
fen2.document.writeln('<html><head><title>'+image+'</title></head><body onLoad="window.resizeTo(650,700),scrollbars=yes,resizable=yes">');
fen2.document.writeln('<img src="'+image+'"  width="600" height="614" onClick="Javascript:window.close();">');
fen2.document.writeln('</body></html>');
fen2.document.close();

}

function openH(image) {

fen2=window.open("","image","status=no,toolbar=no,scrollbars=yes" );
fen2.document.open();
fen2.document.writeln('<html><head><title>'+image+'</title></head><body onLoad="window.resizeTo(725,620),scrollbars=yes,resizable=yes">');
fen2.document.writeln('<img src="'+image+'"  width="700" height="500" onClick="Javascript:window.close();">');
fen2.document.writeln('</body></html>');
fen2.document.close();

}



function radio() {

window:open('http://www.meteo.fr/reso40/radiosondage_obs.htm?BORDEAUX','radiosondage','width=800,height=400,scrollbars=yes,resizable=yes');

}


	function validation()
	{
	
			if (document.contact.message.value == "")
		{
			alert("Vous devez indiquer un message !");
			document.contact.message.focus();
			return false;
		}
	
	
	
		if (document.contact.email.value == "")
		{
			alert("Vous devez indiquer votre  e-mail !");
			document.contact.email.focus();
			return false;
		}
		
		var b=document.contact.email.value;
		var arob=b.indexOf('@');
		
	
		
			if (b.indexOf('@',arob+1)!=-1) {
		       alert("Votre e-mail  contient au-moins deux @ !");
			document.contact.email.focus();
			return false;
		}
		
		if (b.charAt(arob+1)=='.') {
		       alert("Votre mail  contient un point juste après l' @ !");
			document.contact.email.focus();
			return false;
		}
		
			if (b.charAt(arob-1)=='.') {
		       alert("Votre mail  contient un point juste avant l' @ !");
			document.contact.email.focus();
			return false;
		}
		
		
		if (b.charAt( b.length-1)=='.') {
		       alert("Votre e-mail  contient un point à la fin de votre e-mail !");
			document.contact.email.focus();
			return false;
		}
		
			if (b.indexOf( '.',arob+2)==-1) {
		       alert("Votre e-mail  ne contient pas de point après l' @ !");
			document.contact.email.focus();
			return false;
		}
		
//		var code=b.toLowerCase.charAtcode(0);
//		var codeA='a'.charAtCode(0);
//		var codeZ='z'.charAtCode(0);
		
//		if ( code<codeA || code>codeZ) {
//		   alert("Votre e-mail  ne commence pas par une lettre  !");
//			document.contact.email.focus();
//		}
		
		return true;
	}
	
	function moteur() {
	
	if (document.recherche.mots.value == "")
		{
			alert("Vous devez saisir au-moins 1 mot clef !");
			document.recherche.mots.focus();
			return false;
		}
	
	
			
		return true;
		
		}
