/*production*/ $(document).ready(function(){$("a.HavePromoCodeLink").click(ApplyPromoCodeDiv);$("button.applyCheckoutConditions").unbind("click").click(OnClickApplyPromotionCode);$("button.selectPlan").unbind("click").click(GetSelectedPlanInfo);$("button.remove_promocode").click(RemoveSelectedPromocode);$("button.submit_checkout_form").unbind("click").click(SubmitCheckoutFormBtnClick);var plan=$("input[name=selectedPlan]").val();$("button#"+plan+"_selectBtn").trigger("click");$('div.blockWithoutProfileSelectionDivs').block({message:"Please search your profile to activate"})});function ApplyPromoCodeDiv(e){e.preventDefault();$(this).hide();$("div.apply_promocode_div").show()}
function GetSelectedPlanInfo(){var plan=$(this).attr("data-plan");$("input[name=selectedPlan]").val(plan);AddBtnClassAndMakeItSelected();aplliedPromoCode=$("input[name=applied_promo_code]").val();calculateDiscountForCurrentSelectedPlanAndPromoCodeAndFillInOrderSummary(aplliedPromoCode)}
function UpdateOrderSummary(subttoal,discount,total,promocode,promoMsg){$("span.total_amount").html(total);$("span#_amount").html(amount);$("div.discount").html(discount);if(promocode==""){$("div.show_applied_promocode_div").hide();$("span.applied_promocode").html("");$("span.congrates_p_div").html("")}else{$("div.show_applied_promocode_div").show();$("span.applied_promocode").html(promocode);$("span.congrates_p_div").html(promoMsg)}}
function AddBtnClassAndMakeItSelected(){var plan=$("input[name=selectedPlan]").val();$("button.selectPlan").removeClass("btn-success").addClass("btn-custom");$("button.selectPlan").parent("div").parent("div").css("border","solid thin #f4d03f");$("button.selectPlan").html("SELECT");$("button#"+plan+"_selectBtn").html("SELECTED");$("button#"+plan+"_selectBtn").removeClass("btn-custom").addClass("btn-success");$("button#"+plan+"_selectBtn").parent("div").parent("div").css("border","solid thin #5cb85c")}
function OnClickApplyPromotionCode(){var promoCode=$("input[name=promotional_code]").val();var forPlan=$("input[name=selectedPlan]").val();var amount=$("button#"+forPlan+"_selectBtn").attr("data-amount");var months=$("button#"+forPlan+"_selectBtn").attr("data-month");if(promoCode==""){ShowErrorForPromoCodeValidity(" Please fill promocode.");return!0}
calculateDiscountForCurrentSelectedPlanAndPromoCodeAndFillInOrderSummary(promoCode)}
function ShowErrorForPromoCodeValidity(errorMsg){$("div.congrates_promocode_div").hide();$("div.apply_promocode_div").show();$("span.errorPromoDiv").html(errorMsg)}
function calculateDiscountForCurrentSelectedPlanAndPromoCodeAndFillInOrderSummary(promoCode){forPlan=$("input[name=selectedPlan]").val();amount=$("button#"+forPlan+"_selectBtn").attr("data-amount");months=$("button#"+forPlan+"_selectBtn").attr("data-month");plansVersion=$("button#"+forPlan+"_selectBtn").attr("data-planVersion");if(promoCode==""){UpdateOrderSummary(amount,0,amount,promoCode,"");return!0}
url=$("meta[name=validatepromocode]").attr("content");data="promoCode="+promoCode+"&forPlan="+forPlan+"&plansVersion="+plansVersion;$.blockUI({message:'Please Wait...'});$.post(url,data,function(data1,status,jqxr){data=$.parseJSON(data1);$.unblockUI();if(data.success==1){$("input[name=applied_promo_code]").val(promoCode);$("span.promoCode").html(promoCode);$("span.discount_cong_msg").html(data.data.discountMsg);$("div.apply_promocode_div").hide();$("div.congrates_promocode_div").show();discount=data.data.discount;total=amount-discount;UpdateOrderSummary(amount,discount,total,promoCode,data.data.discountMsg)}else{ShowErrorForPromoCodeValidity(" "+data.errorMsg);$("input[name=applied_promo_code]").val("");UpdateOrderSummary(amount,0,amount,"","")}})}
function RemoveSelectedPromocode(){$("span.errorPromoDiv").html("");$("input[name=applied_promo_code]").val("");$("div.apply_promocode_div").show();$("div.congrates_promocode_div").hide();calculateDiscountForCurrentSelectedPlanAndPromoCodeAndFillInOrderSummary("")}
function OnChangeSearchBy(){by=$("select[name=searchby]").val();msg="";if(by=='email_id'){msg="Please provide registered email id here"}else if(by=='ph_no'){msg="Please provide registered phone number here"}else if(by=='uid'){msg="Please provide profile id here"}
$("input[name=regcontact]").attr("placeholder",msg);$('input[name=regcontact]').val('')}
$("input[name=regcontact]").keyup(function(e){if(e.which==13){searchProfileToActivate()}});$("input[name=promotional_code]").keyup(function(e){if(e.which==13){OnClickApplyPromotionCode()}});var selectedProfile=0;var searchResult;function searchProfileToActivate(){data={};data.by=$("select[name=searchby]").val();data.searchKey=$("input[name=regcontact]").val();if(data.searchKey==""){msg="Please provide valid search key";if(data.by=='email_id'){msg="Please provide registered email id."}else if(data.by=='ph_no'){msg="Please provide registered phone number."}else if(data.by=='uid'){msg="Please provide profile id you want to activate."}
$("span.errorSearchProfileDiv").html(msg);return!1}
if(data.by=='email_id'){var regex=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!regex.test(data.searchKey)){$("span.errorSearchProfileDiv").html("Invalid Email Id. Please provide correct email address.");return!1}}
$("span.errorSearchProfileDiv").html("");$("#search_profile_result_div").html("
Please waiting..
");url=$("meta[name=SearchByPhoneMeta]").attr("content");$.blockUI({message:'Please Wait...'});jqxr=$.post(url,data,function(data1,status,jqxr){data=$.parseJSON(data1);$.unblockUI();$("#search_profile_result_div").html("");if(data.success==1){if(data.data.length>0){searchResult=data.data;$("#shortprofile").template("shortprofile");$("#search_profile_result_div").html('Please select profile for instant activation.
');selectedProfile=-1;for(i=0;i Error Occured : "+msg+"")}});jqxr.searchbyData=data}
function OnProfiletoActivateSelectionChanged(e){x=$(e).data("index");if(x==undefined){return}
if(x==selectedProfile){return}
selectedProfile=x;$("#selected_profile_div").html("");$("#shortselectedprofile").template("shortselectedprofile");$.tmpl("shortselectedprofile",searchResult[selectedProfile]).addClass("").appendTo("#selected_profile_div");$("#search_profiles_div").hide();$('div.blockWithoutProfileSelectionDivs').unblock()}
function OnSelectedProfileCancel(){selectedProfile=-1;$("#selected_profile_div").html("");$("#search_profiles_div").show();$('div.blockWithoutProfileSelectionDivs').block()}
function launchBOLT(){bolt.launch({key:$("meta[name=pkeyMeta]").attr("content"),txnid:hashData.pdata.txnid,hash:hashData.hash,amount:hashData.pdata.amount,firstname:hashData.pdata.firstname,email:hashData.pdata.email,phone:hashData.pdata.phone,productinfo:hashData.pdata.productinfo,udf5:hashData.pdata.udf5,surl:"https://help.matrisms.com/payu/success",furl:"https://help.matrisms.com/payu/fail",},{responseHandler:function(BOLT){if(BOLT.response.txnStatus!='CANCEL'){var fr='';var form=jQuery(fr);data=form.serialize();StartInstantActivationProcess(BOLT.response)}else{OnBoltResponseCancelOrFaild()}},catchException:function(BOLT){OnBoltException(BOLT)}})}
function StartInstantActivationProcess(data){$('#activatingProfileAlert').modal('show');$('#activatingProfileAlert').find(".afterProfileActivating").removeClass("hide");$('#activatingProfileAlert').find(".afterProfileActivatedSuccess").addClass("hide");$('#activatingProfileAlert').find(".afterProfileActivatedfailed").addClass("hide");if(searchResult.length>0){profile=searchResult[selectedProfile];$("#activatingprofile").template("activatingprofile");$.tmpl("activatingprofile",profile).appendTo($('#activatingProfileAlert').find(".profile"));if(typeof data.txnStatus!=undefined&&data.txnStatus=="SUCCESS"){tmsg=data.payuMoneyId+" # "+data.addedon+" # "+data.net_amount_debit;$("#transInfo").html(tmsg)}}
window.setTimeout(function(){url=$("meta[name=processpayu]").attr("content")+"/success";jqxr=$.post(url,data,function(data1,status,jqxr){data=$.parseJSON(data1);if(data.success==1){$('#activatingProfileAlert').find(".afterProfileActivating").addClass("hide");$('#activatingProfileAlert').find(".afterProfileActivatedSuccess").removeClass("hide");$('#activatingProfileAlert').find(".afterProfileActivatedfailed").addClass("hide")}else{$('#activatingProfileAlert').find(".actdlg_errormsg").html(data.errorMsg);$('#activatingProfileAlert').find(".afterProfileActivating").addClass("hide");$('#activatingProfileAlert').find(".afterProfileActivatedSuccess").addClass("hide");$('#activatingProfileAlert').find(".afterProfileActivatedfailed").removeClass("hide")}})},3000)}
function OnBoltResponseCancelOrFaild(){url=$("meta[name=processpayu]").attr("content")+"/failed";jqxr=$.post(url,hashData,function(data1,status,jqxr){})}
function OnBoltException(BOLT){alert(BOLT.message);url=$("meta[name=processpayu]").attr("content")+"/failed";jqxr=$.post(url,hashData,function(data1,status,jqxr){})}
var hashData="";function SubmitCheckoutFormBtnClick(){refund=$("#refund_policy").is(':checked');terms_con=$("#terms_conditions").is(':checked');if(refund==!1||terms_con==!1){alert("Please check refund policy and terms & conditions.");return!1}
if(searchResult.length==0){alert("Please search profile before checkout");return!1}
if(selectedProfile<=-1||selectedProfile>searchResult.length){alert("Please select the profile to activate");return!1}
$("form[name=SubmitCheckoutForm] input[name=profiledata]").val(JSON.stringify(searchResult[selectedProfile]));data=$("form[name=SubmitCheckoutForm]").serialize();url=$("form[name=SubmitCheckoutForm]").attr("action");$.blockUI({message:'Please Wait...'});$.post(url,data,function(data1,status,jqxr){$.unblockUI();data=$.parseJSON(data1);if(data.success==1&&data.data!=undefined){if(data.data.hash!=undefined){UpiCodeDialogOpen()}}else{$.unblockUI();alert(data.errorMsg)}})}
var timer=null;var upiTimerSecs=120;function UpiCodeDialogOpen(){$('#upiDialogCheckout').modal('show');resetUpiPaymentTime()}
function resetUpiPaymentTime(){$(".UpiPaymentQrCodeDiv").show();$(".afterUpiPaymentTimeOver").hide();clearTimeout(timer);upiTimerSecs=240;StartPaymentTimeInUpiDialog()}
function StartPaymentTimeInUpiDialog(){if(upiTimerSecs>0){min=Math.trunc(upiTimerSecs/60);sec=upiTimerSecs%60;sec=(sec<10)?("0"+sec):sec;msg="Time left: "+min+":"+sec;$("span.upi_payment_timer").html(msg);upiTimerSecs=upiTimerSecs-1;timer=setTimeout(StartPaymentTimeInUpiDialog,1000)}else{$(".UpiPaymentQrCodeDiv").hide();$(".afterUpiPaymentTimeOver").show()}}
function SubmitCheckoutFormBtnClick_OldSubmitBeforeBoltOverlay(){refund=$("#refund_policy").is(':checked');terms_con=$("#terms_conditions").is(':checked');if(refund==!1||terms_con==!1){alert("Please check refund policy and terms & conditions.");return!1}
if(searchResult.length==0){alert("Please search profile before checkout");return!1}
if(selectedProfile<=-1||selectedProfile>searchResult.length){alert("Please select the profile to activate");return!1}
$("form[name=SubmitCheckoutForm] input[name=profiledata]").val(JSON.stringify(searchResult[selectedProfile]));$("form[name=SubmitCheckoutForm]").submit()};function SubmitContactUsForm(e){e.preventDefault();var name=$("form[name=contact_us_form] input[name=name]").val();var email=$("form[name=contact_us_form] input[name=email]").val();var phno=$("form[name=contact_us_form] input[name=contact_num]").val();var msg=$("form[name=contact_us_form] textarea[name=message]").val();if(name==""){$("span.cname").html("Please fill your name.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else if(onlyCharacters(name)==!1){$("span.cname").html("Please fill valid char.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else{$("span.cname").html("")}
if(email==""){$("span.cemail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.cemail").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.cemail").html("")}
if(phno==""){$("span.ccontact_num").html("Please provide your contact number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else if(phno.length<'10'){$("span.ccontact_num").html("Minimum 10 chars required !");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else if(onlyIntger(phno)==!1){$("span.ccontact_num").html("Please fill valid phone number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else{$("span.ccontact_num").html("")}
if(msg==""){$("span.cmessage").html("Please type your Query/Message here.");$('html, body').animate({scrollTop:$("textarea[name=message]").offset().top-100},500);$("textarea[name=message]").focus();return!1}else{$("span.cmessage").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=contact_us_form] span.please_wait_span").removeClass("hide").html("Please wait submitting message...");var data=$("form[name=contact_us_form]").serialize();var url=$("meta[name=ContactUsMeta]").attr("content");jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=contact_us_form]").hide();$(".row_thanks").removeClass("hide");$("form[name=contact_us_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=contact_us_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitSoftwareDevelopmentForm(e){e.preventDefault();var name=$("form[name=software_development_form] input[name=name]").val();var email=$("form[name=software_development_form] input[name=email]").val();var phno=$("form[name=software_development_form] input[name=contact_num]").val();var address=$("form[name=software_development_form] textarea[name=address]").val();var msg=$("form[name=software_development_form] textarea[name=message]").val();if(name==""){$("span.sname").html("Please fill your name.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else{$("span.sname").html("")}
if(email==""){$("span.semail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.semail").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.semail").html("")}
if(phno==""){$("span.scontact_num").html("Please provide your contact number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else{$("span.scontact_num").html("")}
if(address==""){$("span.saddress").html("Please provide your address.");$('html, body').animate({scrollTop:$("textarea[name=address]").offset().top-100},500);$("textarea[name=address]").focus();return!1}else{$("span.saddress").html("")}
if(msg==""){$("span.sorder_des").html("Please type your Query/Message.");$('html, body').animate({scrollTop:$("textarea[name=message]").offset().top-100},500);$("textarea[name=message]").focus();return!1}else{$("span.sorder_des").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=software_development_form] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=software_development_form]").serialize();var url=$("meta[name=SoftwareDevelopmentMeta]").attr("content");jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=software_development_form]").hide();$(".row_thanks").removeClass("hide");$("form[name=software_development_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=software_development_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitIndustrialTrainngForm(e){e.preventDefault();var name=$("form[name=industrial_trainng_form] input[name=fullname]").val();var email=$("form[name=industrial_trainng_form] input[name=email]").val();var phno=$("form[name=industrial_trainng_form] input[name=contact_num]").val();var day=$("form[name=industrial_trainng_form] select[name=day]").val();var month=$("form[name=industrial_trainng_form] select[name=month]").val();var year=$("form[name=industrial_trainng_form] select[name=year]").val();var city=$("form[name=industrial_trainng_form] input[name=city]").val();var cur_college=$("form[name=industrial_trainng_form] input[name=current_college_or_institute]").val();var qualication=$("form[name=industrial_trainng_form] textarea[name=qualification]").val();var tr_start_time=$("form[name=industrial_trainng_form] input[name=traning_starting_from]").val();var tr_to_time=$("form[name=industrial_trainng_form] input[name=traning_to]").val();var interested_in=$("form[name=industrial_trainng_form] select.InterestedIn").val();var software_skills=$("form[name=industrial_trainng_form] textarea[name=software_programming_skills]").val();var msg=$("form[name=industrial_trainng_form] textarea[name=message]").val();if(name==""){$("span.ifullname").html("Please fill your full name.");$('html, body').animate({scrollTop:$("input[name=fullname]").offset().top-100},500);$("input[name=fullname]").focus();return!1}else{$("span.ifullname").html("")}
if(email==""){$("span.iemail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.iemail").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.iemail").html("")}
if(phno==""){$("span.icontact_num").html("Please fill your contact number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else{$("span.icontact_num").html("")}
if(day=="options"||month=="options"||year=="options"){$("span.idob").html("Please select correct date of birth.");$('html, body').animate({scrollTop:$("select[name=day]").offset().top-100},500);return!1}else{$("span.idob").html("")}
if(city==""){$("span.icity").html("Please fill your city.");$('html, body').animate({scrollTop:$("input[name=city]").offset().top-100},500);$("input[name=city]").focus();return!1}else{$("span.icity").html("")}
if(cur_college==""){$("span.iccollege").html("Please fill your current college / institute.");$('html, body').animate({scrollTop:$("input[name=current_college_or_institute]").offset().top-100},500);$("input[name=current_college_or_institute]").focus();return!1}else{$("span.iccollege").html("")}
if(qualication==""){$("span.iqualification").html("Please fill your qualification.");$('html, body').animate({scrollTop:$("textarea[name=qualification]").offset().top-100},500);$("textarea[name=qualification]").focus();return!1}else{$("span.iqualification").html("")}
if(tr_start_time==""){$("span.itstarting").html("Please provide you training period start date.");$('html, body').animate({scrollTop:$("input[name=traning_starting_from]").offset().top-100},500);$("input[name=traning_starting_from]").focus();return!1}else{$("span.itstarting").html("")}
if(tr_to_time==""){$("span.itto").html("Please provide your training period end date.");$('html, body').animate({scrollTop:$("input[name=traning_starting_fo]").offset().top-100},500);$("input[name=traning_starting_to]").focus();return!1}else{$("span.itto").html("")}
if(interested_in==null||interested_in==""){$("span.iinterestedIn").html("Please select your interest.");$('html, body').animate({scrollTop:$("select[name=interested_in]").offset().top-100},500);$("select[name=interested_in]").focus();return!1}else{$("span.iinterestedIn").html("")}
if(software_skills==""){$("span.iskills").html("Please tell us about your software and programming skills.");$('html, body').animate({scrollTop:$("textarea[name=software_programming_skills]").offset().top-100},500);$("textarea[name=software_programming_skills]").focus();return!1}else{$("span.iskills").html("")}
if(msg==""){$("span.imessage").html("Please type your query or message here.");$('html, body').animate({scrollTop:$("textarea[name=message]").offset().top-100},500);$("textarea[name=message]").focus();return!1}else{$("span.imessage").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=industrial_trainng_form] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=industrial_trainng_form]").serialize();var url=$("meta[name=IndustrialTrainngMeta]").attr("content");jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=industrial_trainng_form]").hide();$(".row_thanks").removeClass("hide");$("form[name=industrial_trainng_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=industrial_trainng_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitVolunteerProgramForm(e){e.preventDefault();var name=$("form[name=formtoSubmit] input[name=fullname]").val();var email=$("form[name=formtoSubmit] input[name=email]").val();var phno=$("form[name=formtoSubmit] input[name=contact_num]").val();var day=$("form[name=formtoSubmit] select[name=day]").val();var month=$("form[name=formtoSubmit] select[name=month]").val();var year=$("form[name=formtoSubmit] select[name=year]").val();var qualication=$("form[name=formtoSubmit] textarea[name=qualification]").val();var experience=$("form[name=formtoSubmit] textarea[name=experience]").val();var skills=$("form[name=formtoSubmit] textarea[name=skills]").val();var address=$("form[name=formtoSubmit] textarea[name=address]").val();if(name==""){$("span.ifullname").html("Please fill your full name.");$('html, body').animate({scrollTop:$("input[name=fullname]").offset().top-100},500);$("input[name=fullname]").focus();return!1}else{$("span.ifullname").html("")}
if(email==""){$("span.iemail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.iemail").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.iemail").html("")}
if(phno==""){$("span.icontact_num").html("Please fill your contact number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else{$("span.icontact_num").html("")}
if(day=="options"||month=="options"||year=="options"){$("span.idob").html("Please select correct date of birth.");$('html, body').animate({scrollTop:$("select[name=day]").offset().top-100},500);return!1}else{$("span.idob").html("")}
if(qualication==""){$("span.iqualification").html("Please fill your qualification.");$('html, body').animate({scrollTop:$("textarea[name=qualification]").offset().top-100},500);$("textarea[name=qualification]").focus();return!1}else{$("span.iqualification").html("")}
if(experience==""){$("span.iexperience").html("if you don't have experience write fresher here.");$('html, body').animate({scrollTop:$("input[name=city]").offset().top-100},500);$("textarea[name=experience]").focus();return!1}else{$("span.iexpeirence").html("")}
if(skills==""){$("span.iskills").html("Please tell us about your computer skills.");$('html, body').animate({scrollTop:$("textarea[name=software_programming_skills]").offset().top-100},500);return!1}else{$("span.iskills").html("")}
if(address==""){$("span.imessage").html("Please type your address here.");$('html, body').animate({scrollTop:$("textarea[name=address]").offset().top-100},500);$("textarea[name=address]").focus();return!1}else{$("span.iaddress").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=formtoSubmit] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=formtoSubmit]").serialize();var url=$("meta[name=SendEmailMeta]").attr("content");jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=formtoSubmit]").hide();$(".row_thanks").removeClass("hide");$("form[name=formtoSubmit] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=formtoSubmit] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitFranchisesForm(e){e.preventDefault();var first_name=$("form[name=franchises_form] input[name=first_name]").val();var last_name=$("form[name=franchises_form] input[name=last_name]").val();var day=$("form[name=franchises_form] select[name=day]").val();var month=$("form[name=franchises_form] select[name=month]").val();var year=$("form[name=franchises_form] select[name=year]").val();var mobile=$("form[name=franchises_form] input[name=mobile_number]").val();var city=$("form[name=franchises_form] input[name=city]").val();var email=$("form[name=franchises_form] input[name=email]").val();var occupation=$("form[name=franchises_form] textarea[name=current_occupation]").val();var address=$("form[name=franchises_form] textarea[name=address]").val();var experience=$("form[name=franchises_form] textarea[name=experience]").val();if(first_name==""){$("span.ffirst_name").html("Please fill first name.");$('html, body').animate({scrollTop:$("input[name=first_name]").offset().top-100},500);$("input[name=first_name]").focus();return!1}else{$("span.ffirst_name").html("")}
if(last_name==""){$("span.flast_name").html("Please fill last name.");$('html, body').animate({scrollTop:$("input[name=last_name]").offset().top-100},500);$("input[name=last_name]").focus();return!1}else{$("span.flast_name").html("")}
if(day=="options"||month=="options"||year=="options"){$("span.fdob").html("Please proide your date of birth correctly.");$('html, body').animate({scrollTop:$("select[name=day]").offset().top-100},500);return!1}else{$("span.fdob").html("")}
if(mobile==""){$("span.fmobile_number").html("Please fill your mobile number.");$('html, body').animate({scrollTop:$("input[name=mobile_number]").offset().top-100},500);$("input[name=mobile_number]").focus();return!1}else{$("span.fmobile_number").html("")}
if(email==""){$("span.femail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.femail").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.femail").html("")}
if(city==""){$("span.fcity").html("Please provide your current city.");$('html, body').animate({scrollTop:$("input[name=city]").offset().top-100},500);$("input[name=city]").focus();return!1}else{$("span.fcity").html("")}
if(occupation==""){$("span.fcurrent_occupation").html("Please tell us your current occupation.");$('html, body').animate({scrollTop:$("textarea[name=current_occupation]").offset().top-100},500);$("textarea[name=current_occupation]").focus();return!1}else{$("span.fcurrent_occupation").html("")}
if(address==""){$("span.faddress").html("Please provide address.");$('html, body').animate({scrollTop:$("textarea[name=address]").offset().top-100},500);$("textarea[name=address]").focus();return!1}else{$("span.faddress").html("")}
if(experience==""){$("span.fexperience").html("Do you have any experience in this feild ?");$('html, body').animate({scrollTop:$("textarea[name=experience]").offset().top-100},500);$("textarea[name=experience]").focus();return!1}else{$("span.fexperience").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=franchises_form] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=franchises_form]").serialize();var url=$("meta[name=FranchisesMeta]").attr("content");var jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=franchises_form]").hide();$(".row_thanks").removeClass("hide");$("form[name=franchises_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=franchises_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitAfterPaymentForm(e){e.preventDefault();var name=$("form[name=after_payment_form] input[name=name]").val();var mobile=$("form[name=after_payment_form] input[name=contact_num]").val();var email=$("form[name=after_payment_form] input[name=email]").val();var payment_date=$("form[name=after_payment_form] input[name=date_of_payment]").val();var payment_des=$("form[name=after_payment_form] textarea[name=payment_description]").val();var message=$("form[name=after_payment_form] textarea[name=message]").val();if(name==""){$("span.pname").html("Please fill your full name.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else{$("span.pname").html("")}
if(mobile==""){$("span.contact_num").html("Please provide your contant number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else{$("span.contact_num").html("")}
if(email==""){$("span.email").html("Please fill up your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.email").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.email").html("")}
if(payment_date==""){$("span.date_of_payment").html("Please tell us the date of payment.");$('html, body').animate({scrollTop:$("input[name=date_of_payment]").offset().top-100},500);$("input[name=date_of_payment]").focus();return!1}else{$("span.date_of_payment").html("")}
if(payment_des==""){$("span.payment_description").html("Please provide details of payment.");$('html, body').animate({scrollTop:$("textarea[name=payment_description]").offset().top-100},500);$("textarea[name=payment_description]").focus();return!1}else{$("span.payment_description").html("")}
if(message==""){$("span.message").html("Please type your Query/Message here.");$('html, body').animate({scrollTop:$("textarea[name=message]").offset().top-100},500);$("textarea[name=message]").focus();return!1}else{$("span.message").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=after_payment_form] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=after_payment_form]").serialize();var url=$("meta[name=AfterPaymentMeta]").attr("content");var jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=after_payment_form]").hide();$(".row_thanks").removeClass("hide");$("form[name=after_payment_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=after_payment_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitSearchQuestionForm(e){e.preventDefault();var name=$("form[name=question_search_form] input[name=qsname]").val();var email=$("form[name=question_search_form] input[name=qsemail]").val();var phno=$("form[name=question_search_form] input[name=qscontact_num]").val();var msg=$("form[name=question_search_form] textarea[name=qsmessage]").val();if(name==""){$("span.qsname").html("Please fill your name.");$('html, body').animate({scrollTop:$("input[name=qsname]").offset().top-100},500);$("input[name=qsname]").focus();return!1}else{$("span.qsname").html("")}
if(email==""){$("span.qsemail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=qsemail]").offset().top-100},500);$("input[name=qsemail]").focus();return!1}else{$("span.qsemail").html("")}
if(phno==""){$("span.qscontact_num").html("Please provide your contact number.");$('html, body').animate({scrollTop:$("input[name=qscontact_num]").offset().top-100},500);$("input[name=qscontact_num]").focus();return!1}else{$("span.qscontact_num").html("")}
if(msg==""){$("span.cmessage").html("Please type your Query/Message here.");$('html, body').animate({scrollTop:$("textarea[name=qsmessage]").offset().top-100},500);$("textarea[name=qsmessage]").focus();return!1}else{$("span.cmessage").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=question_search_form] span.please_wait_span").removeClass("hide").html("Please wait submitting message...");var data="name="+name+"&email="+email+"&contact_num="+phno+"&message="+msg;var url=$("form[name=question_search_form]").attr("action");var jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$('#myModal').modal('hide');$("input[name=searchQue]").val("");$("form[name=question_search_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=question_search_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function validEmail(valid_email){var emailReg=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;return emailReg.test(valid_email)}
function SubmitGrievanceForm(e){e.preventDefault();var name=$("form[name=grievance_concern_form] input[name=name]").val();var proid=$("form[name=grievance_concern_form] input[name=profile_id]").val();var phno=$("form[name=grievance_concern_form] input[name=phone_number]").val();var ccode=$("form[name=grievance_concern_form] input[name=ccode]").val();var email=$("form[name=grievance_concern_form] input[name=email]").val();var rtype=$("form[name=grievance_concern_form] select[name=regarding_type]").val();var desc=$("form[name=grievance_concern_form] textarea[name=description]").val();if(name==""){$("span.name").html("Please fill your full name.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else if(onlyCharacters(name)==!1){$("span.name").html("Please fill valid char.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else{$("span.name").html("")}
if(proid==""){$("span.profile_id").html("Please provide your profile id on matrisms.");$('html, body').animate({scrollTop:$("input[name=profile_id]").offset().top-100},500);$("input[name=profile_id]").focus();return!1}else if(onlyIntger(proid)==!1){$("span.profile_id").html("Please valid profile id.");$('html, body').animate({scrollTop:$("input[name=profile_id]").offset().top-100},500);$("input[name=profile_id]").focus();return!1}else{$("span.profile_id").html("")}
if(ccode==""){$("span.ccode").html("Please provide country code.");$('html, body').animate({scrollTop:$("input[name=ccode]").offset().top-100},500);$("input[name=ccode]").focus();return!1}else{$("span.ccode").html("")}
if(phno==""){$("span.phone_number").html("Please provide your phone number on matrisms.");$('html, body').animate({scrollTop:$("input[name=phone_number]").offset().top-100},500);$("input[name=phone_number]").focus();return!1}else if(phno.length<'10'){$("span.phone_number").html("Minimum 10 chars required !");$('html, body').animate({scrollTop:$("input[name=phone_number]").offset().top-100},500);$("input[name=phone_number]").focus();return!1}else if(onlyIntger(phno)==!1){$("span.phone_number").html("Please fill valid phone number.");$('html, body').animate({scrollTop:$("input[name=phone_number]").offset().top-100},500);$("input[name=phone_number]").focus();return!1}else{$("span.phone_number").html("")}
if(email==""){$("span.email").html("Please fill up your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.email").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.email").html("")}
if(rtype=="select"){$("span.regarding_type").html("Please tell us the regarding.");$('html, body').animate({scrollTop:$("select[name=regarding_type]").offset().top-100},500);$("select[name=regarding_type]").focus();return!1}else{$("span.regarding_type").html("")}
if(desc==""){$("span.description").html("Please fill description.");$('html, body').animate({scrollTop:$("textarea[name=description]").offset().top-100},500);$("textarea[name=description]").focus();return!1}else{$("span.description").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=grievance_concern_form] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=grievance_concern_form]").serialize();var url=$("meta[name=SendGrievanceMeta]").attr("content");var jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=grievance_concern_form]").hide();$("div.customAlertDiv").hide();$(".row_thanks").removeClass("hide");$("form[name=grievance_concern_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=grievance_concern_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function onlyIntger(valid_int){var validInt=/^[1-9]\d*$/;return validInt.test(valid_int)}
function onlyCharacters(valid_char){var validChar=/^[a-zA-Z]+$/;return validChar.test(valid_char)}
function SubmitDeleteAccountForm(e){e.preventDefault();var name=$("form[name=delete_account_form] input[name=fullname]").val();var email=$("form[name=delete_account_form] input[name=email]").val();var password=$("form[name=delete_account_form] input[name=password]").val();var phno=$("form[name=delete_account_form] input[name=contact_num]").val();var day=$("form[name=delete_account_form] select[name=day]").val();var month=$("form[name=delete_account_form] select[name=month]").val();var year=$("form[name=delete_account_form] select[name=year]").val();var msg=$("form[name=delete_account_form] textarea[name=message]").val();if(name==""){$("span.ifullname").html("Please fill your full name.");$('html, body').animate({scrollTop:$("input[name=fullname]").offset().top-100},500);$("input[name=fullname]").focus();return!1}else{$("span.ifullname").html("")}
if(email==""){$("span.iemail").html("Please fill your email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else if(validEmail(email)===!1){$("span.iemail").html("Please fill correct email address.");$('html, body').animate({scrollTop:$("input[name=email]").offset().top-100},500);$("input[name=email]").focus();return!1}else{$("span.iemail").html("")}
if(password==""){$("span.ipassword").html("Please provide password !!");$('html, body').animate({scrollTop:$("input[name=password]").offset().top-100},500);$("input[name=password]").focus();return!1}else{$("span.icontact_num").html("")}
if(phno==""){$("span.icontact_num").html("Please fill your contact number.");$('html, body').animate({scrollTop:$("input[name=contact_num]").offset().top-100},500);$("input[name=contact_num]").focus();return!1}else{$("span.icontact_num").html("")}
if(day=="options"||month=="options"||year=="options"){$("span.idob").html("Please select correct date of birth.");$('html, body').animate({scrollTop:$("select[name=day]").offset().top-100},500);return!1}else{$("span.idob").html("")}
if(msg==""){$("span.imessage").html("Please provide reason to delete your account !!");$('html, body').animate({scrollTop:$("textarea[name=message]").offset().top-100},500);$("textarea[name=message]").focus();return!1}else{$("span.imessage").html("")}
$.blockUI({message:'Please Wait...'});$(this).hide();$("form[name=delete_account_form] span.please_wait_span").removeClass("hide").html("Please wait...");var data=$("form[name=delete_account_form]").serialize();var url=$("meta[name=SendDeleteAccountRequestToAdmin]").attr("content");var jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("form[name=delete_account_form]").hide();$(".row_thanks").removeClass("hide");$("form[name=delete_account_form] span.please_wait_span").html("")}else{alert("Some error occured while submitting the information. Please try again.");jqxr.ele.show();$("form[name=delete_account_form] span.please_wait_span").html(data.data)}},"json");jqxr.ele=$(this)}
function SubmitCheckoutForm(e){e.preventDefault();var name=$("form[name=checkout_form] input[name=name]").val();var proid=$("form[name=checkout_form] input[name=profile_id]").val();var ccode=$("form[name=checkout_form] input[name=ccode]").val();var phno=$("form[name=checkout_form] input[name=phone_number]").val();var desc=$("form[name=checkout_form] textarea[name=description]").val();if(name==""){$("span.name").html("Please fill your full name.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else if(onlyCharacters(name)==!1){$("span.name").html("Please fill valid char.");$('html, body').animate({scrollTop:$("input[name=name]").offset().top-100},500);$("input[name=name]").focus();return!1}else{$("span.name").html("")}
if(proid==""){$("span.profile_id").html("Please provide your profile id on matrisms.");$('html, body').animate({scrollTop:$("input[name=profile_id]").offset().top-100},500);$("input[name=profile_id]").focus();return!1}else if(onlyIntger(proid)==!1){$("span.profile_id").html("Please valid profile id.");$('html, body').animate({scrollTop:$("input[name=profile_id]").offset().top-100},500);$("input[name=profile_id]").focus();return!1}else{$("span.profile_id").html("")}
if(ccode==""){$("span.ccode").html("Please provide country code.");$('html, body').animate({scrollTop:$("input[name=ccode]").offset().top-100},500);$("input[name=ccode]").focus();return!1}else{$("span.ccode").html("")}
if(phno==""){$("span.phone_number").html("Please provide your phone number on matrisms.");$('html, body').animate({scrollTop:$("input[name=phone_number]").offset().top-100},500);$("input[name=phone_number]").focus();return!1}else if(phno.length<'10'){$("span.phone_number").html("Minimum 10 chars required !");$('html, body').animate({scrollTop:$("input[name=phone_number]").offset().top-100},500);$("input[name=phone_number]").focus();return!1}else if(onlyIntger(phno)==!1){$("span.phone_number").html("Please fill valid phone number.");$('html, body').animate({scrollTop:$("input[name=phone_number]").offset().top-100},500);$("input[name=phone_number]").focus();return!1}else{$("span.phone_number").html("")}
if(desc==""){$("span.description").html("Please fill description.");$('html, body').animate({scrollTop:$("textarea[name=description]").offset().top-100},500);$("textarea[name=description]").focus();return!1}else{$("span.description").html("")}
$.blockUI({message:'Please Wait...'})};var Tawk_API=Tawk_API||{},Tawk_LoadStart=new Date();(function(){var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];s1.async=!0;s1.src='https://embed.tawk.to/5a82a2914b401e45400ce4cc/default';s1.charset='UTF-8';s1.setAttribute('crossorigin','*');s0.parentNode.insertBefore(s1,s0)})();$(document).ready(function(){$("a.feedback").click(HandleFeedBackClick);$("a.SearchSubmitBtn").click(SearchSubmitDialogOpen);$(".AfterPaymentSubmitBtn").unbind("click").click(SubmitAfterPaymentForm);$(".InterestedIn").select2();$(".industrialTrainngBtn").unbind("click").click(SubmitIndustrialTrainngForm);$(".contactUsBtn").unbind("click").click(SubmitContactUsForm);$(".deleteAccountBtn").unbind("click").click(SubmitDeleteAccountForm);$(".franchisesBtn").unbind("click").click(SubmitFranchisesForm);$(".GrievanceSubmitBtn").unbind("click").click(SubmitGrievanceForm);$(".volunteerFormBtnSubmission").unbind("click").click(SubmitVolunteerProgramForm);$(".SoftwareDevSubmitBtn").unbind("click").click(SubmitSoftwareDevelopmentForm)});function SearchSubmitDialogOpen(){searchQue=$("input[name=searchQue]").val();$("form[name=question_search_form] textarea[name=qsmessage]").val(searchQue);$('#myModal').modal('show');$("button.SubmitSearchQueBtn").unbind("click").click(SubmitSearchQuestionForm)}
function HandleFeedBackClick(e){e.preventDefault();queid=$(this).attr("data-id");bt=$(this).attr("href");hcbt=bt.substr(1);if(hcbt=="yes"){$.blockUI({message:'Please Wait...'});feedback_text="";url=$("meta[name=SendFeddbackEmailMeta]").attr("content");data="queid="+queid+"&bt="+hcbt+"&feedback_text="+feedback_text;jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("div#nothelpfull_div_"+queid).hide();$("div#feedback_"+queid).hide();$("div#feedback_status_"+jqxr.queid).html("Thanks for your feedback.").show()}else{$("div#feedback_status_"+jqxr.queid).html("Something went wrong please contact to admin.").show()}},"json");jqxr.queid=queid;jqxr.hcbt=hcbt}else if(hcbt=="no"){$("div#nothelpfull_div_"+queid).show(500)}else{$.blockUI({message:'Please Wait...'});feedback_text=$(this).html();url=$("meta[name=SendFeddbackEmailMeta]").attr("content");data="queid="+queid+"&bt="+hcbt+"&feedback_text="+feedback_text;jqxr=$.post(url,data,function(data,status,jqxr){$.unblockUI();if(data.success==1){$("div.nothelpfull_div_"+queid).html("");$("div#feedback_"+queid).hide();$("div#feedback_status_"+jqxr.queid).html("Thanks for your feedback.").show()}else{$("div#feedback_status_"+jqxr.queid).html("Something went wrong please contact to admin.").show()}},"json");jqxr.queid=queid;jqxr.hcbt=hcbt}};$(document).ready(function(){$("div.plan-summary").bind("click",function(event){if($(this).hasClass("active")){$(this).toggleClass("active")}else{$("td.active").removeClass("active");$("div.active").removeClass("active");$(this).addClass("active").parent().addClass("active")}})});function toggle_elite_plans_row(type){if(type=="show"){$("div.elite_plan_row").removeClass("hide");$("span.show_elite_plan").addClass("hide");$("span.hide_elite_plan").removeClass("hide")}else{$("div.elite_plan_row").addClass("hide");$("span.show_elite_plan").removeClass("hide");$("span.hide_elite_plan").addClass("hide")}}