// JavaScript Document Date for Refinance Commitment Form

              			 var mydate=new Date()
              			 var theyear=mydate.getYear()
              			 if (theyear < 1000)
                		  theyear+=1900
              				var theday=mydate.getDay()
              				var themonth=mydate.getMonth()+1
                			 if (themonth<10)
                 			  themonth="0"+themonth
              					var theday=mydate.getDate()
                				 if (theday<10)
								  theday="0"+theday
                                  //////EDIT below three variable to customize the format of the date/////
             						var displayfirst=themonth
             						var displaysecond=theday
             						var displaythird=theyear
                                    ////////////////////////////////////
				            		  document.refinance_commitment_form.startWhen.value=displayfirst+"/"+displaysecond+"/"+displaythird
       	  			    