var my1 = document.getElementById('date1').value;//prompt("Enter a start date: ")
var my2 = document.getElementById('date2').value;//prompt("Enter a end date: ")
my1 = my1.split("/");
my2 = my2.split("/");
sDate = new Date(my1[2],my1[1]-1,my1[0]);
eDate = new Date(my2[2],my2[1]-1,my2[0]);
var daysDiff = Math.round((eDate-sDate)/86400000);