
function changeCommentPage(which, start, limit){
	
	var 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;
	}
	
	var comment = document.getElementById("comment_"+which);
	var entries = document.getElementById("comment_"+which+"_entries");
	
	http_request.onreadystatechange = function(){
		if (http_request.readyState == 4) {
			if (http_request.status == 200) {
				
				comment.innerHTML = http_request.responseText;	
				TB_init();
				
			}else if (http_request.status == 404) {
				entries.innerHTML = "There was a problem loading the comments.";
			} else {
				entries.innerHTML = "There was a problem loading the comments.";
			}
		}
	}
	http_request.open('POST', '/profile/components/comment.php', true);
	http_request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	
	var params = "which="+which+"&start="+start+"&limit="+limit;
	
	http_request.send(params);
	entries.innerHTML = '<div class="loading" style="width:'+(entries.offsetWidth-2-20)+'px;background-color:#ffffff;height:'+(entries.offsetHeight-20)+'px;padding:10px;"><img src="/profile/images/loading_components.gif" /> Loading comments...</div>';
	
}