/***********************************************************************
*
* NEXT DAY SHIPPING INPUT
*
************************************************************************/

function nextDayShipping(){

var myDays =
["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
var myMonths = ["January", "February", "March", "April", "May", "June", 
"July", "August", "September", "October", "November", "December"]
var myDates = ["0", "1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", 
"16th", "17th", "18th", "19th", "20th", "21st", "22nd", "23rd", "24th", "25th", "26th", "27th", "28th", "29th", "30th", "31st"]


var currentTime1 = new Date()
var month1 = currentTime1.getUTCMonth()
var day1 = currentTime1.getUTCDate()
var weekDay1 = currentTime1.getUTCDay()
var hours1 = currentTime1.getUTCHours()

if ((weekDay1 < 4) && (weekDay1 > 0) && (hours1 <=15)){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 1);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if ((weekDay1 < 4) && (weekDay1 > 0) && (hours1 > 15)){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 2);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if (weekDay1 == 0){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 2);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if (weekDay1 == 6){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 3);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if((weekDay1 == 4)&& (hours1 > 15)){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 4);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if((weekDay1 == 4)&& (hours1 <= 15)){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 1);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if((weekDay1 == 5)&& (hours1 > 15)){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 4);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
else if((weekDay1 == 5)&& (hours1 <= 15)){
currentTime1.setUTCDate(currentTime1.getUTCDate() + 3);
day1 = currentTime1.getUTCDate();
weekDay1 = currentTime1.getUTCDay();
month1 = currentTime1.getUTCMonth();
document.write("<span class='schedule'>Next Day:</span> " + 
myDays[weekDay1] + ", " + myMonths[month1] + " " + myDates[day1] + "");
}
}

/***********************************************************************
*
* SATURDAY SHIPPING INPUT
*
************************************************************************/

function saturdayShipping(){
	
var myDays =
["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
var myMonths = ["January", "February", "March", "April", "May", "June", 
"July", "August", "September", "October", "November", "December"]
var myDates = ["0", "1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", 
"16th", "17th", "18th", "19th", "20th", "21st", "22nd", "23rd", "24th", "25th", "26th", "27th", "28th", "29th", "30th", "31st"]


var currentTime2 = new Date()
var month2 = currentTime2.getUTCMonth()
var day2 = currentTime2.getUTCDate()
var weekDay2 = currentTime2.getUTCDay()
var hours2 = currentTime2.getUTCHours()
var mins2 = currentTime2.getUTCMinutes()


if(weekDay2 == 0){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 6);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if(weekDay2 == 1){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 5);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if(weekDay2 == 2){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 4);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if(weekDay2 == 3){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 3);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if(weekDay2 == 4){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 2);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if((weekDay2 == 5) &&(hours2 <= 15)){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 1);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if((weekDay2 == 5) &&(hours2 > 15)){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 8);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
else if(weekDay2 == 6){
currentTime2.setUTCDate(currentTime2.getUTCDate() + 7);
day2 = currentTime2.getUTCDate();
weekDay2 = currentTime2.getUTCDay();
month2 = currentTime2.getUTCMonth();
document.write("<span class='schedule'>Saturday:</span> " + 
myDays[weekDay2] + ", " + myMonths[month2] + " " + myDates[day2] + "</p>");
}
}
