var EventTracker=function() { return { updateEvent:function(eventName) { servertalker.makeRequest('EventTrackerService', 'updateEvent', { eventName:eventName }, function(response) {}); } } }(); var cookies = []; var cookieName = null; EventTracker.updateEvent("domainchange-js-attempt"); cookies[cookieName] = 1; var date = new Date(); date.setTime(date.getTime()+(86400*4*365*1000)); var date30min = new Date(); date30min.setTime(date30min.getTime()+(1800*1000)); for(var i in cookies) { var expires = (i == 'st' || i == 'set') ? date30min.toGMTString() : date.toGMTString(); document.cookie = i + "=" + escape(cookies[i]) +"; expires=" + expires + "; path=/; domain=.schoolfeed.classmates.com"; } if( document.cookie.indexOf(cookieName+"=1") == -1 && top != window ) { EventTracker.updateEvent("domainchange-js-fail"); // cookies blocked try to redirect to top window var str = "
" + "" + "
"; document.write(str); window.onload = function() { EventTracker.updateEvent("domainchange-js-submitform"); setTimeout(function() { document.getElementById("cimportForm").submit(); }, 500); } } else { EventTracker.updateEvent("domainchange-js-success"); setTimeout(function() { window.location.href = window.location.href + " "; }, 500); }