function hilite_div_mainpage(divName) {
	$("#" + divName).effect("highlight", {
		"color" : "red"
	}, 1000);
}

// added chk_seo,chk_seo_parameter for the SEO page http://redmine.hotelkamerveiling.nl/redmine/issues/87
// added chk_ecc_categories for the custom categories #269 & #270
function call_updater(chk_ea, chk_eea, chk_ecc, chk_ecc_categories, chk_vdd, chk_eta, chk_pa, chk_ra, chk_seo, chk_seo_parameter) {
	$.get("scripts/ajax_mainpage.php", {
		chk_ea : chk_ea,
		chk_eea : chk_eea,
		chk_ecc : chk_ecc,
		chk_ecc_categories : chk_ecc_categories,
		chk_vdd : chk_vdd,
		chk_eta : chk_eta,
		chk_pa : chk_pa,
		chk_ra : chk_ra,
		chk_seo : chk_seo,
		chk_seo_parameter : chk_seo_parameter
	}, function(xml) {
		addMessages(xml);
	});
	function addMessages(xml) {
		$("box", xml).each(function(id) {
			box = $("box", xml).get(id);
			name = $("name", box).text();
			content = $("content", box).text();
			chk = $("chk", box).text();
			chk_custom = $("chk_custom", box).text();
			ids = $("ids", box).text();

			if($("#box_" + name).html() != content) {
				$("#box_" + name).html(content);
			}
			if(chk_custom == "true") {
				// Only do this for the custom categories, because the values for the custom categories are combined in one element (#chk_ecc)
				if($("#chk_ecc").text() != chk) {
					$("#chk_ecc").val(chk);
				}
			} else {
				if($("#chk_" + name).text() != chk) {
					$("#chk_" + name).val(chk);
				}
			}
			if(chk_custom == "true") {
				// Only do this for the custom categories, because the values for the custom categories are combined in one element (#ids_ecc)
				if($("#ids_ecc").text() != ids) {
					$("#ids_ecc").val(ids);
				}
			} else {
				if($("#ids_" + name).text() != ids) {
					$("#ids_" + name).val(ids);
				}
			}

		});
		// re-attaches onMouseOver event handlers
		// to the new html
		//growBox_updateHandlers();
	}

}
