/*
** Now check their cookie and get the original referrer back out
*/
var allCookies = document.cookie;
var cPos = allCookies.indexOf("utmccn=");
if(cPos != -1){

   var cdstart = cPos + 7;
   var cdend = allCookies.indexOf("|", cdstart);
   if(cdend == -1) cdend = allCookies.length;

   var cookieContent = allCookies.substring(cdstart,cdend);
   cookieContent = unescape(cookieContent);

  
  /*
   ** Finally, stuff the referrer into our hidden form element
   */      
   document.getElementById("referrer_c").value = cookieContent;
   
}