//////////////////////////////////////////////////////////////////
// 18 July 2008
// Use exisiting distID on customer's PC (in cookie) UNLESS one is passed in URL
// If the cookie, isn't set and no ID is passed - use the generic Distributor id
////////////////////////////////////////////////////////////////////

var cookie = getCookie ('distID');
if (cookie.length == 0)
   cookie = '9908003388';
   
var GETDATA = new Array();
getQueryStrings (GETDATA);

if (GETDATA['id'] != null && GETDATA['id'] != "undefined")
{
   cookie = GETDATA['id'];
}
else
{
   if (GETDATA['ID'] != null && GETDATA['ID'] != "undefined")
      cookie = GETDATA['ID'];
}

// Save the cookie on user's PC for 1 year
setCookie ('distID', cookie, 365);

//Display the cookie in small gray on the screen
document.write ('<font color="#A4A5D2" size="-2">');
document.write (cookie);
document.write ('</font>');

//////////////////////////////////////////////////////////////////
