// JavaScript Document

// script written by Kristi Borst, Ad Mark Com, www.AdMarkCom.com
// if you'd like to use it or a variation, please include these 2 lines of credit before notes of any changes

   var calendar = new CalendarPopup(); 
    calendar.setReturnFunction("changeDate"); 
     
    function changeDate(y,m,d) { 
        selectOption(document.Res_Form.CIY, y);
        selectOption(document.Res_Form.CIM, m); 
		selectOption(document.Res_Form.CID, d); 
		
     }
	 
	 function setDefaultDate() {
        var now = new Date();
       changeDate(now.getFullYear(), now.getMonth() + 1, now.getDate());
	   
    }
	 function changeDate2(y,m,d) {     
		selectOption(document.Res_Form.COY, y);
        selectOption(document.Res_Form.COM, m);
		selectOption(document.Res_Form.COD, d);
		
     }
     
    function setDefaultDate2() {
	  var today=new Date();
          var tomorrow=new Date();
          tomorrow.setDate(today.getDate()+1);// now you have tomorrow as a Date Object, set always as the next day	  
          changeDate2(tomorrow.getFullYear(), tomorrow.getMonth() + 1, tomorrow.getDate());	   
    }