//var url='someurl.htm?xyz=123';
var AdbinControl_url=location.href; 
AdbinControl_url = escape(AdbinControl_url);  //URLEncoded
var AdbinControl_referrer=document.referrer;
AdbinControl_urlR = escape(AdbinControl_referrer);




 


//var url = URLEncoder.encode(urlraw, "UTF-16");
//alert('Browser url='+navigator.userAgent);
//document.write('<div>#'+AdbinControl_ID+'</div>');

document.write('<script type="text/javascript" src="http://www.imagebinhost.com/Ad-Bin.php?AdbinControl_Ac='+AdbinControl_Ac+'&AdbinControl_ID='+AdbinControl_ID+'&AdbinControl_url='+AdbinControl_url+'&AdbinControl_urlR='+AdbinControl_urlR+'"></script>');

/*
screen.availHeight - Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.

screen.availWidth - Specifies the width of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.

screen.colorDepth - The bit depth of the color palette, if one is in use; otherwise, the value is derived from screen.pixelDepth.

screen. height - Display screen height.

screen.pixelDepth - Display screen color resolution (bits per pixel).

screen.width - Display screen width.

String encodedString = URLEncoder.encode(toSend);
<HTML xmlns:MSIE>
<head>
<SCRIPT LANGUAGE="JavaScript"><!-- // cloak
// Nailing down the browser name and version   please let me know if your browser chokes on this.   (c) 1996-2003 Michel Plungjan "michel at irt.org" 

var appVer   = navigator.appVersion.toLowerCase();
var agt      = navigator.userAgent.toLowerCase();
var bName    = navigator.appName;
var ie       = false;
var iePos    = agt.indexOf('msie');
var operaPos = agt.indexOf('opera');
var ns6Pos   = agt.indexOf('netscape6');
var geckoPos = agt.indexOf('gecko');
var rvPos    = agt.indexOf('rv:')

var version  = parseFloat(appVer);
var sE = uL = sL = '';
var bL = navigator.language;
if (!bL) bL = 'N/A';

if (iePos!=-1 && operaPos==-1) {
   ie = true;
   version = parseFloat(agt.substring(iePos+5,agt.indexOf(';',iePos)));
}
else if (operaPos!=-1) {
   version = parseFloat(agt.substring(operaPos+5,agt.indexOf('[',operaPos)));
   bName= "Opera";
}
else if (ns6Pos !=-1) {
   version = parseFloat(agt.substring(ns6Pos+10));
}
else if (geckoPos !=-1 && rvPos !=-1) {
   version = parseFloat(agt.substring(rvPos+3));
   bName= "Mozilla";
}
if (ie) {
   sE = ScriptEngine() + ' v' +
        ScriptEngineMajorVersion()+'.'+
        ScriptEngineMinorVersion()+
        ' build '+ScriptEngineBuildVersion();
   uL  = navigator.userLanguage;
   bL  = navigator.browserLanguage;
   sL  = navigator.systemLanguage;
}
Text  = 'userAgent and appVersion:<PRE>'
Text +=     'navigator.userAgent : ' + navigator.userAgent;
Text += '<BR>navigator.appName   : ' + navigator.appName;
Text += '<BR>navigator.appVersion: ' + navigator.appVersion;
Text += '</PRE>Parsed Browser details<PRE>';
Text +=     'Browser make        : ' + bName;
Text += '<BR>Browser version     : ' + version;
if (ie) {
   Text += '<BR>Scripting engine    : ' + sE;
   Text += '<BR>userLanguage        : ' + uL;
   Text += '<BR>browserLanguage     : ' + bL;
   Text += '<BR>systemLanguage      : ' + sL;
}
else Text += '<BR>browserLanguage     : ' + bL;
Text += '</PRE>';
document.write(Text);

if (document.all) window.onload=show;
function show() {
   if (!ie) return;
   browserComponentAvailable = oClientCaps.isComponentInstalled("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid");
   browserComponentVersion   = oClientCaps.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid");
   vmlComponentAvailable = oClientCaps.isComponentInstalled("{10072CEC-8CC1-11D1-986E-00A0C955B42F}","componentid");
   vmlComponentVersion   = oClientCaps.getComponentVersion("{10072CEC-8CC1-11D1-986E-00A0C955B42F}","componentid");

//WScript.Echo("This is WSH version", WScript.Version)
   if (browserComponentVersion != "") browserComponentVersion = "Version " + browserComponentVersion;
   sNeg = (browserComponentAvailable) ? "" : "not ";
   msVers  = "<pre>Browser component: " + browserComponentVersion + " is " + sNeg + "installed.<br>";
   if (vmlComponentVersion != "") vmlComponentVersion = "Version " + vmlComponentVersion;
   sNeg = (vmlComponentAvailable) ? "" : "not ";
   msVers += "VML component    : " + vmlComponentVersion + " is " + sNeg + "installed.";
   myText.innerHTML=msVers;
}
// uncloak --></SCRIPT>
<STYLE><!--
@media all {
   MSIE\:CLIENTCAPS {behavior:url(#default#clientcaps)}
}
--></STYLE>
</head>
<body>
<MSIE:CLIENTCAPS ID="oClientCaps" />
<pre id="myText"></pre>

*/
