function countdowndate() {
	// Restock Date
	var end = restock_date.split("-");
	var endyear = end[0];
	var endmonth = end[1]-1;
	var endday = end[2];
	var enddate = new Date();
	enddate.setFullYear(endyear,endmonth,endday);
	// Today's Date
	var date = new Date();
	// Numeric value of one day
	var one_day = 1000*60*60*24;
	// Finding number of days from today to restock date
	var difference = Math.ceil((enddate-date)/(one_day));
	if (difference < 7) {
		if (difference > 1) {
			var message = " Ships in "+difference+" days.";
		} else if (difference == 1) {
			var message = " Ships in "+difference+" day.";
		} else {
			var message = "<br>There is currently a delay in our production of this model. Your order will ship when inventory is replenished. Your card will not be charged till ship date and we will contact you for order confirmation at that time.";
		}
	} else {
		if (difference < 8) {
			var message = " Ships in "+Math.ceil((difference)/7)+" week.";
		} else {
			var message = " Ships in "+Math.ceil((difference)/7)+" weeks.";
		}
	}
	document.write("<span class=\"availability-information\">Out of Stock. <strong><a href=\"shipping.html\">Order Now!"+message+"</a></strong></span>");
}
