﻿// JavaScript Document

function popup(a_page_str,a_id_str,a_param_str){
	window.open(a_page_str,a_id_str,a_param_str);
	return false;
}	
function popupClient(a_page_str){
	window.open(a_page_str,'espace_client','width=625,height=500,scrollbars=yes');
	return false;
}	
function popupPrint(a_page_str){
	window.open(a_page_str,'print','width=625,height=500,scrollbars=yes');
	return false;
}	
function popupAmi(a_page_str){
	window.open(a_page_str,'ami','width=625,height=500,scrollbars=yes');
	return false;
}	


function jumpDico(target){ //v3.0
  document.location = target.options[target.selectedIndex].value;
}


function afficheDate(a_langue_str)
{
	var now = new Date();
	var yr = 2003;
	var mName = now.getMonth() + 1;
	var dName = now.getDay() + 1;
	var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	if(a_langue_str == "fr")
	{   
		if(dName==1) Day = "Dimanche";
		if(dName==2) Day = "Lundi";
		if(dName==3) Day = "Mardi";
		if(dName==4) Day = "Mercredi";
		if(dName==5) Day = "Jeudi";
		if(dName==6) Day = "Vendredi";
		if(dName==7) Day = "Samedi";
		if(mName==1) Month="Janvier";
		if(mName==2) Month="Février";
		if(mName==3) Month="Mars";
		if(mName==4) Month="Avril";
		if(mName==5) Month="Mai";
		if(mName==6) Month="Juin";
		if(mName==7) Month="Juillet";
		if(mName==8) Month="Août";
		if(mName==9) Month="Septembre";
		if(mName==10) Month="Octobre";
		if(mName==11) Month="Novembre";
		if(mName==12) Month="Décembre";
	}
	if(a_langue_str == "us")
	{   
		if(dName==1) Day = "Sunday";
		if(dName==2) Day = "Monday";
		if(dName==3) Day = "Tuesday";
		if(dName==4) Day = "Wednesday";
		if(dName==5) Day = "Thursday";
		if(dName==6) Day = "Friday";
		if(dName==7) Day = "Saturday";
		if(mName==1) Month="Junuary";
		if(mName==2) Month="February";
		if(mName==3) Month="March";
		if(mName==4) Month="April";
		if(mName==5) Month="May";
		if(mName==6) Month="June";
		if(mName==7) Month="July";
		if(mName==8) Month="August";
		if(mName==9) Month="September";
		if(mName==10) Month="October";
		if(mName==11) Month="November";
		if(mName==12) Month="December";
	}
	var todaysDate =(" "+ Day+" "+ dayNr+ " "+ Month);
	return todaysDate;
}


