%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
function ValidateEmail(email) { var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; return expr.test(email); }; function isNumber(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { return false; } return true; } $(document).ready(function(){ $("#phone").keypress(function (e) { if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) { //display error message $("#errmsg").html("<strong>Enter Number Only</strong>").show().fadeOut("slow"); return false; } }); }); $('#submits').click(function() { $.validator.addMethod("noStartEndWhiteSpaces", function (value, element) { return this.optional(element) || /^[a-zA-Z0-9](?:[a-zA-Z0-9 ]*[a-zA-Z0-9])?$/.test(value); }, "Spaces are not allowed."); $("#contact_form").validate({ rules: { full_name: { required: true, noStartEndWhiteSpaces: true, minlength: 5, minlength: 1 }, email: { required: true, minlength: 2 }, date_time: { required: "Enter Date Time", }, phone: { required: true, minlength: 10, phone: true }, /*department: { required: true, minlength: 9 },*/ message1: { required: true, noStartEndWhiteSpaces: true, minlength: 1 }, message1: "required" }, messages: { full_name: { required: "Enter Full Name", }, email: { required: "Enter Email id", }, date_time: { required: "Enter Date Time", }, phone: { required: "Enter Phone No", minlength: "Contact-No should be 10 Digit." }, /* department: { required: "Select Department", },*/ message1: { required: "Enter Additional Information", noSpace: true }, }, //submitHandler: submit submitHandler: function() { var full_name = $("#full_name").val(); var email = $("#email").val(); var phone = $("#phone").val(); var department = $("#department").val(); var date_time = $("#date_time").val(); var message1 = $("#message1").val(); /*var ids = []; $('input[name=student_name1]:text').each(function() { ids.push($(this).val()); }); ids = ids.join(","); */ if(full_name!=='' && email!=='' && phone!=='' && department!=='' && date_time!=='' && message1!==''){ var dataString = 'full_name='+ full_name+ '&email='+email+'&phone='+phone+'&department='+department+'&date_time='+date_time+'&message1='+message1; $.ajax({ type: "POST", dataType: "html", url: "common.php", data: dataString, 'contentType': "application/x-www-form-urlencoded; charset=UTF-8", cache: false, beforeSend: function() { $('#res3').html('Please Wait'); }, success: function(htmldata) { if(htmldata==1){ alert("Email are already exist."); $("span.email_val").html("<img src='images/invalid.png'> Email are already exist."); $("span.loading").html(""); setTimeout(function() { $("span.email_val").hide(); }, 8000); return false; } else if(htmldata==0){ $('#contact_form').html("<h2 style='color:#0C9; text-align:center;background:#fff;padding:6px;'><span>Thank you for registration with us.</span></h2>") .append("<span style='text-align:center; color:#000;'><p>We will contact as soon as possible.</p></span>") .hide() .fadeIn(1000, function() { $('#contact_form').append(""); }); } } }); } } }); }); /*});*/ /*$('#submit2').click(function(e) { e.preventDefault(); });*/