Solution 1 is right that you have call Date function with a new and there is no CurrentDate function in Javascript for getting current date
so for getting current date you have to use
var CurrentDate = new Date();
Now for comparing two separate date you can directly compare two date objects just as shown in below example
var x=new Date();
x.setFullYear(2013,03,02);
var today = new Date();
if (x>today)
{
alert("Today is before 2nd March 2013");
}
else
{
alert("Today is after 2nd March 2013");
}