function GetCurDay(nDay) {
	var Days = new Array("Sun","Mon","Tue","Wed",
	                     "Thu","Fri","Sat");
	return Days[nDay]
}

function GetCurMonth(nMonth) {
	var Months = new Array("Jan","Feb","March","April","May","June",
	                       "July","August","Sept","Oct","Nov","Dec");
	return Months[nMonth] 	  	 
}

function CurrentDateString() {
	var Today = new Date();
	var suffix = "th";
	switch (Today.getDate())
	{
		case 1:
		case 21:
		case 31: 
			suffix = "st"; break;
		case 2:
		case 22:
			suffix = "nd"; break;
		case 3:
		case 23:
			suffix = "rd"; break;
	};

	var strDate = GetCurDay(Today.getDay()) + " " + GetCurMonth(Today.getMonth());
	strDate += " " + Today.getDate() + suffix + ", " + Today.getFullYear();
	return strDate
	}
	
function DefCurMonth(){
	var theday = new Date();
	var themonth = theday.getMonth();
	return themonth;
}

function CurrentMonthMM1(){
	var now = new Date();
	var shipmonth = now.getMonth();
	var curmonth = shipmonth + 1;
	if(curmonth < 10){
		var monthstring = "0"+curmonth;
	}else{
		monthstring = curmonth;
	}
	document.getElementById("MM1").value = monthstring;
}

function CurrentMonthMM2(){
	var now = new Date();
	var shipmonth = now.getMonth();
	var curmonth = shipmonth + 1;
	if(curmonth < 10){
		var monthstring = "0"+curmonth;
	}else{
		monthstring = curmonth;
	}
	document.getElementById("MM2").value = monthstring;
}

function CurrentDayDD1(){
	var now = new Date();
	var curday = now.getDate();
	if(curday < 10){
		var daystring = "0"+curday;
	}else{
		daystring = curday;
	}
	document.getElementById("DD1").value = daystring;
}

function CurrentDayDD2(){
	var now = new Date();
	var curday = now.getDate();
	if(curday < 10){
		var daystring = "0"+curday;
	}else{
		daystring = curday;
	}
	document.getElementById("DD2").value = daystring;
}

function CurrentYearYY1(){
	var now = new Date();
	var curyear = now.getFullYear();
	document.getElementById("YY1").value = curyear;
}

function CurrentYearYY2(){
	var now = new Date();
	var curyear = now.getFullYear();
	document.getElementById("YY2").value = curyear;
}

function OneDate(objForm){
	CurrentMonthMM1();
	CurrentDayDD1();
	CurrentYearYY1();
}

function TwoDates(objForm){
	CurrentMonthMM1();
	CurrentDayDD1();
	CurrentYearYY1();
	CurrentMonthMM2();
	CurrentDayDD2();
	CurrentYearYY2();
}