function get_home_pix()
{
var home_pix = "";
var alea = 0;
var max_img = 10;
alea = Math.random();
alea *= max_img;
alea = Math.floor(alea);
if ((alea == 0) || (alea == 10))
{
home_pix = '
';
}
else
{
home_pix = '
';
}
return(home_pix);
}
function get_the_date()
{
var now = new Date();
var the_date = now.getDate();
var the_month = now.getMonth() + 1;
var the_year = now.getYear();
if (the_year < 2000) {the_year += 1900}
if (the_month==1) {the_month="janvier"}
else { if (the_month==2) {the_month="février"}
else { if (the_month==3) {the_month="mars"}
else { if (the_month==4) {the_month="avril"}
else { if (the_month==5) {the_month="mai"}
else { if (the_month==6) {the_month="juin"}
else { if (the_month==7) {the_month="juillet"}
else { if (the_month==8) {the_month="août"}
else { if (the_month==9) {the_month="septembre"}
else { if (the_month==10) {the_month="octobre"}
else { if (the_month==11) {the_month="novembre"}
else { if (the_month==12) {the_month="décembre"}}}}}}}}}}}}
return(the_date + " " + the_month + " " + the_year);
}
function get_the_day()
{
var now = new Date();
var the_day = now.getDay();
if (the_day==0) {the_day="dimanche"}
else { if (the_day==1) {the_day="lundi"}
else { if (the_day==2) {the_day="mardi"}
else { if (the_day==3) {the_day="mercredi"}
else { if (the_day==4) {the_day="jeudi"}
else { if (the_day==5) {the_day="vendredi"}
else {the_day="Saturday"}}}}}}
return(the_day + " ");
}
function open_window(theURL,winName,features) {
window.open(theURL,winName,features);
}
function get_the_time()
{
var now = new Date();
var minutes = now.getMinutes();
var divider = ":";
if (minutes<10)
divider = ":0";
return( now.getHours() + divider + minutes );
}
function open_image(file,name,w,h,caption)
{
var the_width = w + 30;
var the_height = h + 60;
var the_left_pos = (screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
var the_top_pos = (screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
var the_parameters = "width="+the_width+",height="+the_height+",screenX="+the_left_pos+",screenY="+the_top_pos;
the_parameters += ",menubar=no,resizable=yes,status=yes,scrollbars=no";
var the_window = window.open("",name,the_parameters);
the_window.document.open("text/html","replace");
the_window.document.write("