// JavaScript Document

/*Current date in form credit: 
JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/

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=theday
var displaysecond=themonth
var displaythird=theyear

////////////////////////////////////
// var toThisField=document.stats.currentdate.value=displayfirst+"/"+displaysecond+"/"+displaythird 
/*document.stats.currentdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
document.stats.htdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
*/
function insertdate1 (form) {
    form.bpdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
}
function insertdate2 (form) {
    form.htdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
}
function insertdate3 (form) {
    form.wtdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
}
function insertdate4 (form) {
    form.pfrdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
}
function insertdate5 (form) {
    form.bsdate.value=displayfirst+"/"+displaysecond+"/"+displaythird
}
function insertdate6 (form) {
    form.choldate.value=displayfirst+"/"+displaysecond+"/"+displaythird
}