// "standard" read cookie function  (copied from Prusak's gwo_write.js)
function read_cookie(cookie_name) {
  var my_cookie=""+document.cookie;
  var ind=my_cookie.indexOf(cookie_name);
  if (ind==-1 || cookie_name=="") return ""; 
  var ind1=my_cookie.indexOf(';',ind);
  if (ind1==-1) ind1=my_cookie.length; 
  return unescape(my_cookie.substring(ind+cookie_name.length+1,ind1));
}

function getCustomVar(customVarStr) {
  utmvCookieStr=read_cookie("__utmv");
  if (customVarStr=="members") otherVarStr = "registrant";
  else if (customVarStr=="registrant") otherVarStr = "members";
  if (utmvCookieStr.indexOf(otherVarStr)==-1) newVarStr=customVarStr;
  else newVarStr="members/registrant";
  return newVarStr;
}
