function contactUs_submit() { var t = $("input#contactUs_username_fix").val(), a = $("input#contactUs_email_fix").val(), e = $("input#contactUs_number_fix").val(), i = $("input#sourcecontactUs_fix").val(), n = $("select#selectCountryValue").val(), c = $("input#contactUs_comment_fix").val(), o = $("input#rS_contactUs_fix").val(), l = $("select#selectCountryValue").val(), u = $("input#gclid_fix").val(), s = $("input#gbraid_fix").val(), m = $("input#wbraid_fix").val(); if(e=='' || e==undefined ){ $("#mobile-error-contact_fix").html(`
Mobile No. is Required
`); return false; } if(e.length > 10 || e.length < 10){ $("#mobile-error-contact_fix").html(`
Phone is not valid
`); return false; } jQuery("#contactUs_submit_wait_fix").html("
"), jQuery.ajax({ type: "POST", url: "main/validate_mee_with_inline_message", dataType: "json", data: { name: t, email: a, country: n, mobile: e, source_block: i, comment: c, referer: o, countryCode: l, gclid: u, gbraid: s, wbraid: m }, success: function(i) { i && (console.log(i), 0 == i.st && (jQuery("#name-error-contact_fix").html(i.fname), jQuery("#email-error-contact_fix").html(i.email), jQuery("#mobile-error-contact_fix").html(i.mobile), jQuery("#contactUs_submit_wait_fix").html("
")), 1 == i.st && (jQuery("#name-error-contact_fix").html(i.fname), jQuery("#email-error-contact_fix").html(i.email), jQuery("#mobile-error-contact_fix").html(i.mobile), window.location = "/thanks?username=" + t + "&email=" + a + "&mobile=" + e + "&countrycode=" + l)) } }) } function projectcontactUs_submit(t) { var a = $("input#f_contactUs_username_fix" + t).val(), e = $("input#f_contactUs_email_fix" + t).val(), i = $("input#f_contactUs_number_fix" + t).val(), n = $("input#f_sourcecontactUs_fix" + t).val(), c = $("select#selectCountryValue").val(), o = $("input#f_contactUs_comment_fix" + t).val(), l = $("input#f_rS_contactUs_fix" + t).val(), u = $("select#selectCountryValue").val(); jQuery("#fcontactUs_submit_wait_fix" + t).html("
"), jQuery.ajax({ type: "POST", url: "main/validate_mee_with_inline_message", dataType: "json", data: { name: a, email: e, country: c, mobile: i, source_block: n, comment: o, referer: l, countryCode: u }, success: function(n) { n && (0 == n.st && (jQuery("#f_contactUs_error_username_fix" + t).html(n.fname), jQuery("#f_contactUs_error_email_fix" + t).html(n.email), jQuery("#f_contactUs_error_number_fix" + t).html(n.mobile), jQuery("#fcontactUs_submit_wait_fix" + t).html("
")), 1 == n.st && (jQuery("#f_contactUs_error_username_fix" + t).html(n.fname), jQuery("#f_contactUs_error_email_fix" + t).html(n.email), jQuery("#f_contactUs_error_number_fix" + t).html(n.mobile), window.location = "/thanks?username=" + a + "&email=" + e + "&mobile=" + i + "&countrycode=" + u)) } }) } function submit_pop_chk() { var t = $("input#contactUs_username_fixpup").val(), a = $("input#contactUs_email_fixpup").val(), e = $("input#contactUs_number_fixpup").val(), i = $("input#sourcecontactUs_fixpup").val(), n = $("select#selectCountryValue").val(), c = $("input#contactUs_comment_fixpup").val(), o = $("input#rS_contactUs_fixpup").val(), l = $("select#selectCountryValue").val(); if(e=='' || e==undefined ){ $("#mobile-error-contact_fixpup").html(`
Mobile No. is Required
`); return false; } if(e.length > 10 || e.length < 10){ $("#mobile-error-contact_fixpup").html(`
Phone is not valid
`); return false; } jQuery("#contactUs_submit_wait_fixpup").html(""), jQuery.ajax({ type: "POST", url: "main/validate_mee_with_inline_message", dataType: "json", data: { name: t, email: a, country: n, mobile: e, source_block: i, comment: c, referer: o, countryCode: l }, success: function(i) { i && (0 == i.st && (jQuery("#name-error-contact_fixpup").html(i.fname), jQuery("#email-error-contact_fixpup").html(i.email), jQuery("#mobile-error-contact_fixpup").html(i.mobile), jQuery("#contactUs_submit_wait_fixpup").html("")), 1 == i.st && (jQuery("#name-error-contact_fixpup").html(i.fname), jQuery("#email-error-contact_fixpup").html(i.email), jQuery("#mobile-error-contact_fixpup").html(i.mobile), window.location = "/thanks?username=" + t + "&email=" + a + "&mobile=" + e + "&countrycode=" + l)) } }) } function submit_pop_chk1() { var t = $("input#contactUs_username_fixpup1").val(), a = $("input#contactUs_email_fixpup1").val(), e = $("input#contactUs_number_fixpup1").val(), i = $("input#sourcecontactUs_fixpup1").val(), n = $("select#selectCountryValue").val(), c = $("input#contactUs_comment_fixpup1").val(), o = $("input#rS_contactUs_fixpup1").val(), l = $("select#selectCountryValue").val(); u = $("input#gclid_fixpup1").val(), s = $("input#gbraid_fixpup1").val(), m = $("input#wbraid_fixpup1").val(); if(e=='' || e==undefined ){ $("#mobile-error-contact_fixpup1").html(`
Mobile No. is Required
`); return false; } if(e.length > 10 || e.length < 10){ $("#mobile-error-contact_fixpup1").html(`
Phone is not valid
`); return false; } jQuery("#contactUs_submit_wait_fixpup1").html(""), jQuery.ajax({ type: "POST", url: "main/validate_mee_with_inline_message", dataType: "json", data: { name: t, email: a, country: n, mobile: e, source_block: i, comment: c, referer: o, countryCode: l, gclid: u, gbraid: s, wbraid: m }, success: function(i) { i && (0 == i.st && (jQuery("#name-error-contact_fixpup1").html(i.fname), jQuery("#email-error-contact_fixpup1").html(i.email), jQuery("#mobile-error-contact_fixpup1").html(i.mobile), jQuery("#contactUs_submit_wait_fixpup1").html("")), 1 == i.st && (jQuery("#name-error-contact_fixpup1").html(i.fname), jQuery("#email-error-contact_fixpup1").html(i.email), jQuery("#mobile-error-contact_fixpup1").html(i.mobile), window.location = "/thanks?username=" + t + "&email=" + a + "&mobile=" + e + "&countrycode=" + l)) } }) } function submit_pop_chkdpdf() { var t = $("input#contactUs_username_fixpupdpdf").val(), a = $("input#contactUs_email_fixpupdpdf").val(), e = $("input#contactUs_number_fixpupdpdf").val(), i = $("input#sourcecontactUs_fixpupdpdf").val(), n = $("select#selectCountryValue").val(), c = $("input#contactUs_comment_fixpupdpdf").val(), o = $("input#rS_contactUs_fixpupdpdf").val(), l = $("input#uploadpdf").val(), u = $("input#gclid_fixpupdpdf").val(), s = $("input#gbraid_fixpupdpdf").val(), m = $("input#wbraid_fixpupdpdf").val(), r = $("select#selectCountryValue").val(); if(e=='' || e==undefined ){ $("#mobile-error-contact_fixpupdpdf").html(`
Mobile No. is Required
`); return false; } if(e.length > 10 || e.length < 10){ $("#mobile-error-contact_fixpupdpdf").html(`
Phone is not valid
`); return false; } jQuery("#contactUs_submit_wait_fixpup1dpdf").html("
"), jQuery.ajax({ type: "POST", url: "main/validate_mee_with_inline_message", dataType: "json", data: { name: t, email: a, country: n, mobile: e, source_block: i, comment: c, referer: o, countryCode: r, gclid: u, gbraid: s, wbraid: m }, success: function(i) { i && (0 == i.st && (jQuery("#name-error-contact_fixpupdpdf").html(i.fname), jQuery("#email-error-contact_fixpupdpdf").html(i.email), jQuery("#mobile-error-contact_fixpupdpdf").html(i.mobile), jQuery("#contactUs_submit_wait_fixpup1dpdf").html("
")), 1 == i.st && (jQuery("#name-error-contact_fixpupdpdf").html(i.fname), jQuery("#email-error-contact_fixpupdpdf").html(i.email), jQuery("#mobile-error-contact_fixpupdpdf").html(i.mobile), "pdf" == l.split(".").pop() && window.open(l), window.location = "/thanks?username=" + t + "&email=" + a + "&mobile=" + e + "&countrycode=" + r)) } }) }