function LMD(N,D)
{
  if(D=="kth")
    D="kth.se"
  else{
  if(D=="met")
    D="met.kth.se"
  else{
  if(D=="mse")
    D="mse.kth.se"
  else{
  if(D=="metallurgi")
    D="metallurgi.kth.se"
  else{
  if(D=="corrosci")
    D="corrosci.kth.se"
  else{
  if(D=="material")
    D="material.kth.se"
  else{
  if(D=="matchem")
    D="matchem.kth.se"
  else{
  if(D=="cmp")
    D="cmp.kth.se"
  else{
  if(D=="metform")
    D="metform.kth.se"
  }}}}}}}}
    window.location.replace('mailto:'+N+'@'+D);
}
function LastModDateOnly() {
      lastmod = document.lastModified     // get string of last modified date
      if (Date.parse(lastmod) == 0) {             // unknown date (or January 1, 1970 GMT)
        document.writeln("unknown")
      } else {
       d = new Date(lastmod);
       if (d.getYear() < 2000) {
          y=d.getYear()-100
          if (y >= 10){
            y = '20' + y
          } else {
            y = '200' + y
          }
       } else {
          y=d.getYear()
       }

       if (d.getMonth() >= '9') {
          m=d.getMonth()+1
       } else {
          m='0' + (d.getMonth()+1)
       }
       if (d.getDate() >= '10') {
          dat = d.getDate()
       } else {
          dat = '0' + (d.getDate())
       }
       document.writeln(y,'-',m,'-',dat);

     }

}
