function urlEncode(deurl) 
{
  deurl = deurl.replace(/\:/g,"%3A"); //.replace(/\//g, "%2F").replace(/\\/g, "%5C").replace(/\?/g, "%3F").replace(/\&/g, "%26").replace(/\./g, "%2E");
  return deurl;
}

function frameIn(urlenzo)
{
  urlenzo = urlEncode(urlenzo);
  locatie = "http://www.conrad.nl/scripts/wgate/zcop_nl2/!?perform_special_action=TW&adcampaign=t4u&url=" + urlenzo + "?";
  top.location.href = locatie;
}

if (top.location == self.location)
{
  var pUrl = escape(document.location);
  var pRef;
  try {  pRef = escape(document.referrer);} catch (er) {pRef = '';}
  var t = new Date();
  var im = new Image();
  im.src = "http://195.35.183.132/hit?pageUrl=" + pUrl + "&websiteId=130&referrer=" + pRef + "&dummy=" + t.getTime();

  window.onload = function()
  {
    frameIn(location.toString());
  }
}
