function loadCalendar(yr, mt, cls)
{
	$("."+cls).load('?m='+mt+'&y='+yr+' .'+cls+' #jajax');
	return false;
}

function confirm_link(message, url) {
	if(confirm(message)) location.href = url;
}


jQuery(window).load(function() {
	/*var neg_margin = (1920-$(window).width())/2;
	$("#fbanner").css("margin-left", -neg_margin);*/
	
	$(".grp .grms:first").show();
	$(".grp h2:first").addClass("d");
	$(".grp .grms:not(:first)").hide();
	$(".grp h2").click(function(){
		$(this).toggleClass("d").next(".grms").slideToggle("slow")
		.siblings(".grms:visible").slideUp("slow");
		$(this).siblings("h3.d").removeClass("d");
	});

checkContact = function () {
	err_cnt = 0;
	for(i=0; i<10;i++) {
		if ($("#field"+i).val() == "" || $("#field"+i).val() == "Choose the inquiry type") {
			//alert('field '+i+' empty');
			$("#field"+i).attr("style", "border: 1px solid red; background: pink;");
			err_cnt++;
		} else {
			$("#field"+i).removeAttr("style");
		}
	}
	if (err_cnt == 0) {
		$('form[name|=form]').submit();
	}
}


	
});