var today = new Date()
var msg = ''
var nDate = today.getDate().toString()
var nMonth = (today.getMonth()+1).toString()
var nYear = today.getYear().toString()

function printDate() {

document.write('<img src="' + imagesPath + 'date/date_spacer.gif" width="23" height="20" alt="" border="0">')

if (nDate.length < 2) {
      document.write('<img src="' + imagesPath + 'date/0_digit.gif" width="10" height="20" alt="" border="0">')
      document.write('<img src="' + imagesPath + 'date/' + nDate + '_digit.gif" width="10" height="20" alt="" border="0">')
} else {
      document.write('<img src="' + imagesPath + 'date/' + nDate.substring(0,1) + '_digit.gif" width="10" height="20" alt="" border="0">')
      document.write('<img src="' + imagesPath + 'date/' + nDate.substring(1,2) + '_digit.gif" width="10" height="20" alt="" border="0">')
}
document.write('<img src="' + imagesPath + 'date/date_dot.gif" width="4" height="20" alt="" border="0">')
if (nMonth.length < 2) {
    document.write('<img src="' + imagesPath + 'date/0_digit.gif" width="10" height="20" alt="" border="0">')
    document.write('<img src="' + imagesPath + 'date/' + nMonth + '_digit.gif" width="10" height="20" alt="" border="0">')
} else {
    document.write('<img src="' + imagesPath + 'date/' + nMonth.substring(0,1) + '_digit.gif" width="10" height="20" alt="" border="0">')
    document.write('<img src="' + imagesPath + 'date/' + nMonth.substring(1,2) + '_digit.gif" width="10" height="20" alt="" border="0">')
}
  document.write('<img src="' + imagesPath + 'date/date_dot.gif" width="4" height="20" alt="" border="0">')
  document.write('<img src="' + imagesPath + 'date/' + nYear.substring(2,3) + '_digit.gif" width="10" height="20" alt="" border="0">')
  document.write('<img src="' + imagesPath + 'date/' + nYear.substring(3,4) + '_digit.gif" width="10" height="20" alt="" border="0">')

}