function ValidService()
{

if (document.forms[0].ServiceDropDownList.selectedIndex <= 0)
	{
	alert("Please choose a valid service.");
	return false;
	}
else
	{
	return true;
	}
}

function ValidShipment()
{

if (document.forms[0].MoveTypeDropDownList.selectedIndex <= 0)
	{
	alert("Please choose a valid shipment type.");
	return false;
	}
else
	{
	return true;
	}
}

function ShowDate()
{
var dateObj = new Date();
var currentYear = dateObj.getYear();
document.forms[0].FromMonthDropDownList.value = parseInt(dateObj.getMonth())+1;
document.forms[0].FromDayDropDownList.value = dateObj.getDate();
if (currentYear < 2000)
	currentYear = currentYear + 1900;
document.forms[0].FromYearDropDownList.value = currentYear;

document.forms[0].ServiceDropDownList.selectedIndex = 0;
document.forms[0].MoveTypeDropDownList.selectedIndex = 0;

return true;
}

function CheckDate()
{
var dateObj = new Date();
var mm = dateObj.getMonth();
var dd = dateObj.getDate();
var yy = dateObj.getYear();
if (yy < 2000)
	yy = yy + 1900;
var currentDate = new Date(yy, mm, dd);
var newDate = new Date(document.forms[0].FromYearDropDownList.value,document.forms[0].FromMonthDropDownList.value-1,document.forms[0].FromDayDropDownList.value);

if (currentDate > newDate)
	{
	alert("The date you entered is prior to the current date.  Please choose a valid service date.");
	return false;
	}
else
	{
	return true;
	}
}
