function site_price_validate() {
	stat = 1;
		$("#site_name").css({ borderColor: "#e0e0e0" });
		$("#site_mail").css({ borderColor: "#e0e0e0" });
		$("#site_phrase").css({ borderColor: "#e0e0e0" });
		$("#site_valid").css({ borderColor: "#e0e0e0" });

	if ($("#site_name").val().length < 5) {
		stat = 0;
		$("#site_name").animate({ borderColor: "#ff0000" },1000);
	}
	if ($("#site_mail").val().length < 5) {
		stat = 0;
		$("#site_mail").animate({ borderColor: "#ff0000" },1000);
	}
	if ($("#site_phrase").val().length < 2) {
		stat = 0;
		$("#site_phrase").animate({ borderColor: "#ff0000" },1000);
	}
	if ($("#site_valid").val().length < 1) {
		stat = 0;
		$("#site_valid").animate({ borderColor: "#ff0000" },1000);
	}

	if (stat == 0) {
		return false;
	} else {
		get(document.getElementById("site_price"), "/formularz_send_price", "form_price_post");
		return false;
	}
}

function site_contact_validate() {
	stat = 1;
		$("#name").css({ borderColor: "#e0e0e0" });
		$("#mail").css({ borderColor: "#e0e0e0" });
		$("#mess").css({ borderColor: "#e0e0e0" });
		$("#site_valid").css({ borderColor: "#e0e0e0" });

	if ($("#name").val().length < 5) {
		stat = 0;
		$("#name").animate({ borderColor: "#ff0000" },1000);
	}
	if ($("#mail").val().length < 5) {
		stat = 0;
		$("#mail").animate({ borderColor: "#ff0000" },1000);
	}
	if ($("#mess").val().length < 2) {
		stat = 0;
		$("#mess").animate({ borderColor: "#ff0000" },1000);
	}
	if ($("#site_valid").val().length < 1) {
		stat = 0;
		$("#site_valid").animate({ borderColor: "#ff0000" },1000);
	}
	if (stat == 0) {
		return false;
	} else {
		return true;
	}
}

