﻿    function setImagesize() { var a = document.getElementById("chkimgsize").width, b = document.getElementById("chkimgsize").height; 350 < b && 500 > a ? (document.getElementById("chkimgsize").width = 0.35 * a, document.getElementById("chkimgsize").height = 0.35 * b) : 750 < a ? (document.getElementById("chkimgsize").width = 0.75 * a, document.getElementById("chkimgsize").height = 0.75 * b) : document.getElementById("chkimgsize").width = a }
    function popUp(URL) { day = new Date; id = day.getTime(); eval("page" + id + " = window.open(URL, 'printOffer', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=850,height=600,left = 120,top = 160');") } function CheckValidEmail() { var a = document.getElementById("txtReferAFriend").value; if ("" == a) return alert("Enter Email id"), !1; for (var b = [], b = a.split(";"), a = 0; a < b.length; a++) if ("" != b[a] && null != b[a] && !isValidEmail(b[a])) return alert("Enter Valid Email id"), !1; return !0 }
    function CheckValidEmailSignUpTOLP() { var a = document.getElementById("txtTolpSignUP").value; if ("" == a) return alert("Enter Email id"), !1; return !isValidEmail(a) ? (alert("Enter Valid Email id"), !1) : !0 } function CheckValidEmailSignUpFeed() { var a = document.getElementById("txtSignup").value; if ("" == a) return alert("Enter Email id"), !1; return !isValidEmail(a) ? (alert("Enter Valid Email id"), !1) : !0 }
    function CheckValidEmailSignUp() { var a = document.getElementById("ctl00_txtTolpSignUP").value; if ("" == a) return alert("Enter Email id"), !1; return !isValidEmail(a) ? (alert("Enter Valid Email id"), !1) : !0 } function CheckValidEmailDeal() { var a = document.getElementById("ctl00_txtReferAFriend").value; if ("" == a) return alert("Enter Email id"), !1; for (var b = [], b = a.split(";"), a = 0; a < b.length; a++) if ("" != b[a] && null != b[a] && !isValidEmail(b[a])) return alert("Enter Valid Email id"), !1; return !0 }
    function popup(a, b) { if (!window.focus) return !0; window.open("string" == typeof a ? a : a.href, b, "height=800px,width=400px, top=300,left=300,titlebar=no,toolbar=no,menubar=no,scrollbar=yes,resizable=yes,location=no,directories=no,minimize=no,maximize=no"); return !1 } function hideModalPopup() { $find("programmaticModalPopupBehavior").hide() } function hideModalPopupForDeal() { $find("programmaticModalPopupBehavior").hide() }
    function isValidEmail(a) { if (/[^a-zA-Z0-9_@.]/.test(a)) return !1; var b, c; c = []; c = a.split("@"); b = c.length - 1; var d; d = c[0].length - 1; if (c[0].lastIndexOf(".") == d) return !1; if (/[^0-9a-zA-Z]/.test(c[0].substring(0, 1))) return !1; if ("" == a) return !1; if (0 == b) return !1; if (1 < b) return !1; if ("" == c[0]) return !1; if ("" == c[1]) return !1; a = c[0]; c = c[1]; return -1 != a.indexOf(" ") ? !1 : -1 != c.indexOf(" ") ? !1 : !0 };
