﻿    function myClickHandler() {
      alert("The document was clicked!");
      PageMethods.GetDate();
    }

function bookmark(url, description){
		netscape="FireFox User's hit CTRL+D to add DanskAutoRent.com to your bookmarks."
		if (navigator.appName=='Microsoft Internet Explorer'){
		window.external.AddFavorite(url, description);
		}else if (navigator.appName=='Netscape'){
		alert(netscape);
		}
	}
	function checkDate(sender,args)
        {
         if (sender._selectedDate < new Date())
            {
                alert("You cannot select a day earlier than today!");
                sender._selectedDate = new Date(); 
                // set the date back to the current date
                sender._textbox.set_Value(sender._selectedDate.format(sender._format))
            }
        }
        
        function OnClickArrival()
        {
          if(document.getElementById("divCalendarArrival").style.display == "none")
            document.getElementById("divCalendarArrival").style.display = "";
          else
            document.getElementById("divCalendarArrival").style.display = "none";
        }
        function OnClickDeparture()
        {
          if(document.getElementById("divCalendarDeparture").style.display == "none")
            document.getElementById("divCalendarDeparture").style.display = "";
          else
            document.getElementById("divCalendarDeparture").style.display = "none";
        }
        function OnClickDOB()
        {
          if(document.getElementById("divCalendarDOB").style.display == "none")
            document.getElementById("divCalendarDOB").style.display = "";
          else
            document.getElementById("divCalendarDOB").style.display = "none";
        }
        function OnClickExpire()
        {
          if(document.getElementById("divCalendarExpire").style.display == "none")
            document.getElementById("divCalendarExpire").style.display = "";
          else
            document.getElementById("divCalendarExpire").style.display = "none";
        }
