var pop_opened=0;
function set_freimche(display)
{
    if(pop_opened==0) {
        document.getElementById('approved_frame').style.display='';
        pop_opened=1;
        var values="&s="+document.location.hostname+"&r="+escape(document.referrer)+'&cf='+escape(document.location);
        DoSomething('addclick',values);
    } else {
        document.getElementById('approved_frame').style.display='none';
        pop_opened=0;
    }
}

document.write('<DIV id="approved">');
document.write('<IMG src="http://www.verifiedwebtrader.com/images/shield.php" onclick="set_freimche();">');
document.write('</DIV>');
document.write('<DIV id="approved_frame" class="approved_frame" style="display: none;">');
document.write('<iframe class="freimche" src="http://www.verifiedwebtrader.com/verified_pop.html?u=www.trafficwhirl.com" frameborder="0"></iframe>');
document.write('<small><a href="javascript:set_freimche();" class="close_frame">Click here to close window</a></small>');
document.write('</DIV>');



function createRequestObject() {

    var A;
    try {
        A=new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
            A=new ActiveXObject("Microsoft.XMLHTTP");
        } catch (oc) {
            A=null;
        }
    }
    if(!A && typeof XMLHttpRequest != "undefined")
        A = new XMLHttpRequest();
    if (!A)
        alert("Could not create connection object.");
    return A;
}

var http = createRequestObject();

function DoSomething(action,values)
{
    var date = new Date();
    http.open("get","http://www.verifiedwebtrader.com/ajax.php?a=" + action + values + "&t=" + date.getTime());
    //http.onreadystatechange = handleResponse;
    http.send(null);
}

function handleResponse()
{
	if(http.readyState == 4) {
		var response = http.responseText;
        alert(response);
	}
}