var t1=new Date(time1.replace(/-/g, '/')); var t2=new Date(time2.replace(/-/g, '/'));
alert((t2-t1).toString()=="3600000"?"yes":"no");