function countdown() {
	// Set range date variables
	var start = restock_date_start_range.split("-");
	var end = restock_date_end_range.split("-");
	// Split up range
	var startyear = start[0];
	var startmonth = start[1]-1;
	var startday = start[2];
	var startdate = new Date();
	startdate.setFullYear(startyear,startmonth,startday);
	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 the start and end of the range
	var difference_start = Math.ceil((startdate-date)/(one_day));
	var difference_end = Math.ceil((enddate-date)/(one_day));
	if (difference_start > difference_end) { 
		var start_range = "<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_start < 7) {
			if (difference_start > 0) {
				var start_range = "Ships in "+difference_start+" to";
			} else if (difference_start <= 0 && difference_end > 0) {
				var start_range = "Ships in less than";
			}	
			if (difference_end > 1) {
				var end_range = " "+difference_end+" days.";
			} else if (difference_end == 1) {
				var end_range = " "+difference_end+" day.";
			} else {
				var end_range = "";
			}
		} else if (difference_start == 7) {
			var start_range = "Ships in 1 to";
			if ((difference_end - difference_start) < 7) {
				end_range = " 1 week.";
			}
		} else if (difference_start > 7) {
			var start_range = "Ships in "+Math.ceil((difference_start)/7)+" to";
		}
		if (difference_end > 7 && difference_start >= 7) {
			var end_range = " "+Math.ceil((difference_end)/7)+" weeks.";
		}
		// Different format if range is less than 7 days
		if ((difference_end - difference_start) < 7) {
			if (end_range == "") {
				var start_range = "<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 {
				var start_range = "Ships in about ";
			}
		} else if (difference_start < 0 && difference_end <= 0) { 
				var start_range = "<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.";
		}
	}	
	document.write("<span class=\"availability-information\">Out of Stock. <strong><a href=\"shipping.html\">Order Now! "+start_range+""+end_range+"</a></strong></span>");
}