var datePicked = '26-Jun-2012';
var datems = Date.parse(datePicked.replace(/-/g, " "));
var dateNow = new Date();
dateNow.setHours(0,0,0,0);
var msDiff = Math.abs(Number(dateNow) - datems);
// 7 Days = 604 800 000 ms
if(msDiff > 604800000) alert("Time difference greater 7 days");