function condition(con,year){
	var msg = "";
	switch(con){
		case '2 Parts Machine':
			msg = "Parts Only - Poor condition and age. Sold for parts only. Manuals and special wrenches optional. No guarantee.";
		break;
		case '3 Fair':
			msg = "";
		break;
		case '4 Excellent':
			msg = "";
		break;
		case '5 Like New':
			msg = "Like New - Looks and runs like a new machine. No repairs or major adjustments needed. Manuals and special wrenches. Guaranteed.";
		break;
		case '6 Reconditioned':
			msg = "Reconditioned - Disassembled and thoroughly cleaned. Replaced worn parts as needed. Safety equipment is in place. Machine tested with material. Machine painted if needed. Safety and notice placards installed on machine. Manuals and special wrenches. Guaranteed.";
		break;
		case '7 As Is':
			msg = "As Is - Needs repairs due to worn, broken, or defective parts. Possibly missing parts and/or tooling. Manuals and special wrenches optional. No guarantee.";
		break;
		case '8 Very Good':
			msg = "";
		break;
		case '9 ATFS':
			con = "9 As Taken From Service";
			msg = "As Taken From Service - Machine was operating when taken from service. Any repairs will be on time and materials basis.";
		break;
		case '10 Cleaned/Checked':
			msg = "Cleaned and Checked - Taken from service in good operating condition. Claned thoroughly. Minor repairs as needed. Tested machine with materials. Installed safety and noticed placards. Guaranteed.";
		break;
		case '11 Used, Very Good':
			msg = "";
		break;
		case '12 Demo':
			msg = "";
		break;
		case '13 Used, Good':
			msg = "";
		break;
		case '14 New':
			msg = "";
		break;
		case '15 Average':
			msg = "";
		break;
		case '16 Good':
			msg = "";
		break;
		case '17 With Warranty':
			msg = "";
		break;
		case '18 Sale Pending':
			msg = "";
		break;
		case '19 Sold':
			msg = "";
		break;
		case 'No Write-Up':
			msg = "No Write-Up - No write up available at this time.";
		break;
		default:
			msg = "";
		break;
	}
	if(msg !== ""){
		var ar = con.split(" ");
		document.write("<a class=\"condition\" title=\""+msg+"\"><b>Condition:</b> "+con.substr(ar[0].length+1,con.length+1)+"</a>");
		document.write("<br/>");
	}
	if(year !== "" && msg !== ""){
		document.write("<b>Manufacture Year:</b> "+year);
		document.write("<br/>");
	}
	//document.write("Here is where it should be.");
}
