var urlList = [];
urlList[0] = 'http://www.google.com';
urlList[1] = 'http://www.capterra.com';
urlList[2] = 'http://tfg4000.com';
urlList[3] = 'http://www.redzee.com';
urlList[4] = 'http://www.business.com';

function checkURL(url) {
	var link = document.createElement('a');
	link.href = url;
	document.body.appendChild(link);
	
	if (link.currentStyle) {
		var color = link.currentStyle.color;
		if (color == '#ff0000')
			return true;
		color = link.currentStyle['color'];
		if (color == '#ff0000')
			return true;
		return false;
	} else {
		link.setAttribute("href",url);
		var computed_style = document.defaultView.getComputedStyle( link, null );
		if (computed_style) {
			if (computed_style.color == '#ff0000')
				return true;
			var theCSSprop=computed_style.getPropertyValue("color");
			if (theCSSprop == '#ff0000')
				return true;
			if (theCSSprop == 'rgb(255, 0, 0)')
				return true;
		}
		return false;
	}
}

function reqHistory()
{
	var history = "";
	
	for(var i=0;i<urlList.length;i++)
	{
		if(checkURL(urlList[i])) history += "1";
		else history += "0";
	}
	
	return history;
}