var myDate=new Date();
myDate.setFullYear(2012,1,14);
var today = new Date();

if (myDate<today)
  {
  window.location = "../error.php";
  }
