tracker = parent.document.referrer; 
if (!tracker) {tracker="noref"} 
document.cookie = tracker+'; path=/;';
