function ajaxLinkFunction(url,link_,counter){
	var lInk = link_;
	var uRl = url;
	var myRandom = parseInt(Math.random()*99999999);
	var cacheBuster = '?cb=' + myRandom;
	var ajaxRequest;  // The variable that makes Ajax possible!
		
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		/*if(ajaxRequest.redyState == 1){
			outPut.innerHTML = "LOADING";	
		}*/
		if(ajaxRequest.readyState == 4){
			if(ajaxRequest.responseText == "SUCCESS"){
				//window.location.href = lInk;
				window.open(lInk, "Window2", "width=800,height=600,scrollbars=yes,toolbar=yes,resizable=yes");
				//window.location.reload(true);
			}
			else{
				alert(ajaxRequest.responseText);
				alert(uRl + cacheBuster + counter);
			}
		}
	}
	//var queryString = "?c=" + cat;
	
	ajaxRequest.open("GET", uRl + cacheBuster + counter, true);
	ajaxRequest.send(null);
}

function openLink(link_){
	var lInk = link_;
	window.open(lInk, "Window2", "width=800,height=600,scrollbars=yes,toolbar=yes,resizable=yes");
}