function getTimestamp () {
  d=new Date();

  year = d.getYear();
  if (year < 2000) 
    year = year + 1900; 

  month = d.getMonth()+1;
  if (month < 10) 
    month = "0" + month;

  date = d.getDate();
  if (date < 10) 
    date = "0" + date;

  hour = d.getHours();
  if (hour < 10) 
    hour = "0" + hour;            

  minute = d.getMinutes();
  if (minute < 10) 
    minute = "0" + minute;            

  second = d.getSeconds();
  if (second < 10) 
    second = "0" + second;            

  return year+month+date+hour+minute+second;
}