Javscript Date comparison with current date

var d=new Date();
var form_date = "01-08-2009";
var split_date = form_date.split("-");
var added_timestamp = Number(d.setMonth(split_date[0]-1,split_date[1]));
var form_date = parseInt(split_date[0])+"/"+parseInt(split_date[1])+"/"+parseInt(split_date[2])+" "+d.getHours()+":"+d.getMinutes()+":"+d.getSeconds();


var timestamp = Number(new Date());
if(form_date < timestamp){
alert(Please select the date greater than the current date!);

}