function setCookie(CookieName, CookieValue, ExpDate, Domain, Path, Security) { var CookieData = CookieName; //store letters and numbers as themselves, but store any //symbols or spaces in the cookie value as an ASCII code CookieData = CookieData + "=" + escape(CookieValue); //Check for optional parameters values if (ExpDate.value != "") CookieData = CookieData + "; expires=" + ExpDate.toGMTString(); if (Domain != "") CookieData = CookieData + "; domain=" + Domain; if (Path != "") CookieData = CookieData + "; path=" + Path; if (Security == "secure") CookieData = CookieData + "; secure" //insert the cookie in the cookie file document.cookie=CookieData; return; } // ----------------------------- function cookieValue(FirstChar) { //Semicolons separate the cookie name/value pairs in //document.cookie property. Find the index of first //semicolon that follows the start of the cookie value var LastChar = document.cookie.indexOf (";", FirstChar); if (LastChar == -1) LastChar = document.cookie.length; return unescape(document.cookie.substring(FirstChar, LastChar)); } // ----------------------------- function getCookieValue(CookieName) { CookieName = CookieName + "="; var NameLength = CookieName.length; var CookieLength = document.cookie.length; var FirstChar = 0; var LastChar = 0; while (FirstChar < CookieLength) { LastChar = FirstChar + NameLength; if (document.cookie.substring(FirstChar, LastChar) == CookieName) return cookieValue (LastChar); //go 1 character past the space between cookie name/value pairs FirstChar = document.cookie.indexOf(" ", FirstChar) + 1; if (FirstChar == 0) break; } return null; }
PVC Cover Plates |
english | french | spanish | INFO : Use Your Promo Code for Additional Discount ! |
<Back to Place Order |