function highlightStars(star_id, star_count) { // Function to clear the text within a form field
	var star = document.getElementById(star_id); // Get element
	if (star) { // If exists
		star.onmouseover = function () { // On hover
			for (i=1; i<star_count; i++) {
				var previousStar = "lnk-" + i + "-star";
				document.getElementById(previousStar).className = 'on';				
			}
		}
		star.onmouseout = function () { // On out
			for (i=1; i<star_count; i++) { // For each previous star
				var previousStar = "lnk-" + i + "-star";
				document.getElementById(previousStar).className = '';			
			}
		}
	}
}

window.onload = function () { // On load
	highlightStars("lnk-2-star", 2);
	highlightStars("lnk-3-star", 3);
	highlightStars("lnk-4-star", 4);
	highlightStars("lnk-5-star", 5);
    // Clear specific fields
    clearField('mtrjt-mtrjt', 'Your email address');
    clearField('f-header-login-email', 'Login with your email');
    clearField('f-download-email');
    clearField('f-job', 'e.g. Inventor');
    
}
