		
	
		{"id":27876,"date":"2019-07-09T21:18:13","date_gmt":"2019-07-09T21:18:13","guid":{"rendered":"http:\/\/multisite.leadmanagesystem.com\/landingpage\/refi-2\/"},"modified":"2021-08-12T11:06:43","modified_gmt":"2021-08-12T11:06:43","slug":"glucose-monitoring","status":"publish","type":"page","link":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/glucose-monitoring\/","title":{"rendered":"Glucose Monitoring"},"content":{"rendered":"<p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-parallax-none nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"background-color: no;background-image: url(&quot;http:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-content\/uploads\/sites\/2\/2019\/07\/glucose-background-1.jpg&quot;);background-position: left top;background-repeat: no-repeat;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-bottom: 0px;margin-top: 0px;border-width: 0px 0px 0px 0px;border-color:#bcbcbc;border-style:solid;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_2_5 2_5 fusion-two-fifth fusion-column-first\" style=\"width:40%;width:calc(40% - ( ( 4% ) * 0.4 ) );margin-right: 4%;margin-top:0px;margin-bottom:20px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\" style=\"background-position:left top;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;padding: 0px 0px 0px 0px;\"><div class=\"imageframe-align-center\"><div class=\"fusion-image-frame-bottomshadow image-frame-shadow-1\"><style>.fusion-image-frame-bottomshadow.image-frame-shadow-1{display:inline-block}.element-bottomshadow.imageframe-1:before, .element-bottomshadow.imageframe-1:after{-webkit-box-shadow: 0 17px 10px rgba(0,0,0,0.4);box-shadow: 0 17px 10px rgba(0,0,0,0.4);}<\/style><span class=\" fusion-imageframe imageframe-bottomshadow imageframe-1 element-bottomshadow hover-type-none bg-white\"><img decoding=\"async\" src=\"http:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-content\/uploads\/sites\/2\/2019\/07\/glucose.png\" class=\"img-responsive\"\/><\/span><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:1px;width:100%;\"><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 content-area nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"background-color: no;background-position: left top;background-repeat: no-repeat;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-bottom: 0px;margin-top: 0px;border-width: 0px 0px 0px 0px;border-color:#eae9e9;border-style:solid;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_2_5 2_5 fusion-two-fifth fusion-column-first form-div\" style=\"width:40%;width:calc(40% - ( ( 4% ) * 0.4 ) );margin-right: 4%;margin-top:0px;margin-bottom:20px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\" style=\"background-position:left top;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;padding: 0px 0px 0px 0px;\"><div class=\"fusion-text fusion-text-1\"><div class=\"bg-color\" style=\"background: #02427a none repeat scroll 0 0; color: #fff;\">\n<h1><strong><span style=\"color: #ffffff;\">Qualify for a FREE Glucose Monitor!<\/span><\/strong><\/h1>\n<\/div>\n<\/div><div class=\"fusion-text fusion-text-2\"><div class=\"bg-color\" style=\"background: #f26522 none repeat scroll 0px 0px; color: #ffffff; text-align: center;\">It only takes a minute to qualify.<\/div>\n<\/div><div class=\"fusion-section-separator section-separator triangle fusion-section-separator-1\"><div class=\"fusion-section-separator-svg\" style=\"border-bottom:1px solid #f6f6f6;margin-left: 0px;margin-right: 0px;\"><div class=\"divider-candy-arrow bottom\" style=\"top:0px;border-top-color: #f26522;\"><\/div><div class=\"divider-candy bottom\" style=\"bottom:-21px;border-bottom:1px solid #f6f6f6;border-left:1px solid #f6f6f6;\"><\/div><\/div><div class=\"fusion-section-separator-spacer\"><div class=\"fusion-section-separator-spacer-height\" style=\"height:1px;\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-3\"><div class=\"lpl-form-container\"><div id=\"lpl-show-error-msg\" class=\"lpl-show-error-msg\"><\/div><div id=\"lpl-show-loader\" style=\"display:none;\"><img decoding=\"async\" alt=\"Loading...\" src=\"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-content\/plugins\/landing_page_location\/images\/loader.gif\"><\/div><div class=\"lpl-form-panel ttest\" id=\"lpl-form-panel\"><\/div><script type=\"text\/javascript\">\n\t\t\t\t\t\t\/\/console.log(\"herere192.88.135.3\");\n\t\t\t\t\t\tvar locdata  = \"\/\/\"+window.location.hostname;\n\t\t\t\t\t\tvar getdataloc = locdata+\"\/lms\/index.php?option=com_getdata&\";\n\t\t\t\t\t\t\/\/var getdataloc = locdata+\":82\/lms\/index.php?option=com_getdata&\";\n\t\t\t\t\t\tif(getdataloc.indexOf(\"192.168.4.9\") !== -1){\n\t\t\t\t\t\t\tvar getdataloc = locdata+\":82\/lms\/index.php?option=com_getdata&\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\tif(getdataloc.indexOf(\"legalnationwide.net\") !== -1){\n\t\t\t\t\t\t\t\tvar getdataloc = \"\/\/multisite.leadmanagesystem.com\/lms\/index.php?option=com_getdata&\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconsole.log(\"getdataloc\"+getdataloc);\n                        var errmsg = \"\";\n                        var zip = \"\";\n                        var catg = \"\";\n                        var subcatg = \"\";\n                        var dmsid = \"\";\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\tconst queryString = window.location.search;\n\t\t\t\t\t\t\tconst urlParams = new URLSearchParams(queryString);\n\t\t\t\t\t\t\tvar formid = \"3189\";\n\t\t\t\t\t\t\tvar subkey = \"\";\n\t\t\t\t\t\t\tvar subkey2 = \"\";\n\t\t\t\t\t\t\tvar subkey3 = \"\";\n\t\t\t\t\t\t\tvar sub2 = \"\";\n\t\t\t\t\t\t\tvar istest = 0;\n\t\t\t\t\t\t\tif(urlParams.get(\"istest\")){\n\t\t\t\t\t\t\t\tvar istest = urlParams.get(\"istest\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvar ismultistep = \"no\";\n\t\t\t\t\t\t\tvar treetype = \"\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar clr_sub = \"f26522\";\n\t\t\t\t\t\t\tvar text_sub = \"SUBMIT\";\n\t\t\t\t\t\t\tvar clr_pro = \"959595\";\n\t\t\t\t\t\t\tvar rad_sub = \"3\";\n\t\t\t\t\t\t\tvar colorsubgrd = \"f26522\";\n\t\t\t\t\t\t\tvar brdclr = \"f26522\";\n\t\t\t\t\t\t\tvar postId = \"\";\n\t\t\t\t\t\t\tvar return_url = \"0\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\turl=getdataloc+\"task=ajx_landingform_details&id=\"+formid+\"&subkey=\"+subkey+\"&ismultistep=\"+ismultistep+\"&colorsub=\"+clr_sub+\"&textsub=\"+text_sub+\"&colorproc=\"+clr_pro+\"&radsub=\"+rad_sub+\"&colorsubgrd=\"+colorsubgrd+\"&brdclr=\"+brdclr+\"&postId=\"+postId+\"&return_url=\"+return_url+\"&dmsid=\"+dmsid+\"&treetype=\"+treetype+\"&istest=\"+istest;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(subkey2!=\"\"){url=url+\"&subkey2=\"+subkey2;}\n\t\t\t\t\t\t\tif(subkey3!=\"\"){url=url+\"&subkey3=\"+subkey3;}\n\t\t\t\t\t\t\tif(sub2!=\"\"){url=url+\"&sub2=\"+sub2;}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"\";\n\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\tcontext: document.body,\n\t\t\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\t\t\tsetlandingformdata(response);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terror: function (jqXHR, textStatus, errorThrown) {\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-error-msg\").innerHTML=\"Error loading form\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\tjQuery.urlParam = function(name){\n\t\t\t\t\t\t\tvar results = new RegExp(\"[\\?&]\" + name + \"=([^&#]*)\").exec(window.location.href);\n\t\t\t\t\t\t\treturn results[1] || 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!window.refreshCaptchaListenerAdded) {\n\t\t\t\t\t\t    document.addEventListener(\"click\", function(e) {\n\t\t\t\t\t\t        if (e.target && e.target.id === \"refresh-captcha\") {\n\t\t\t\t\t\t            loadCaptcha();\n\t\t\t\t\t\t        }\n\t\t\t\t\t\t    });\n\t\t\t\t\t\t    window.refreshCaptchaListenerAdded = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdocument.addEventListener(\"DOMContentLoaded\", function () {\n\t\t\t\t\t\t\tconst observer = new MutationObserver(() => {\n\t\t\t\t\t\t\t    const questionBox = document.getElementById(\"captcha-question\");\n\t\t\t\t\t\t\t    if(questionBox) {\n\t\t\t\t\t\t\t        loadCaptcha();\n\t\t\t\t\t\t\t        observer.disconnect(); \/\/ stop observing\n\t\t\t\t\t\t\t    }\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tobserver.observe(document.body, { childList: true, subtree: true });\n\t\t\t\t\t\t});\n\n\n\t\t\t\t\t\tfunction waitForCaptcha() {\n\t\t\t\t\t\t    const questionBox = document.getElementById(\"captcha-question\");\n\t\t\t\t\t\t    if (questionBox && !captchaLoaded) {\n\t\t\t\t\t\t        captchaLoaded = true; \/\/ \u2705 mark as loaded\n\t\t\t\t\t\t        loadCaptcha();\n\t\t\t\t\t\t    } else if (!captchaLoaded) {\n\t\t\t\t\t\t        setTimeout(waitForCaptcha, 100); \/\/ try again\n\t\t\t\t\t\t    }\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\n\t\t\t\t\t\tfunction loadCaptcha() {\n\t\t\t\t\t    \tvar refreshBtn = document.getElementById(\"refresh-captcha\");\n\t\t\t\t\t\t    var questionBox = document.getElementById(\"captcha-question\");\n\t\t\t\t\t\t    var answerHidden = document.getElementById(\"captcha_ans_hidden\");\n\t\t\t\t\t\t    var answerInput = document.getElementById(\"captcha_answer\");\n\t\t\t\t\t\t    \n\t\t\t\t\t        fetch(\"\/wp-admin\/admin-ajax.php\", {\n\t\t\t\t\t        method: \"POST\",\n\t\t\t\t\t        headers: { \"Content-Type\": \"application\/x-www-form-urlencoded\" },\n\t\t\t\t\t        body: \"action=refresh_captcha\"\n\t\t\t\t\t        })\n\t\t\t\t\t        .then(response => response.json())\n\t\t\t\t\t        .then(data => {\n\t\t\t\t\t        if (data.success) {\n\t\t\t\t\t            questionBox.textContent = data.data.question;\n\t\t\t\t\t            answerHidden.value = data.data.answer; \/\/ store answer\n\t\t\t\t\t            answerInput.value = \"\"; \/\/ reset input\n\t\t\t\t\t        }\n\t\t\t\t\t        });\n\t\t\t\t\t    }\n\n\t\t\t\t\t\tfunction setlandingformdata(response)\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\tif(response.indexOf(\"FORMERRORFOUND\") != -1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tresponse_new = response.split(\"FORMERRORFOUND\").join(\"\");\n\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-error-msg\").innerHTML=response_new;\n\t\t\t\t\t\t\t}else if(response.indexOf(\"MasterAccount\") != -1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tresponse_new = response.split(\"MasterAccount\").join(\"\");\n\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-error-msg\").innerHTML=response_new;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery(\"#lpl-form-panel\").html(response);\n\t\t\t\t\t\t\t\tif(jQuery(\"#lpl-form-panel #dayphone\")) { jQuery(\"#lpl-form-panel #dayphone\").mask(\"(999) 999-9999\", {placeholder:\"X\"});} if(jQuery(\"#lpl-form-panel #evephone\")) { jQuery(\"#lpl-form-panel #evephone\").mask(\"(999) 999-9999\", {placeholder:\"X\"});} if(jQuery(\"#lpl-form-panel #celphone\")) { jQuery(\"#lpl-form-panel #celphone\").mask(\"(999) 999-9999\", {placeholder:\"X\"});}\t\n\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery(\"#lpl-form-panel\").find(\"script\").each(function(i) {\n\t\t\t\t\t\t\t\t\teval(jQuery(this).text());\n\t\t\t\t\t\t\t\t});\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery(\"#lpl-form-panel\").find(\"div#frmlocation-error-msg\").html(errmsg);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tloadCaptcha();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfunction checklandingjsloaded(data, textStatus, jqxhr)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(textStatus==\"success\" && jqxhr.status==\"200\") {}\n\t\t\t\t\t\t\telse {alert(\"Form was not loaded properly\");}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction checkFldValuezip(fld_Typ,fld_Name,fld_Msg,flg_zip)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar fld_Val = \"\";\n\t\t\t\t\t\t\tif(document.getElementById(\"zipstart\")) {fld_Val = document.getElementById(\"zipstart\").value;}\n\t\t\t\t\t\t\tif(fld_Val==\"\") {alert(\"Please Enter \"+fld_Msg);}\n\t\t\t\t\t\t\tvar tmp_alert \t = \"\";\n\t\t\t\t\t\t\tvar flgValidInvalidInput = 0;\t\n\t\t\t\t\t\t\tvar flgFldProVal = 0;\t\n\t\t\t\t\t\t\tvar strToChk\t = fld_Name+\",\"+fld_Msg+\",\";\n\t\t\t\t\t\t\tvar homeurl = \"\/\/\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar collegeallstar = 0;\n\t\t\t\t\t\t\tif(homeurl == \"\/\/www.collegeallstar.com\")\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcollegeallstar = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar country =(document.getElementById(\"loc_country\")) ? document.getElementById(\"loc_country\").value : \"\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(fld_Name == \"\"){\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(fld_Val.trim()!=\"\")\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(country == \"canada\")\n\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\/*if((fld_Val.indexOf(\" \")==-1) || (fld_Val.length!=7))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttmp_alert=tmp_alert+\"Please enter Valid Postal Code eg. A0A 1J0\" \\n\";\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"masterdropdownpanel\").style.display = \"none\";\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").removeClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").addClass(\"err-skip\");\n\t\t\t\t\t\t\t\t\t\talert(tmp_alert); return false;\n\t\t\t\t\t\t\t\t\t}*\/\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\treg = \/^\\d{5}$\/;\n\t\t\t\t\t\t\t\t\tif(reg.test(fld_Val) == false){\n\t\t\t\t\t\t\t\t\t\ttmp_alert=tmp_alert+\"Please Enter Valid \"+fld_Msg+\" \\n\";\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"masterdropdownpanel\").style.display = \"none\";\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").removeClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").addClass(\"err-skip\");\n\t\t\t\t\t\t\t\t\t\talert(tmp_alert); return false;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(tmp_alert == \"\")\t\t\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").removeClass(\"err-skip\");\n\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlocationidshid = (document.getElementById(\"locationidshid\")) ? document.getElementById(\"locationidshid\").value : \"\";\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tzipcodes = fld_Val.trim(); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(country == \"canada\")\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(zipcodes.indexOf(\" \") == -1 && country ==\"canada\")\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tzip = zipcodes[0]+zipcodes[1]+zipcodes[2]+\" \"+zipcodes[3]+zipcodes[4]+zipcodes[5];    \t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#zipstart\").val(zip);\n\t\t\t\t\t\t\t\t\t\tzipcodes = zip;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\turl=getdataloc+\"task=ajx_landingform_zips_locs&zips=\"+zipcodes+\"&locids=\"+locationidshid+\"&country=\"+country;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"\";\n\t\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\t\t\t\tasync: false,\n                                        cache: false,\n\t\t\t\t\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\t\t\t\t\tif(response==\"\" || response== -1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"masterdropdownpanel\").style.display = \"none\";\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif(country==\"canada\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"Sorry, your Postal code is not accepted by this location.\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"locset\").value=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"ziptemp\").value=\"\";\n\t\t\t\t\t\t\t\t\t\t\t    }else{\t\t\n\t\t\t\t\t\t\t\t\t\t\t    \n\t\t\t\t\t\t\t\t\t\t\t\t\tif(collegeallstar)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar confirmredirect = confirm(\"Sorry, your zip code is not accepted by this location.\\nFind a location that matches your zip code by clicking OK below.\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"locset\").value=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"ziptemp\").value=\"\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(confirmredirect)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.location.href = homeurl;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconsole.log('HERE1');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"Sorry, your zip code is not accepted.\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"locset\").value=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"ziptemp\").value=\"\";\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"master_dropdown\").innerHTML = response;\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"masterdropdownpanel\").style.display = \"\";\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"locset\").value=0;\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"ziptemp\").value=zipcodes;\n\t\t\t\t\t\t\t\t\t\t\t\tvar malength = jQuery(\"#master_dropdown\").children(\"option\").length;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif(malength==2)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmaselval = jQuery(\"#master_dropdown option:eq(1)\").val();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(maselval!=\"\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#master_dropdown\").val(maselval);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowloclanding();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\terror: function (jqXHR, textStatus, errorThrown) {\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"masterdropdownpanel\").style.display = \"none\";\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"ziptemp\").value=\"\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction showloclanding()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar locationstring =  window.location; \n\t\t\t\t\t\t\tvar zipstart = (document.getElementById(\"zipstart\")) ? document.getElementById(\"zipstart\").value : \"\";\n\t\t\t\t\t\t\tzipstr = (zipstart!=\"\") ? \"&zip=\"+zipstart : \"\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t zipstr  = zipstr.replace(\" \",\"$\");\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlocationstring = window.location.href.replace(window.location.hash, \"\" );\t\n\t\t\t\t\t\t\tlocid = (document.getElementById(\"master_dropdown\")) ? document.getElementById(\"master_dropdown\").value : \"\";\t\n\t\t\t\t\t\t\tif(locid==\"\") {alert(\"Please Select Location\"); return false;}\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(window.location.href.indexOf(\"?\") != -1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twindow.location = locationstring+\"&locId=\" + locid+zipstr+\"#lpl-form-panel\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\twindow.location = locationstring+\"?locId=\" + locid+zipstr+\"#lpl-form-panel\";\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tjQuery(window).load(function () {\n\t\t\t\t\t\tvar country =(document.getElementById(\"loc_country\")) ? document.getElementById(\"loc_country\").value : \"\";\n\t\t\t\t\t\tif(zip!=\"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t  if(zip.indexOf(\" \") == -1 && country ==\"canada\")\n\t\t\t\t\t\t  {\n\t\t\t\t\t\t\t\tzip = zip[0]+zip[1]+zip[2]+\" \"+zip[3]+zip[4]+zip[5];    \t\t\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery(\"#zip\").val(zip);\n\t\t\t\t\t\t   }\n                        }\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(zip!=\"\") { jQuery(\"#zip\").val(zip);}\n\t\t\t\t\t\tif(catg!=\"\") { jQuery(\"#frmcategory\").val(catg);}\n\t\t\t\t\t\tif(subcatg!=\"\") { jQuery(\"#frmsubcategory\").val(subcatg);}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(dmsid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tgetdmsdetails(dmsid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(zip){\n\t\t\t\t\t\t\tpopulateCitySt(zip);\n\t\t\t\t\t\t\tpopulateprograms(zip);\n\t\t\t\t\t\t\tjQuery(\"#zip\").trigger(\"change\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/***** Function to load location on selecting it from location dropdown (Added By Ritesh) ********\/ \n\t\t\t\t\t\t\tjQuery(\"#master_dropdown\").change(function() \n\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"locset\").value=1;\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\tvar locationstring =  window.location; \n\t\t\t\t\t\t\t\t\t\tvar zipstart = (document.getElementById(\"zipstart\")) ? document.getElementById(\"zipstart\").value : \"\";\n\t\t\t\t\t\t\t\t\t\tzipstr = (zipstart!=\"\") ? \"&zip=\"+zipstart : \"\";\n\t\t\t\t\t\t\t\t\t\tlocationstring = window.location.href.replace(window.location.hash, \"\" );\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(window.location.href.indexOf(\"?\") != -1)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\twindow.location = locationstring+\"&locId=\" + jQuery(this).val()+zipstr+\"#lpl-form-panel\";\n\t\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\twindow.location = locationstring+\"?locId=\" + jQuery(this).val()+zipstr+\"#lpl-form-panel\";\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tjQuery(\"#zip\").change(function()\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tvar landingzip = jQuery(this).val();\n\t\t\t\t\t\t\t\tvar homeurl = \"\/\/\";\n\t\t\t\t\t\t\t\tvar collegeallstar = 0;\n\t\t\t\t\t\t\t\tif(homeurl == \"\/\/www.collegeallstar.com\")\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcollegeallstar = 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvar tmp_error = \"\";\n\t\t\t\t\t\t\t\tvar country = (document.getElementById(\"loc_country\")) ? document.getElementById(\"loc_country\").value : \"\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(landingzip.trim()!=\"\")\n\t\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\t\treg = \/^\\d{5}$\/;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(country!=\"canada\")\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(reg.test(landingzip) == false)\n\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\ttmp_error = \"error\";\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(jQuery(\"#zip\").val().indexOf(\" \") == -1 && country ==\"canada\")\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tzip = jQuery(\"#zip\").val();\n\t\t\t\t\t\t\t\t\t\t\tzip = zip[0]+zip[1]+zip[2]+\" \"+zip[3]+zip[4]+zip[5];    \t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").val(zip);\n\t\t\t\t\t\t\t\t\t\t\tlandingzip = zip;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif((jQuery(\"#zip\").val().indexOf(\" \")==-1) || (jQuery(\"#zip\").val().length!=7))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\talert(\"Please enter Valid Postal Code eg. A0A 1J0.\");\t\n\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"zip\").value=\"\";\n\t\t\t\t\t\t\t\t\t\t\ttmp_error = \"error\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(tmp_error == \"\")\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"\";\t\n\t\t\t\t\t\t\t\t\tlocationidshid = (document.getElementById(\"locationval\")) ? document.getElementById(\"locationval\").value : \"\";\t\n\t\t\t\t\t\t\t\t\turl=getdataloc+\"task=ajx_landingform_zips_locs&zips=\"+landingzip+\"&locids=\"+locationidshid+\"&country=\"+country;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif(response==\"\" || response== -1)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(country == \"canada\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"Sorry, your postal code is not accepted by this location.\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"zip\").value=\"\";\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").removeClass(\"valid-input\");\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").addClass(\"err-skip\");\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(collegeallstar)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar confirmredirects = confirm(\"Sorry, your zip code is not accepted by this location.\\nFind a location that matches your zip code by clicking OK below.\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(confirmredirects)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.location.href = homeurl;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"zip\").value=\"\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").removeClass(\"valid-input\");\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").addClass(\"err-skip\");\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconsole.log('HERE2');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"Sorry, your zip code is not accepted.\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"zip\").value=\"\";\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").removeClass(\"valid-input\");\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").addClass(\"err-skip\");\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tpopulateprograms(landingzip);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\terror: function (jqXHR, textStatus, errorThrown) {document.getElementById(\"lpl-show-loader\").style.display=\"none\";}\n\t\t\t\t\t\t\t\t\t\t});\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(zip){\n\t\t\t\t\t\t\t\tjQuery(\"#zip\").trigger(\"change\"); \/\/ zipcode checking after page load\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction getdmsdetails(dmsid) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"\";\n\t\t\t\t\t\t\turl=getdataloc+\"task=dmsdetailsfetch&dmsid=\"+dmsid;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\t\tif(response==\"\" || response== -1)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tresponseArr = response.split(\"#$#\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tdmsfirstname = \tresponseArr[0];\n\t\t\t\t\t\t\t\t\t\t\t\tdmslastname = \tresponseArr[1];\n\t\t\t\t\t\t\t\t\t\t\t\tdmsphone = \tresponseArr[2];\n\t\t\t\t\t\t\t\t\t\t\t\tdmsemail = \tresponseArr[3];\n\t\t\t\t\t\t\t\t\t\t\t\tdmsaddress = \tresponseArr[4];\n\t\t\t\t\t\t\t\t\t\t\t\tdmsgrdyear = \tresponseArr[5];\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#zip\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#firstname\").val(dmsfirstname);\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#firstname\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#lastname\").val(dmslastname);\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#lastname\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#dayphone\").val(dmsphone);\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#dayphone\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#email\").val(dmsemail);\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#email\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#street\").val(dmsaddress);\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#street\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#state\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(jQuery(\"#gradyear\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#gradyear\").val(dmsgrdyear);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(jQuery(\"#gradyear\").val())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#gradyear\").addClass(\"valid-input\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#gradyear\").prop(\"selectedIndex\", 0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\terror: function (jqXHR, textStatus, errorThrown) {document.getElementById(\"lpl-show-loader\").style.display=\"none\";}\n\t\t\t\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction populateprograms(zipcodes)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlocationidshid = (document.getElementById(\"locationval\")) ? document.getElementById(\"locationval\").value : \"\";\t\n\t\t\t\t\t\t\tvar country = (document.getElementById(\"loc_country\")) ? document.getElementById(\"loc_country\").value : \"\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(locationidshid)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\turl=getdataloc+\"task=ajx_landingform_programs&zips=\"+zipcodes+\"&locids=\"+locationidshid+\"&country=\"+country;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"\";\n\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\t\t\t\tcache: false,\n\t\t\t\t\t\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(response==\"1\")\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(country == \"canada\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\talert(\"Sorry, No program is avaialble in your postal code.\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"selection\").innerHTML = \"<option value=\\\"\\\">No program available for the postal code<\/option>\";\n\t\t\t\t\t\t\t\t\t\t\t\t    }else\n\t\t\t\t\t\t\t\t\t\t\t\t    {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar confirmredirect = confirm(\"Sorry, No program is avaialble in your zipcode.\\nFind a location that matches your zip code by clicking OK below.\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"selection\").innerHTML = \"<option value=\\\"\\\">No program available for the zipcode<\/option>\";\n\t\t\t\t\t\t\t\t\t\t\t\t    }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(confirmredirect)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.location.href = homeurl;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tassign_value_from_url();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar selectionelement =  document.getElementById(\"selection\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (typeof(selectionelement) != \"undefined\" && selectionelement != null)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t  document.getElementById(\"selection\").innerHTML = response;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\terror: function (jqXHR, textStatus, errorThrown) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\talert(\"error occured\");\n\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById(\"lpl-show-loader\").style.display=\"none\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction submit_master()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tziptemp = document.getElementById(\"ziptemp\").value;\n\t\t\t\t\t\t\tzipstart = document.getElementById(\"zipstart\").value;\n\t\t\t\t\t\t\tvar country =(document.getElementById(\"loc_country\")) ? document.getElementById(\"loc_country\").value : \"\";\n\t\t\t\t\t\t\tif(zipstart==\"\")\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(country!=\"canada\")\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\talert(\"Please Enter Zip Code\");return false;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\talert(\"Please Enter Postal Code\");return false;\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(zipstart!=ziptemp)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcheckFldValuezip(\"numeric\",\"zip\",\"Zip Code\",\"1\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(ziptemp!=\"\") { showloclanding(); }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t<script async type=\"text\/javascript\" src=\"https:\/\/seal.godaddy.com\/getSeal?sealID=a22k7Cgs9lo2ni7LiFvCaA66ZdsoYdIDaJzOaBy6TBiCkCXIJQSSp67WZXWk\"><\/script><script type=\"text\/javascript\">\n\t\t\t\tadroll_adv_id = \"2GUWTTDMKBD67NBAZPEKEL\";\n\t\t\t\tadroll_pix_id = \"AXF4QM7NYZCU7OOIHTHUCC\";\n\n\t\t\t\t(function () {\n\t\t\t\t\tvar _onload = function(){\n\t\t\t\t\t\tif (document.readyState && !\/loaded|complete\/.test(document.readyState)){setTimeout(_onload, 10);return}\n\t\t\t\t\t\tif (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return}\n\t\t\t\t\t\tvar scr = document.createElement(\"script\");\n\t\t\t\t\t\tvar host = ((\"https:\" == document.location.protocol) ? \"https:\/\/s.adroll.com\" : \"http:\/\/a.adroll.com\");\n\t\t\t\t\t\tscr.setAttribute(\"async\", \"true\");\n\t\t\t\t\t\tscr.type = \"text\/javascript\";\n\t\t\t\t\t\tscr.src = host + \"\/j\/roundtrip.js\";\n\t\t\t\t\t\t((document.getElementsByTagName(\"head\") || [null])[0] ||\n\t\t\t\t\t\t\tdocument.getElementsByTagName(\"script\")[0].parentNode).appendChild(scr);\n\t\t\t\t\t};\n\t\t\t\t\tif (window.addEventListener) {window.addEventListener(\"load\", _onload, false);}\n\t\t\t\t\telse {window.attachEvent(\"onload\", _onload)}\n\t\t\t\t}());\n\t\t\t<\/script><\/div><script>jQuery(document).ready(function(){\n\n\n\t\tif(jQuery(\"#zipstart\").val()==\"\")\n\t\t{\n\t\t\tvar zip\t\t\t=\t\"\";\n\t\t\t\n\t\t\tif(zip!=\"\"){\n\t\t\t   jQuery(\"#zipstart\").val(zip);\n\t\t\t   \/\/jQuery(\"#zipstart\").trigger(\"blur\");\n\t\t\t   jQuery(\"#zipstart\").addClass(\"valid-input\");\n\t\t\t}\n\t\t}\n});function assign_value_from_url(){\n\tvar firstname\t=\t\"\";\n\tvar lastname\t=\t\"\";\n\tvar dayphone\t=\t\"\";\n\tvar celphone\t=\t\"\";\n\tvar email\t\t=\t\"\";\n\tvar street\t\t=\t\"\";\n\tvar city\t\t=\t\"\";\n\tvar state\t\t=\t\"\";\n\tvar zip\t\t\t=\t\"\";\n\tvar gradyear\t=\t\"\";\n\tif(zip!=\"\"){\n\t\t\/\/jQuery(\"#zip\").trigger(\"blur\");\t\t\n\t\tif(jQuery(\"#zip\").val() != \"\"){\n\t\t\tjQuery(\"#zip\").addClass(\"valid-input\");\n\t\t}\n\t}\n\n\tif(firstname!=\"\"){\n\t\tjQuery(\"#firstname\").val(firstname);\n\t\tjQuery(\"#firstname\").trigger(\"blur\");\n\t}\n\n\tif(lastname!=\"\"){\n\t\tjQuery(\"#lastname\").val(lastname);\n\t\tjQuery(\"#lastname\").trigger(\"blur\");\n\t}\n\tif(dayphone!=\"\"){\n\t\tjQuery(\"#dayphone\").val(dayphone);\n\t\tjQuery(\"#dayphone\").trigger(\"blur\");\n\t}\n\n\tif(celphone!=\"\"){\n\t\tjQuery(\"#celphone\").val(celphone);\n\t\tjQuery(\"#celphone\").trigger(\"blur\");\n\t}\n\n\tif(email!=\"\"){\n\t\tjQuery(\"#email\").val(email);\n\t\tjQuery(\"#email\").trigger(\"blur\");\n\t}\n\n\tif(street!=\"\"){\n\t\tjQuery(\"#street\").val(street);\n\t\tjQuery(\"#street\").trigger(\"blur\");\n\t}\n\tif(state!=\"\"){\n\t\tjQuery(\"#zip\").attr(\"data-state\",state);\n\t\t\/\/check_selected_by_val(\"state\",state);\n\t}\n\tif(city!=\"\"){\n\t\tjQuery(\"#zip\").attr(\"data-city\",city);\n\t\t\/\/check_selected_by_val(\"city\",city);\n\t\t\n\t}\n\t\n\tif(gradyear!=\"\"){\n\t\tcheck_selected_by_val(\"gradyear\",gradyear);\n\t}\n\t\n\t\n\t\n}\n\nfunction check_selected_by_val(selected_id,data_value)\n{\n\tif(typeof data_value !== typeof undefined && data_value!=\"\"){\n\tvar is_valid=0;\n\tjQuery(\"#\"+selected_id+\" option\").each(function(){\n\t\n\t\t\t\t\t\t\t\t\t\t\tvar txt_elem=jQuery(this).text();\n\t\t\t\t\t\t\t\t\t\t\tvar val_elem=jQuery(this).val();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(data_value==txt_elem)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(this).attr(\"selected\", \"selected\");\n\t\t\t\t\t\t\t\t\t\t\t\tis_valid=1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse if(data_value==val_elem){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(this).attr(\"selected\", \"selected\");\n\t\t\t\t\t\t\t\t\t\t\t\tis_valid=1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tif(is_valid==1){\t\t\t\t\t\t\t\t\n\t\t\tjQuery(\"#\"+selected_id).addClass(\"valid-input\");\n\t\t}\n\t}\n}\n<\/script>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:20px;width:100%;\"><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-2 fusion_builder_column_3_5 3_5 fusion-three-fifth fusion-column-last\" style=\"width:60%;width:calc(60% - ( ( 4% ) * 0.6 ) );margin-top:0px;margin-bottom:20px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\" style=\"background-position:left top;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;padding: 0px 0px 0px 0px;\"><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:4px;margin-bottom:25px;width:100%;\"><div class=\"fusion-separator-border sep-shadow\" style=\"background:radial-gradient(ellipse at 50% -50% , #e0dede 0px, rgba(255, 255, 255, 0) 80%) repeat scroll 0 0 rgba(0, 0, 0, 0);background:-webkit-radial-gradient(ellipse at 50% -50% , #e0dede 0px, rgba(255, 255, 255, 0) 80%) repeat scroll 0 0 rgba(0, 0, 0, 0);background:-moz-radial-gradient(ellipse at 50% -50% , #e0dede 0px, rgba(255, 255, 255, 0) 80%) repeat scroll 0 0 rgba(0, 0, 0, 0);background:-o-radial-gradient(ellipse at 50% -50% , #e0dede 0px, rgba(255, 255, 255, 0) 80%) repeat scroll 0 0 rgba(0, 0, 0, 0);\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-4\"><h2><strong>Why Finger Stick When You Can Scan?<\/strong><\/h2>\n<h3><span style=\"color: #f26522;\"><strong>If you&#8217;re testing your blood sugar more than 4x per day &amp; injecting insulin more than 3x per day you need to fill out the form today to see if you qualify.<br \/>\n<\/strong><\/span><\/h3>\n<p>We help consumers manage their diabetes better by helping them qualify for continuous glucose monitors, and it may be covered by Medicare. Get glucose readings with a painless scan instead of painful finger sticks by using the monitor!<\/p>\n<p><a href=\"http:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-content\/uploads\/sites\/2\/2019\/07\/glucose-pic.jpg\"><img decoding=\"async\" class=\"wp-image-27998 size-full alignleft\" src=\"http:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-content\/uploads\/sites\/2\/2019\/07\/glucose-pic.jpg\" alt=\"\" width=\"213\" height=\"276\" \/><\/a>Are you interested in managing your diabetes better? We can help by helping you qualify for a continuous glucose monitoring system. Automatically measure your glucose readings day and night and know that you are getting the most accurate insulin dosing.<\/p>\n<p>The monitor is SIMPLE because you can get your glucose reading anytime. The monitor is ACCURATE because the read stores up to 90 days of glucose data so you can see your patterns and historic trends. The monitor is PAINLESS because you get real-time glucose readings with a painless scan.<\/p>\n<h3><span style=\"color: #f26522;\"><strong>See if you qualify today for a FREE continuous glucose monitor by filling out the form<br \/>\n<\/strong><\/span><\/h3>\n<p>You can get 14 days of glucose monitoring without finger sticks. So if you&#8217;re testing your sugar more than 4 times per day and injecting insulin more than 3 times per day, fill out the form to see if you qualify.<\/p>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:10px;width:100%;\"><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-3 hundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"background-color: rgba(255,255,255,0);background-position: center center;background-repeat: no-repeat;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-bottom: 0px;margin-top: 0px;border-width: 0px 0px 0px 0px;border-color:#eae9e9;border-style:solid;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-3 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last fusion-column-no-min-height\" style=\"margin-top:0px;margin-bottom:0px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\" style=\"background-position:left top;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;padding: 0px 0px 0px 0px;\">\n<style>.wp-caption-text {font-size: 17px;font-weight: bold;text-align: center;padding-top:10px;} .per-main-subtext{font-size: 16px;font-weight: normal;} .formdiv{float:right !important;} <\/style>\n<div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><style type=\"text\/css\">.fusion-fullwidth.fusion-builder-row-3 { overflow:visible; }<\/style><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"blank.php","meta":{"_acf_changed":false,"inline_featured_image":false,"_glsr_average":0,"_glsr_ranking":0,"_glsr_reviews":0,"footnotes":""},"class_list":["post-27876","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/pages\/27876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/comments?post=27876"}],"version-history":[{"count":22,"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/pages\/27876\/revisions"}],"predecessor-version":[{"id":32522,"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/pages\/27876\/revisions\/32522"}],"wp:attachment":[{"href":"https:\/\/multisite.leadmanagesystem.com\/landingpage\/wp-json\/wp\/v2\/media?parent=27876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}