function urlEncode(inStr) {

outStr=' '; //not '' for a NS bug!

for (i=0; i < inStr.length; i++) {

aChar=inStr.substring (i, i+1);

switch(aChar){

case '%': outStr += "%25"; break; case ',': outStr += "%2C"; break;

case '/': outStr += "%2F"; break; case ':': outStr += "%3A"; break;

case '~': outStr += "%7E"; break; case '!': outStr += "%21"; break;

case '"': outStr += "%22"; break; case '#': outStr += "%23"; break;

case '$': outStr += "%24"; break; case "'": outStr += "%27"; break;

case '`': outStr += "%60"; break; case '^': outStr += "%5E"; break;

case '&': outStr += "%26"; break; case '(': outStr += "%28"; break;

case ')': outStr += "%29"; break; case '+': outStr += "%2B"; break;

case '{': outStr += "%7B"; break; case '|': outStr += "%7C"; break;

case '}': outStr += "%7D"; break; case ';': outStr += "%3B"; break;

case '<': outStr += "%3C"; break; case '=': outStr += "%3D"; break;

case '>': outStr += "%3E"; break; case '?': outStr += "%3F"; break;

case '[': outStr += "%5B"; break; case '\\': outStr += "%5C"; break;

case ']': outStr += "%5D"; break; case ' ': outStr += "+"; break;

default: outStr += aChar;

}

}

return outStr.substring(1, outStr.length);

}



if ((top.geladen + "") != "lurchlurchelektrolurch")

top.location.href="http://www.elektrolurch.com/uniFrameset.php?mainContent="+urlEncode(document.URL)+"&referrer="+urlEncode(document.referrer);

//document.write("Referrer: " + document.referrer);

//document.write("Diese Datei: " + document.URL);
//document.getElementsByTagName("body")[0].firstChild.data = "test";
//me = document.getElementsByTagName("body");
//me.firstChild.data = "Alles anders";
//document.getElementsByTagName("BODY")[0].firstChild.data = "neuer erster";

client_id  = 1;

resolution = window.screen.width      + 'x' +
             window.screen.height     + 'x' +
             window.screen.colorDepth + 'bit';

//document.getElementsByTagName("BODY")[0].nodeValue = "test";			 
document.write('<img src="/pot/src/log/image.php?' +
               'client_id='              + client_id         + '&' +
               'document='               + urlEncode(document.URL)      + '&' +
               'referer='                + urlEncode(document.referrer) + '&' +
               'add_data[]=resolution::' + resolution        +
               '" alt="" width="0" height="0" style="position:absolute; top:0px; left:0px; width:0px; height:0px; z-index:0;" />'
              );
