function yur () {
	$("a.cl").bind('click', function() {
	//		alert('click');
		$('tr').hide();
		$('tr:first').show();
		$("td.last").hide();
		$(this).closest('tr').show();
		$(this).hide();
		$.scrollTo('#w100');
		$.ajax({
			url: "/ajax/submit.php",
			context: "#w100",
			success: function(html){
				$("#w100").append(html);

				$("#submit").bind('click', function() {
					var error=false;
					if ($("#f_name").val().length < 3) {
						error = true;
						$("#f_name").addClass("error");
					} else {
						$("#f_name").removeClass("error");
					}

					if ($("#f_phone").val().length < 6) {
						error = true;
						$("#f_phone").addClass("error");
					} else {
						$("#f_phone").removeClass("error");
					}

					var str="";
					$('td.a_left').each(function() {
						 if ($(this).is(":visible")) {
						 str = str + ' ' + $(this).text();
						 }
					});

					//alert (str);
					$("#f_hidden").val(str);

					if (!error) {
						$.ajax({
							url: "/ajax/send.php?send=1&id=129&name="+escape($("#f_name").val()) + "&phone=" + escape($("#f_phone").val())+"&mail="+escape($("#f_mail").val())+"&text="+escape($("#f_text").val())+"&hidden="+escape($("#f_hidden").val())+'&id=129',
							context: ".form",
							success: function(html){
								$(".form").html(html);
								$(".send_but").hide();
								$("#ozakaz").hide();

								$("#submit").bind('click', function() {
									var error=false;
									if ($("#f_name").val().length < 3) {
										error = true;
										$("#f_name").addClass("error");
									} else {
										$("#f_name").removeClass("error");
									}

									if ($("#f_phone").val().length < 6) {
										error = true;
										$("#f_phone").addClass("error");
									} else {
										$("#f_phone").removeClass("error");
									}

	//								alert("Result = " + error);
								});
							}
						});
					}
				});
			}
		});
	});
}
