function setCookie(a, b, c, d, f, g) { a = escape(a) + "=" + escape(b); a += c ? "; EXPIRES=" + c.toGMTString() : ""; a += d ? "; PATH=" + d : ""; a += f ? "; DOMAIN=" + f : ""; a += g ? "; SECURE" : ""; document.cookie = a } function CreateCookieandClose() { var a = new Date; a = new Date(a.getYear(), a.getMonth() + 1, a.getDate()); setCookie("CloseDivTopCookie", "YES", a) } function check_log() { var a = FB.Facebook.apiClient.get_session().uid; alert(a); loadFriends(a) }
function doPost_Profile() { FB.XFBML.Host.parseDomTree(); var a = document.getElementById("<%=hdFullNameProfile.ClientID%>").value, b = document.getElementById("<%=hdGizaSiteAddressProfile.ClientID%>").value; FB.Connect.showFeedDialog(124431468571, "", "", "", null, FB.RequireConnect.doNotRequire, callback, "", { value: "Just discovered " + a + "'s social profiles organized at " + b }); return false } function callback() { return false }
function Cover(a, b, c) { var d = Sys.UI.DomElement.getLocation(a); b.style.position = "absolute"; b.style.top = d.y + 50 + "px"; b.style.left = d.x - 50 + "px"; if (!c) { b.style.height = a.offsetHeight + "px"; b.style.width = a.offsetWidth + "px" } } function BulletinCount(a, b) { var c = new Number(b); if (document.getElementById("<%=txtRepErrMessage.ClientID%>").value.length > c) a.value = a.value.substring(0, c) }
function ValidateSocialServices(a, b) { var c = document.getElementById("ddlSocialServices"); if (c != null) { c = b.valueOf(c); b.IsValid = c.Value == "0" || c.Value == "----------------" ? false : true } } function HideModalPopupExtender(a) { a = $find(a); if (a != null) { a.hide(); return true } } function StartProgressBar(a) { $find(a).show(); return true } function parentButtonClick() { parent.InvokeHideProgressBar() }
function ApplyCustomHeaderSettings(a) { a = a.split("$"); $(".topHeaderTbl").css("background-color", a[0]); $("#LblName").css("color", a[1]); $("#LblCount").css("color", a[1]); $("#LblViews").css("color", a[1]); $("#LblFavourite").css("color", a[1]); $("#LblShare").css("color", a[1]); $("#LblGizaPage").css("color", a[1]); $("#LblSignIn").css("color", a[1]) }
function LoadTabs(a, b, c, d, f, g, j) {
    var i = "", k = window.location.search.substring(1), h = document.documentElement.clientHeight - 3; new Ext.TabPanel({ renderTo: "tabs", id: "tabpanelProfileview", resizeTabs: false, minTabWidth: document.documentElement.clientHeight, tabWidth: document.documentElement.clientWidth, height: h, activeTab: 0, autoWidth: true, autoScroll: false, enableTabScroll: true, border: false, items: [{ contentEl: "divProfile", title: '<img style="height:16px;width:16px; padding-left:2px; margin-left:0px; padding-bottom:3px; horizontal-align:left;vertical-align:top;" src="' +
g + '"/>&nbsp;Profile', id: "MyProfile", activeTab: 0, iconCls: "tabs", closable: false, autoScroll: true
    }]
    }); g = Ext.getCmp("tabpanelProfileview"); a = a.split("$"); b = b.split("$"); c = c.split("$"); d = d.split("$"); h = navigator.appName == "Netscape" ? h - 47 : h - 57; for (var e = 0; e < a.length - 1; e++) {
        if (a[e].indexOf("http://") != -1 || a[e].indexOf("www.") != -1) i = encodeURIComponent(a[e]); g.add({ title: '<img style="width:16px;height:16px;padding-bottom:3px;horizontal-align:left;vertical-align:top;margin-left:2px"  src="http://www.gizapage.com/icons\\' +
d[e] + '"/> ' + b[e], id: c[e] + "$" + a[e], iconCls: "tabs", html: '<iframe height="100%" scrolling="no" width="100%" frameborder="0" src="SocialPageSettings.aspx?ShowButton=false&PageHeight=' + h + "&SocialPageName=" + i + "&SocialServiceId=" + c[e] + "&SocialServiceURL=" + b[e] + "&GizaEntityID=" + f + "&PiwikID=" + j + "&" + k + '"/>', closable: true, autoScroll: false
        })
    } $("#divProfile").show()
} function setActiveTabByTitle(a) { var b = Ext.getCmp("tabpanelProfileview"); a = b.find("id", a); b.setActiveTab(a[0]) }
function HideTab(a) { var b = Ext.getCmp("tabpanelProfileview"); a = b.find("id", a); b.remove(a[0], true) } function ShowTab(a) { Ext.getCmp("tabpanelProfileview").activate(a) }
function ViewGizaSite(a, b, c) {
    if (frames.parent.Ext != null) {
        var d = "tab" + a; if (b == "") b = "Profile"; if (this.frames.parent.Ext.getCmp("Tabs") != null) var f = this.frames.parent.Ext.getCmp("Tabs"); else if (this.frames.parent.parent.Ext.getCmp("Tabs") != null) f = this.frames.parent.parent.Ext.getCmp("Tabs"); if (f != null) if (c = f.getItem(d)) { f.setActiveTab(c); c.body.dom.innerHTML = '<iframe height="100%"  frameborder="0"  scrolling="auto" width="100%" src="newprofile.aspx?GizaEntityID=' + a + '&SecuritySetting = "PUBLIC"/>' } else f.add({ title: b,
            iconCls: "tabs", html: '<iframe height="100%" scrolling="auto"  frameborder="0"  width="100%" src="newprofile.aspx?GizaEntityID=' + a + '"/>', closable: true
        }).show(); else window.open("http://" + c)
    } else window.open("http://" + c)
};