if( typeof(questiontype) == "undefined") { questiontype = "" } document.writeln(""); $(function() { var html = ""; html ="
"; $("#question-tour-pay").html(html); $("#formquestion").stick_in_parent({parent: "#mcontent"}); $("#questionBox .infoRequired p").show(); $("#questionBox .infoRequired label").inFieldLabels(); $("#Starting_Date").datepicker({ showAnim:"fadeIn", duration:0, minDate: 2, maxDate:"2y", numberOfMonths: 2, showButtonPanel: true }); $(document).on("click",".error", function() { $(this).parent("p").find(".arrowDownTest").remove(); }); $("#formquestion").validate({ rules: { realname:{ required: true, minlength: 1 }, yemail:{ required: true, email: true }, Starting_Date: { required: true, date: true }, padult: { required: true } }, messages: { realname: "Enter your name", yemail: "Enter your email address.", Starting_Date : "Select the starting date", padult: "Select the adults and infants number" }, errorLabelContainer: "#questionBox .infoRequired p .arrowDownTest", errorPlacement: function(error, element) { var error_tip = "