var sGBLFBContent='
'; function shareopen(){ if($SUL('#shareplugin').hasClass("show")) { $SUL('#shareplugin').addClass("hide").removeClass("show"); $SUL('#sharebtn').removeClass("active"); } else{ $SUL('#shareplugin').addClass("show").removeClass("hide"); $SUL('#sharebtn').addClass("active"); } $SUL('#feedform').addClass("hide").removeClass("show"); $SUL(document.body).css('overflow', ''); } function shareclose(){ $SUL('#shareplugin').addClass("hide").removeClass("show"); $SUL('#sharebtn').removeClass("active"); } function fnfbkshow() { $SUL('#feedform').addClass("show").removeClass("hide"); $SUL(document.body).attr("style", "overflow:hidden"); $SUL('#shareplugin').addClass("hide").removeClass("show"); $SUL('#sharebtn').removeClass("active"); } function fnfbkclose() { $SUL('#feedform').addClass("hide").removeClass("show"); $SUL(document.body).css('overflow', ''); } function fncsshow() { $SUL('#feedbackLeft').addClass("hide").removeClass("show"); $SUL('#feedbackRight').addClass("show").removeClass("hide"); $SUL('#feedfbk').removeClass("active"); $SUL('#feedcs').addClass("active"); $SUL('#divsuccessresult').html(''); fnInitGBLFBFm('cs'); } function fnfbfrmshow() { $SUL('#feedbackLeft').addClass("show").removeClass("hide"); $SUL('#feedbackRight').addClass("hide").removeClass("show"); $SUL('#feedfbk').addClass("active"); $SUL('#feedcs').removeClass("active"); $SUL('#divsuccessresult').html(''); $SUL('#hdncsfileupload').val(''); } function fnsetdefaulttxt() { Sulekha.Validate.defaultTxt("fbktitle", "Enter your idea"); Sulekha.Validate.defaultTxt("fbktxtareadesc", "Describe Your idea"); Sulekha.Validate.defaultTxt("fbktxtemail", "Enter Your Email"); Sulekha.Validate.defaultTxt("fbktxtphone", "Enter Your Contact number"); Sulekha.Validate.defaultTxt("cstitle", "Message Subject"); Sulekha.Validate.defaultTxt("cstxtareadesc", "How can we help you today?"); Sulekha.Validate.defaultTxt("cstxtemail", "Enter Your Email"); Sulekha.Validate.defaultTxt("cstxtphone", "Enter Your Contact number"); fnfbfrmshow(); $SUL('#csclick').bind('click', function () { fbcsform('cs'); }); $SUL('#fbkclick').bind('click', function () { fbcsform('fbk'); }); $SUL('#drpdwncat').change(function () { var getindex = document.getElementById("drpdwncat").selectedIndex; if ($SUL('#tbl_' + getindex).length > 0) { $SUL('#tblcustomnumber').addClass("show").removeClass("hide"); $SUL('.tblcls').hide(); $SUL('#tbl_' + getindex).show(); $SUL('#drpdwncat_error').html(''); } else { $SUL('#drpdwncat_error').html("Please select from the category"); $SUL('#tblcustomnumber').addClass("hide").removeClass("show"); } }); $SUL(document).keyup(function (e) { if (e.keyCode == 27) { fnfbkclose(); } }); } function fngblreplacespl(dirname) { return dirname.toLowerCase().replace(/[^a-z0-9]+/ig, "-"); /*finds all sequences of non alphanumeric characters.*/ } function fbcsform(pfix) { var validatestatus = new Array(); var sSerialize = ''; var validflag = true; var rno = Math.floor(Math.random() * 11); var cookieval = Sulekha.Common.getCookie("frmfbkhtml"); if (cookieval != "" && cookieval != undefined && cookieval != null) { $SUL('#hdncsfileupload').val(cookieval); } if (pfix == 'fbk') validatestatus[0] = InputFieldtoValidatev2(pfix + "title", 'Enter your idea', "Enter your idea", /^[a-zA-z\s]+$/, "Please enter only letters."); else validatestatus[0] = InputFieldtoValidatev2(pfix + "title", 'Message Subject', "Enter Message Subject", /^[a-zA-z\s]+$/, "Please enter only letters."); validatestatus[1] = InputFieldtoValidatev2(pfix + "txtemail", 'Enter Your Email', "Email is required", /^[^@]+@[^@.]+\.[^@]*\w\w$/, "Enter Proper Mail Id."); validatestatus[2] = InputFieldtoValidatev2(pfix + "txtphone", 'Enter Your Contact number', "Contactno is required"); if (pfix == 'fbk') validatestatus[3] = InputFieldtoValidatev2(pfix + "txtareadesc", 'Describe Your idea', "Comments is required"); else validatestatus[3] = InputFieldtoValidatev2(pfix + "txtareadesc", 'How can we help you today?', "Comments is required"); if (pfix == 'cs') { if ($SUL('#drpdwncat').val() != "- Select an Option -") { validatestatus[4] = true; } else { validatestatus[4] = false; $SUL('#drpdwncat_error').html("Please select from the category"); } } for (var iProcess = 0; iProcess < validatestatus.length; iProcess++) { if (validatestatus[iProcess] != undefined && validatestatus[iProcess] != true) { validflag = false; break; } } if (pfix == "cs") sSerialize = $SUL("#frmsupportteam").serialize() + "&styp=cs"; else sSerialize = $SUL("#frmfeedbackteam").serialize() + "&styp=fbk"; if (validflag) { Sulekha.Auth.JSONGetData('https://us.sulekha.com/common/feedbackmailv3.aspx?retfnname=fngblsuccessfeed&' + sSerialize); $SUL('#divsuccessresult').html('