/*
-------------------------------------------------------------------
Zonta Login Script Version 11-sep-2004
Written by R. Doclo
*/
var noaccess = "http://www.gxpconsulting.com/zonta-01/noaccess.htm"; // defines error page
function setCookie (name, value) {
 document.cookie = name + "=" + escape (value) +  "; path=/";
}
function getCookie(name) { 
 var ckTemp = document.cookie;
 var index = ckTemp.indexOf(name + "=");
 if(index == -1) return null;
 index = ckTemp.indexOf("=", index) + 1;
 var endstr = ckTemp.indexOf(";", index);
 if (endstr == -1) endstr = ckTemp.length;
 return unescape(ckTemp.substring(index, endstr));
 }
function checkCookie(name, myValue) {
 var myCookieValue=getCookie(name);
// alert(name + " = " + myCookieValue + " - " + myValue);
 if (myCookieValue != myValue) {
   document.URL = noaccess; }
 } 
