    var sHttpApplicationUrl = 'http://www.budget.com.tn';
	var sHttpResaApplicationUrl = 'http://www.budget.com.tn/cr2.resa';
	var sDefaultParameters = 'user=1047&curr=1&ilng=1';
	
	function GoToContact()
	{		
		var sUrl = sHttpApplicationUrl + "/info/Contact.aspx?" + sDefaultParameters;
		
		location.href = sUrl;
	}
	function Book()
	{
		var sUrl = sHttpResaApplicationUrl + "/ui/aba/CarCategory_Search.aspx?" + sDefaultParameters;
		
		location.href = sUrl;
	}
	

	function ShowCityWindow()
	{
		var sUrl = sHttpResaApplicationUrl + "/ui/aba/CarCategory_Detail.aspx?" + sDefaultParameters;
		var new_window=window.open (sUrl,"",'resizable=1,scrollbars=1,width=740,height=400px');
	}
   

			
			function updateRentCarAgency()
			{
				var oSelectDepartureAgency = document.getElementById('DropDownList_DepartureAgency');
				var oSelectReturnAgency = document.getElementById('Dropdownlist_ReturnAgency');
				
				oSelectReturnAgency.selectedIndex = oSelectDepartureAgency.selectedIndex;
			}
			
	
			function HeaderSynchronizeByArrivalDate()
			{
	
				if (!objDepartureDate || !objArrivalDate || !objDuration)
					return false; 
				
				if (objDepartureDate.value != "")
				{
					// verify that objArrivalDate.value is a date
					if (isDate(objDepartureDate.value))
					{
						
						if (objDuration != "")
						{
							// verify that duration is an Int
							if (isInt(objDuration))
							{
								var intDuration = parseInt(objDuration, 10);
								if (intDuration > 0)
								{
									var strDate = AddDays(objDepartureDate.value, intDuration);
									objArrivalDate.value = strDate;
									
									return true; // departure date synchronized
								}
								else 
									return false; // nothing todo
							}
							else
								return false; // wrong format (duration)
						}
						else
						{
							if (objArrivalDate.value != "")
							{
								// verify that objDepartureDate.value is a date
								if (isDate(objArrivalDate.value))
									objDuration = GetDays(objDepartureDate.value, objArrivalDate.value);
								else
									return false; // wrong format (departure date)
							}
							else
								return false; // nothing todo
						}
					}
					else
						return false; // wrong format (arrival date)
				}
				else
					return false; // nothing todo
			}
	
			function SendNewsLetter()
			{
				var sEmail = document.getElementById('textfield3');
				
				if (sEmail.value == '')
					return;
						 	
				var sUrl = sHttpApplicationUrl + "/info/Newsletter.aspx?" + sDefaultParameters
						+ "&email=" + sEmail.value;
				
				location.href = sUrl;
			}
			function BookHotelAndCar()
			{
				var sUrl = sHttpApplicationUrl + "/info/CarAndHotel.aspx?" + sDefaultParameters;
				
				location.href = sUrl;
			}
			function BookVIP()
			{
				var sIdVIPCar = "5";
				var sUrl = sHttpResaApplicationUrl + "/ui/aba/CarCategory_Search.aspx?" + sDefaultParameters
						+ "&idcarcategory=" + sIdVIPCar;
				
				location.href = sUrl;
			}
			function BookDjerba()
			{
				var sIdAgency = "4";
				var sUrl = sHttpResaApplicationUrl + "/ui/aba/CarCategory_Search.aspx?" + sDefaultParameters
						+ "&idagency=" + sIdAgency;
				
				location.href = sUrl;
			}
			function BookHammamet()
			{
				var sIdAgency = "5";
				var sUrl = sHttpResaApplicationUrl + "/ui/aba/CarCategory_Search.aspx?" + sDefaultParameters
						+ "&idagency=" + sIdAgency;
				
				location.href = sUrl;
			}
			
			
			
			<!--
	function __doPostBack(eventTarget, eventArgument) {
		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.Form1;
		}
		else {
			theform = document.forms["Form1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
   

function prepareDate(strDate)
	{
		var strSplittedSartingDate = new String();
		strSplittedSartingDate = strDate;
		strSplittedSartingDate = strSplittedSartingDate.split("index.html");
		return '[' + eval(strSplittedSartingDate[2]) + ',' + eval(strSplittedSartingDate[1]) + ',' + eval(strSplittedSartingDate[0]) + ']';
	}
	
	var objIframe = document.getElementById("gToday:/common/crCalendar/normal:/common/crCalendar/agenda.js");
	if (objIframe == null)  
		document.write('<iframe width=151 height=121 name="gToday:/common/crCalendar/normal:/common/crCalendar/agenda.js" id="gToday:/common/crCalendar/normal:/common/crCalendar/agenda.js" src="/common/crCalendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"></iframe>');
	
	var Dimanche	= "Di";
	var Lundi		= "Lu";
	var Mardi		= "Ma";
	var Mercredi	= "Me";
	var Jeudi		= "Je";
	var Vendredi	= "Ve";
	var Samedi		= "Sa";
	var Janvier		= "Janvier";
	var Fevrier		= "Février";
	var Mars		= "Mars";
	var Avril		= "Avril";
	var Mai			= "Mai";
	var Juin		= "Juin";
	var Juillet		= "Juillet";
	var Aout		= "Août";
	var Septembre	= "Septembre";
	var Octobre		= "Octobre";
	var Novembre	= "Novembre";
	var Decembre	= "Décembre";
	var strAppDirectory  = "";
	
	
	
	function prepareDate(strDate)
	{
		var strSplittedSartingDate = new String();
		strSplittedSartingDate = strDate;
		strSplittedSartingDate = strSplittedSartingDate.split("index.html");
		return '[' + eval(strSplittedSartingDate[2]) + ',' + eval(strSplittedSartingDate[1]) + ',' + eval(strSplittedSartingDate[0]) + ']';
	}
	
	var objIframe = document.getElementById("gToday:/common/crCalendar/normal:/common/crCalendar/agenda.js");
	if (objIframe == null)  
		document.write('<iframe width=151 height=121 name="gToday:/common/crCalendar/normal:/common/crCalendar/agenda.js" id="gToday:/common/crCalendar/normal:/common/crCalendar/agenda.js" src="/common/crCalendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"></iframe>');
	
	var Dimanche	= "Di";
	var Lundi		= "Lu";
	var Mardi		= "Ma";
	var Mercredi	= "Me";
	var Jeudi		= "Je";
	var Vendredi	= "Ve";
	var Samedi		= "Sa";
	var Janvier		= "Janvier";
	var Fevrier		= "Février";
	var Mars		= "Mars";
	var Avril		= "Avril";
	var Mai			= "Mai";
	var Juin		= "Juin";
	var Juillet		= "Juillet";
	var Aout		= "Août";
	var Septembre	= "Septembre";
	var Octobre		= "Octobre";
	var Novembre	= "Novembre";
	var Decembre	= "Décembre";
	var strAppDirectory  = "";

	
	
var objDepartureDate	 = document.getElementById('TextBox_DepartureDate');
					var objArrivalDate		 = document.getElementById('TextBox_ReturnDate');
					var objDuration = '3';
								
					function ShowPopup(path)
					{
						var new_window=window.open (path,'new_window','resizable=1,scrollbars=1,width=740,height=400px');
						new_window.focus();
					
					}
