function printModifiedDate(displayLabel) {

  if (!document.layers) {
    var modified = new Date(document.lastModified);
    var mod_month = modified.getMonth() + 1;
    var mod_date = modified.getDate();
    var mod_year = modified.getFullYear();
  
    if (mod_month < 10) { mod_month = '0' + mod_month; }
    if (mod_date < 10 ) { mod_date = '0' + mod_date; }
  
    var modified = mod_year + '-' + mod_month + '-' + mod_date ;
    document.write(displayLabel + " " + modified);    
}
  
}

function printCreatedDate(displayLabel) {
  
  if (document.fileCreatedDate) {
    var created = new Date(document.fileCreatedDate);
    var created_month = created.getMonth() + 1;
    var created_date = created.getDate();
    var created_year = created.getFullYear();

    if (created_month < 10) { created_month = '0' + created_month; }
    if (created_date < 10 ) { created_date = '0' + created_date; }

    var created_output = created_year + '-' + created_month + '-' + created_date ;
    document.write(displayLabel + " " +  created_output); 
  }

}
