﻿//JS DU Nouveau site 
function OpenCertDetails()
	{
	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=FREURE2-4', 'anew', config='height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
	}	
function random_image(){
	var img = new Array();
	img[1] = 'images/rand0.jpg';img[2] = 'images/rand2.jpg';img[3] = 'images/rand3.jpg';img[4] = 'rand4.jpg';img[5] = 'images/rand0.jpg';img[6] = 'rand6.jpg';img[7] = 'rand7.jpg';img[8] = 'rand0.jpg';
	i = (Math.floor((img.length-1)*Math.random()+1));
	document.write('<img src="/img/'+img[i]+'" height=87 width=302>');
}

//Affichage Auto Année
// Clock Script Generated By Maxx Blade's Clock v2.0
// http://www.maxxblade.co.uk/clock
function tS(){ x=new Date(); x.setTime(x.getTime()); return x; } 
function lZ(x){ return (x>9)?x:'0'+x; } 
function dT(){ document.write(eval(oT)); } 
function y4(x){ return (x<500)?x+1900:x; } 
var oT="y4(tS().getYear())";
//Fin Affichage Auto Année

function letsGo5() {
	var adr = document.formu4.langues.options[document.formu4.langues.selectedIndex].value;
	var sel = document.formu4.langues.options.selectedIndex;
	if (sel == 1) document.location.href = adr;
	if (sel == 2) document.location.href = adr;
	if (sel == 3) document.location.href = adr;
	if (sel == 4) document.location.href = adr;
	if (sel == 5) document.location.href = adr;
	if (sel == 6) document.location.href = adr;
	document.formu4.langues.options[0].selected = true;
}

var url = document.location.host;
					if (document.location.host.indexOf('secure.europages.com') == -1) 
					{
					var newhote = "http://www.europages.com";
					}
					else {
					var newhote = "";
					}
//pop-ups 
function bs(url,large,haut,resizable) {
		var bs = window.open(url,'','scrollbars=yes,menubar=no,status=no,resizable='+resizable+',top=100,left=100,width='+large+',height='+haut+'');
		bs.focus();
}

function pop2bis (url,large,haut,resizable) {
		var sigma = window.open(url,'','scrollbars=yes,menubar=no,status=no,resizable='+resizable+',top=0,left=0,width='+large+',height='+haut+'');
		sigma.focus()
}

//Menu déroulant / Accès Direct
function rbdirect() {
	var adrrbdirect = document.rb.tools.options[document.rb.tools.selectedIndex].value;
	var selrbdirect = document.rb.tools.options.selectedIndex;
	//Pages jaunes européennes
		if (selrbdirect == 1) window.open(adrrbdirect,'','width=500,height=570,toolbar=no,scrollbars=yes,status=no,resizable=no,top=50,left=50');
	//Pages jaunes non-européennes
		if (selrbdirect == 2) window.open(adrrbdirect,'','width=500,height=570,toolbar=no,scrollbars=yes,status=no,resizable=no,top=50,left=50');
	//Convertisseur de monnaies
		if (selrbdirect == 3) window.open(adrrbdirect,'','width=510,height=370,toolbar=no,scrollbars=yes,status=no,resizable=no,top=50,left=50');
	//Convertisseur de mesures
		if (selrbdirect == 4) window.open(adrrbdirect,'','width=500,height=570,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
	//Traduction automatique Worldlingo
		if (selrbdirect == 5 && document.rb.tools.options[document.rb.tools.selectedIndex].value.substring(0,25) == "http://www.worldlingo.com") window.open(adrrbdirect,'','width=525,height=570,toolbar=no,scrollbars=yes,status=no,resizable=no,top=50,left=50');
	//Traduction automatique Reverso
		if (selrbdirect == 5 && document.rb.tools.options[document.rb.tools.selectedIndex].value.substring(0,25) != "http://www.worldlingo.com") window.open(adrrbdirect,'','width=600,height=570,toolbar=no,scrollbars=yes,status=no,resizable=no,top=50,left=50');
}
//FIN JS DU Nouveau site

//JS Ancien site à valider
function NoError(){
	return true;
}
window.onerror=NoError;

// javascript select
function openLegal(url,nom,large,haut) {
	var MinWin, winOpts="width="+large+",height="+haut+",scrollbars=no,alwaysRaised=yes,top=0,left=0";
	MinWin = window.open(url, nom, winOpts); 
	if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1)
	   MinWin = window.open(url, nom, winOpts);
	if (navigator.appName == "Netscape" && (parseInt(navigator.appVersion) >=3 ))
	   MinWin.focus()
}

// Pop-up
function pop1 (url, large, haut) {
		var pop1 = window.open(url,'pop1','scrollbars=yes,menubar=no,status=no,resizable=no,top=0,left=0,width='+large+',height='+haut+'');
		pop1.focus();
}
//Fin Pop up

//Fonction menu deroulant 
function letsGo1() {
var adr = document.formu1.tools.options[document.formu1.tools.selectedIndex].value;
var sel = document.formu1.tools.options.selectedIndex;
//Horaires de vol
	if (sel == 1) window.open(adr,'','height=420,width=610,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Suivi de colis
	if (sel == 2) window.open(adr,'','height=440,width=610,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Avis
	if (sel == 3) window.open(adr,'','height=570,width=630,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Hotelguide
	if (sel == 4) window.open(adr,'','height=400,width=610,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Convertisseur de monnaies
	if (sel == 5) window.open(adr,'','height=570,width=630,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Convertisseur de mesures
	if (sel == 6) window.open(adr,'','height=490,width=10,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Cartes et itinéraires
	if (sel == 7) window.open(adr,'','height=500,width=540,toolbar=yes,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Trad_worldlingo
	if (sel == 8 && document.formu1.tools.options[document.formu1.tools.selectedIndex].value.substring(0,25) == "http://www.worldlingo.com") window.open(adr,'','height=590,width=500,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//Trad_Reverso
	if (sel == 8 && document.formu1.tools.options[document.formu1.tools.selectedIndex].value.substring(0,25) != "http://www.worldlingo.com") window.open(adr,'','height=600,width=674,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
//WorldLingo
	if (sel == 9) window.open(adr,'','height=590,width=590,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
document.formu1.tools.options[0].selected = true;
}

function letsGo2() {
var adr = document.formu2.yp.options[document.formu2.yp.selectedIndex].value;
window.open(adr,'','height=490,width=610,toolbar=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0');
document.formu2.yp.options[0].selected = true;
}

function letsGo3() {
var adr = document.formu3.infos.options[document.formu3.infos.selectedIndex].value;
var sel = document.formu3.infos.options.selectedIndex;
	if (sel == 1) document.location.href = adr;
	if (sel == 2) document.location.href = adr;
	if (sel == 3) document.location.href = adr;
	if (sel == 4) document.location.href = adr;
	if (sel == 5) window.open(adr,'','scrollbars=no,menubar=no,status=no,resizable=no,top=5,left=5,width=760,height=550');
	//special.document.location.href = adr;
document.formu3.infos.options[0].selected = true;
}

function letsGo4() {
var adr = document.formu4.langues.options[document.formu4.langues.selectedIndex].value;
var eur = "http://www.europages."
switch (adr)
{
case "ar":document.location.href = eur+"com/ar";break;
case "bg":document.location.href = eur+"com/bg";break;
case "zh":document.location.href = eur+"cn";break;
case "cs":document.location.href = eur+"cz";break;
case "dk":document.location.href = eur+"dk";break;
case "de":document.location.href = eur+"de";break;
case "en":document.location.href = eur+"net";break;
case "es":document.location.href = eur+"es";break;
case "et":document.location.href = eur+"com/et";break;
case "fr":document.location.href = eur+"fr";break;
case "gr":document.location.href = eur+"com/gr";break;
case "it":document.location.href = eur+"com/it";break;
case "lv":document.location.href = eur+"lv";break;
case "lt":document.location.href = eur+"lt";break;
case "hu":document.location.href = eur+"com/hu";break;
case "nl":document.location.href = eur+"com/nl";break;
case "no":document.location.href = eur+"com/no";break;
case "pl":document.location.href = eur+"pl";break;
case "pt":document.location.href = eur+"pt";break;
case "ro":document.location.href = eur+"com/ro";break;
case "ru":document.location.href = eur+"com/ru";break;
case "se":document.location.href = eur+"com/se";break;
case "sl":document.location.href = eur+"com/sl";break;
case "fi":document.location.href = eur+"com/fi";break;
case "tu":document.location.href = eur+"com/tu";break;
default:document.location.href = eur+"com";break;
}
document.formu4.langues.options[0].selected = true;                             
}                                                                               

//Fin JS Ancien site à valider
