// fonction pour ouvrir une petite fenetre avec scroll
function open_window_scroll(url,w,h)
	{
	var window_handle=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h + ',top=20,left=20');
	window_handle.focus();
	}
	
// Fonction pour imprimer la page en cours 
function printCurrentPage() {
   if (navigator.appName.indexOf("Microsoft") > -1 &&
       navigator.appVersion.indexOf("5.") == -1) {               // EXPLORER 4  MIN
      // IE4 
      OLECMDID_PRINT = 6;
      OLECMDEXECOPT_DONTPROMPTUSER = 2;
      OLECMDEXECOPT_PROMPTUSER = 1; 
      WebBrowser = 
       '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; 
      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
      WebBrowser1.ExecWB(OLECMDID_PRINT,   OLECMDEXECOPT_PROMPTUSER);
      WebBrowser1.outerHTML = "";
     }
   else {
     // N4 IE5
     window.print();
     }
   } 
 // Fonction pour rollover des fleches
  
function rollover(nom,over)
	{
	if(document.images) 
	{
	  if (over)
		document.images[nom].src = "/europcar/img/fle_on.gif";
          else
		document.images[nom].src = "/europcar/img/fle_off.gif";
	}
}

function getCheckoutDate()
{
	var temp 	= new Date();
	var coDate	= new Date( temp.getYear(), temp.getMonth(), temp.getDate() + 1 );
	return coDate;
}

function getCheckinDate()
{
	var temp 	= new Date();
	var coDate	= new Date( temp.getYear(), temp.getMonth(), temp.getDate() + 2 );
	return coDate;
}

function getCheckoutDay()
{
	temp		= getCheckoutDate();
	return ( temp.getDate() );
}

function getCheckoutMonth()
{
	temp		= getCheckoutDate();
	return ( temp.getMonth() + 1 );
}

function getCheckoutYear()
{
	temp		= getCheckoutDate();
	return ( temp.getYear() );
}

function getCheckinDay()
{
	temp		= getCheckinDate();
	return ( temp.getDate() );
}

function getCheckinMonth()
{
	temp		= getCheckinDate();
	return ( temp.getMonth() + 1 );
}

function getCheckinYear()
{
	temp		= getCheckinDate();
	return ( temp.getYear() );
}

var _PRELOAD_ARRAY = new Array();
function preloadImages()
{
	for (var i=0; i<arguments.length; i++)
	{
		var temp = new Image();
		temp.src = arguments[i];
		_PRELOAD_ARRAY[_PRELOAD_ARRAY.length] = temp;
	}
}