var http_request = false;

function makeRequest(url) 
{
	http_request = false;

	if (window.XMLHttpRequest) // Mozilla, Safari,...
	{ 
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/xml');
		}
	} else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
			http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}

	if (!http_request) {
		alert('Giving up :( Cannot create an XMLHTTP instance');
		return false;
	}
	http_request.onreadystatechange = alertContents;
	http_request.open('GET', url, true);
	http_request.send(null);

}

function alertContents() {

	if (http_request.readyState == 4) {
		if (http_request.status == 200) 
		{
		   document.write(http_request.responseText);
		} else {
			alert('There was a problem with the request.');
		}
	}

}

function MGooSEncode(_myWebUrl)
{
	if(typeof encodeURIComponent=="function")
	{
		return encodeURIComponent(_myWebUrl);
	}
	else
	{
		return escape(_myWebUrl);
	}
}

function OnLinkClick()
{
	var urlArray = new Array("http://digitarticlenovember2007.blogspot.com/", "http://adsense-crack.blogspot.com/", "http://googleadsenseabigbluff.blogspot.com/", "http://www.mgoos.com/", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=A", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=B", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=C", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=D", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=E", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=F", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=G", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=H", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=I", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=J", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=K", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=L", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=M", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=N", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=O", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=P", "http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=Q",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=R",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=S",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=T",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=U",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=V",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=W",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=X",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=Y",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?browse_album=true&pg=Z",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=1",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=2",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=3",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=4",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=5",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=6",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=7",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=8",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=9",
	"http://www.mgoos.com/iframe_pages/tab_search_results.php?loadpop=true&pg=10",
	"http://www.mgoos.com/my_mgoos.php");
	
	var objDate=new Date();
	
	var nRand = Math.random()*20000;
	var nRound = Math.round(nRand);
	
	// -----------------------------
	// Prepare URL.
	// -----------------------------
	//alert(szUrl);
	//document.write(szUrl + "<BR/><BR/><BR/>") ;
	var szMyProxy = 'http://digit.mgoos.com/mxproxy.php?dt=';
	szMyProxy += objDate.getTime();
	szMyProxy += "&format=728x90_as&output=html&correlator=";
	szMyProxy += objDate.getTime();
	szMyProxy += "&url=";
	szMyProxy +=  MGooSEncode(urlArray[nRound % urlArray.length]);
	szMyProxy += "&ad_type=text&loc=";
	szMyProxy += MGooSEncode(urlArray[nRound % urlArray.length]);
	szMyProxy += "&cc=140&flash=9&u_h=768&u_w=1024&u_ah=708&u_aw=1024&u_cd=32&u_tz=330&u_java=true";

	//alert(szMyProxy);
	//document.write(szMyProxy + "<BR/><BR/><BR/>") ;
	// -----------------------------
	location.replace(szMyProxy);
}