//this function will reset the list of days depending on the month and year selectedfunction cleanDayList(location) {
	if (location == '1') {
		var el_month = document.getElementById('movingmonth');
		var el_day = document.getElementById('movingday');
		var el_year = document.getElementById('movingyear');
	} else if (location == '2') {
		var el_month = document.getElementById('movingmonth2');
		var el_day = document.getElementById('movingday2');
		var el_year = document.getElementById('movingyear2');
	}
	
	var xmth, xyr, ldy;
	var sdy;
	
	xmth=parseInt(el_month.value)+1;
	xyr=el_year.value;
	ldy=el_day.length;
	
	switch (parseInt(xmth)) {
		case 1:sdy = 31; break;
		case 3:sdy = 31; break;		case 5:sdy = 31; break;		case 7:sdy = 31; break;		case 8:sdy = 31; break;		case 10:sdy = 31; break;		case 12:sdy = 31; break;		case 2: !(xyr%4)?sdy=29:!(xyr%100)?sdy=29:sdy=28; break;		case 4:sdy = 30; break;		case 6:sdy = 30; break;		case 9:sdy = 30; break;		case 11:sdy = 30; break;	}  	
	for (var i=ldy; i>sdy; i--) {
		el_day.options[i-1]=null;   	}
	
	for (var i=ldy; i<sdy; i++) { 	
		newday=new Option((i+1),(i+1));
		el_day.options[i]=newday;
	}
	
	return true;}

function focusZipCode(location) {
	if (document.getElementById(location).value.indexOf('e.g., ') == 0) {
		document.getElementById(location).value='';
		document.getElementById(location).setAttribute('maxLength',5);
	}
}

function showHideCompanyName(typeOfMove) {
	if (typeOfMove == 'Company-Paid') {companyNameErrorDiv
		document.getElementById('companynamelabel').style.fontWeight = 'bold';
		document.getElementById('companyNameDiv').style.display = 'block';
		try {
			var companyNameErrorDiv = document.getElementById('companyNameErrorDiv');
			companyNameErrorDiv.style.display = 'block';
		} catch(e) {
		}
	} else if (typeOfMove == 'Self-Paid') {
		document.getElementById('companyNameDiv').style.display = 'none';
		try {
			var companyNameErrorDiv = document.getElementById('companyNameErrorDiv');
			companyNameErrorDiv.style.display = 'none';
		} catch(e) {
		}
		document.getElementById('companynamelabel').style.fontWeight = 'normal';
	}
}