home *** CD-ROM | disk | FTP | other *** search
-
- //alert(getCookie("daBoxEula"));
- function getCookie(Name) {
- var search = Name + "="
- if (document.cookie.length > 0) { // if there are any cookies
- offset = document.cookie.indexOf(search)
- if (offset != -1) { // if cookie exists
- offset += search.length
- // set index of beginning of value
- end = document.cookie.indexOf(";", offset)
- // set index of end of cookie value
- if (end == -1)
- end = document.cookie.length
- return unescape(document.cookie.substring(offset, end))
- }
- }
- }
-
-
- function setCookie(name, value, expires, path, domain, secure) {
- var xCookie = name + "=" + value +
- ((expires) ? "; expires=" + expires.toGMTString() : "") +
- ((path) ? "; path=" + path : "") +
- ((domain) ? "; domain=" + domain : "")
-
- document.cookie = xCookie;
- }
-
- function eulaOpen(filename) {
-
- window.open(filename,'eula','menubar=yes,location=no,menus=no,scrollbars,resizable=1,status=no');
-
- }
-
- function checkTheBox(boxLocation)
- {
-
- if (boxLocation == "eula")
- {
-
- if (getCookie("daBoxEula") == "true")
- {
- setCookie("daBoxEula", "false")
- } else {
-
- setCookie("daBoxEula", "true")
- }
- //alert(getCookie("daBoxEula"));
- }
-
-
- if (boxLocation == "ad")
- {
-
- if (getCookie("daBoxAd") == "true")
- {
- setCookie("daBoxAd", "false")
- } else {
-
- setCookie("daBoxAd", "true")
- }
- }
-
- if (boxLocation == "desktopIcon")
- {
-
- if (getCookie("desktopIcon") == "true")
- {
- setCookie("desktopIcon", "false")
- } else {
-
- setCookie("desktopIcon", "true")
- }
- }
- if (boxLocation == "quicklaunchIcon")
- {
-
- if (getCookie("quicklaunchIcon") == "true")
- {
- setCookie("quicklaunchIcon", "false")
- } else {
-
- setCookie("quicklaunchIcon", "true")
- }
- }
- if (boxLocation == "start")
- {
-
- if (getCookie("start") == "start")
- {
- setCookie("start", "false")
- } else {
-
- setCookie("start", "true")
- }
- }
- if (boxLocation == "virus")
- {
-
- if (getCookie("virus") == "virus")
- {
- setCookie("virus", "false")
- } else {
-
- setCookie("virus", "true")
- }
- }
- if (boxLocation == "filter")
- {
-
- if (getCookie("filter") == "true")
- {
- setCookie("filter", "false")
- } else {
-
- setCookie("filter", "true")
- }
- }
- if (boxLocation == "incomingMessages")
- {
-
- if (getCookie("incomingMessages") == "true")
- {
- setCookie("incomingMessages", "false")
- } else {
-
- setCookie("incomingMessages", "true")
- }
- }
-
- }
-
-