function updateColors(someElement, theForm){
	if(someElement.name == "majorColor" || someElement.name == "mostly"){
		if(someElement.name == "majorColor"){
			newValue = theForm["majorColor"].value;
		} else if(someElement.name == "mostly"){
			newValue = theForm["mostly"].value;
		}
		theForm["belly"].value = newValue;
		theForm["chest"].value = newValue;
		theForm["back"].value = newValue;
		theForm["rear"].value = newValue;
		theForm["tail"].value = newValue;
		theForm["head"].value = newValue;
		theForm["frontLeftPaw"].value = newValue;
		theForm["frontRightPaw"].value = newValue;
		theForm["backRightPaw"].value = newValue;
		theForm["backLeftPaw"].value = newValue;
		theForm["face"].value = newValue;
		theForm["rightEar"].value = newValue;
		theForm["leftEar"].value = newValue;
	}
}

function updateColorsWebWorkLostReport(someElement, theForm){
	if(someElement.name == "lostReportDTO/sketchDTO/majorColor"){
		newValue = theForm["lostReportDTO/sketchDTO/majorColor"].value;
		theForm["lostReportDTO/sketchDTO/belly"].value = newValue;
		theForm["lostReportDTO/sketchDTO/chest"].value = newValue;
		theForm["lostReportDTO/sketchDTO/back"].value = newValue;
		theForm["lostReportDTO/sketchDTO/rear"].value = newValue;
		theForm["lostReportDTO/sketchDTO/tail"].value = newValue;
		theForm["lostReportDTO/sketchDTO/head"].value = newValue;
		theForm["lostReportDTO/sketchDTO/frontLeftPaw"].value = newValue;
		theForm["lostReportDTO/sketchDTO/frontRightPaw"].value = newValue;
		theForm["lostReportDTO/sketchDTO/backRightPaw"].value = newValue;
		theForm["lostReportDTO/sketchDTO/backLeftPaw"].value = newValue;
		theForm["lostReportDTO/sketchDTO/face"].value = newValue;
		theForm["lostReportDTO/sketchDTO/rightEar"].value = newValue;
		theForm["lostReportDTO/sketchDTO/leftEar"].value = newValue;
	}
}

function updateColorsWebWorkFoundReport(someElement, theForm){
	if(someElement.name == "foundReportDTO/sketchDTO/majorColor"){
		newValue = theForm["foundReportDTO/sketchDTO/majorColor"].value;
		theForm["foundReportDTO/sketchDTO/belly"].value = newValue;
		theForm["foundReportDTO/sketchDTO/chest"].value = newValue;
		theForm["foundReportDTO/sketchDTO/back"].value = newValue;
		theForm["foundReportDTO/sketchDTO/rear"].value = newValue;
		theForm["foundReportDTO/sketchDTO/tail"].value = newValue;
		theForm["foundReportDTO/sketchDTO/head"].value = newValue;
		theForm["foundReportDTO/sketchDTO/frontLeftPaw"].value = newValue;
		theForm["foundReportDTO/sketchDTO/frontRightPaw"].value = newValue;
		theForm["foundReportDTO/sketchDTO/backRightPaw"].value = newValue;
		theForm["foundReportDTO/sketchDTO/backLeftPaw"].value = newValue;
		theForm["foundReportDTO/sketchDTO/face"].value = newValue;
		theForm["foundReportDTO/sketchDTO/rightEar"].value = newValue;
		theForm["foundReportDTO/sketchDTO/leftEar"].value = newValue;
	}

}

function updateColorsWebWorkSearch(someElement, theForm){
	if(someElement.name == "searchBean/sketchDTO/majorColor"){
		newValue = theForm["searchBean/sketchDTO/majorColor"].value;
		theForm["searchBean/sketchDTO/belly"].value = newValue;
		theForm["searchBean/sketchDTO/chest"].value = newValue;
		theForm["searchBean/sketchDTO/back"].value = newValue;
		theForm["searchBean/sketchDTO/rear"].value = newValue;
		theForm["searchBean/sketchDTO/tail"].value = newValue;
		theForm["searchBean/sketchDTO/head"].value = newValue;
		theForm["searchBean/sketchDTO/frontLeftPaw"].value = newValue;
		theForm["searchBean/sketchDTO/frontRightPaw"].value = newValue;
		theForm["searchBean/sketchDTO/backRightPaw"].value = newValue;
		theForm["searchBean/sketchDTO/backLeftPaw"].value = newValue;
		theForm["searchBean/sketchDTO/face"].value = newValue;
		theForm["searchBean/sketchDTO/rightEar"].value = newValue;
		theForm["searchBean/sketchDTO/leftEar"].value = newValue;
	}
}
